Skip to content

Commit

Permalink
Update packaging (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
alekfal committed Jan 31, 2024
1 parent 076757f commit c81ebb0
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
54 changes: 54 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
py-modules = []

[project]
name = "cropmaps"
version = "0.0.1a0"
description = "MAGO cropmaps package is an open source Python toolbox for crop type mapping from Sentinel-2 L2A multispectral satellite data using two well known machine learning algorithms; SVM and Random Forest."
readme = {file = "README.md", content-type='text/markdown'}
license = {text = "GPL3"}
authors = [{name = "Alekos Falagas", email = "[email protected]"},]
maintainers = [{name = "Alekos Falagas", email = "[email protected]"}]

classifiers = [
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: GIS",]

requires-python = ">=3.6"
dependencies = [
"wheel",
"creodias_finder@git+https://github.com/DHI-GRAS/creodias-finder",
"pandas",
"pyarrow",
"sentinelsat",
"geopandas",
"rasterio",
"scikit-learn",
"coloredlogs",
]

[project.optional-dependencies]
docs = [
"sphinx",
"sphinxcontrib-apidoc",
"sphinxcontrib-napoleon",
"sphinx_rtd_theme",
"myst_parser",
"sphinxemoji"
]

dev = [
"pytest",
"pytest-cov",
"pytest-dependency",
"pytest-lazy-fixture",
"pytest-mock",
]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pandas
pyarrow
sentinelsat
geopandas
rasterio
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
description = "Crop type mapping toolbox.",
long_description = long_description,
long_description_content_type = "text/markdown",
url="mago.gg",
url="https://cropmaps.readthedocs.io/en/latest/",
packages = setuptools.find_packages(),
license="GNU General Public License v3 or later (GPLv3+)",
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
],
python_requires = '>=3.6',
python_requires = '>=3.9',
install_requires=['wheel',
'creodias_finder @ git+https://github.com/DHI-GRAS/creodias-finder@main',
required],
Expand Down

0 comments on commit c81ebb0

Please sign in to comment.