|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=69"] |
| 3 | +build-backend = "setuptools.build_meta" |
1 | 4 |
|
2 | | -#[build-system] |
3 | | -#requires = ["setuptools"] |
4 | | -#build-backend = "setuptools.build_meta" |
| 5 | +[project] |
| 6 | +name = "openeo" |
| 7 | +dynamic = ["version"] |
| 8 | +description = "Client API for openEO" |
| 9 | +readme = "README.md" |
| 10 | +license = { text = "Apache-2.0" } |
| 11 | +requires-python = ">=3.8" |
| 12 | +authors = [ |
| 13 | + { name = "Jeroen Dries", email = "jeroen.dries@vito.be" }, |
| 14 | +] |
| 15 | +classifiers = [ |
| 16 | + "Development Status :: 5 - Production/Stable", |
| 17 | + "Operating System :: OS Independent", |
| 18 | + "Programming Language :: Python :: 3.8", |
| 19 | + "Programming Language :: Python :: 3.9", |
| 20 | + "Programming Language :: Python :: 3.10", |
| 21 | + "Programming Language :: Python :: 3.11", |
| 22 | + "Programming Language :: Python :: 3.12", |
| 23 | + "Programming Language :: Python :: 3.13", |
| 24 | + "Programming Language :: Python :: 3.14", |
| 25 | +] |
| 26 | +dependencies = [ |
| 27 | + "deprecated>=1.2.12", |
| 28 | + # TODO #717 Simplify geopandas constraints when Python 3.8 support is dropped |
| 29 | + "geopandas", # Best-effort geopandas dependency for Python 3.8 |
| 30 | + "geopandas>=0.14; python_version>='3.9'", |
| 31 | + "importlib_resources; python_version<'3.9'", |
| 32 | + "numpy>=1.17.0", |
| 33 | + "oschmod>=0.3.12; sys_platform == \"win32\"", |
| 34 | + "pandas>0.20.0,<3.0.0", # TODO pandas 3 compatibility https://github.com/Open-EO/openeo-python-client/issues/856 |
| 35 | + # TODO #578: pystac 1.5.0 is highest version available for lowest Python |
| 36 | + # version we still support (3.7). |
| 37 | + "pystac>=1.5.0", |
| 38 | + "requests>=2.26.0", |
| 39 | + "shapely>=1.6.4", |
| 40 | + "urllib3>=1.9.0", |
| 41 | + "xarray>=0.12.3,<2025.01.2", # TODO #721 xarray non-nanosecond support |
| 42 | +] |
| 43 | + |
| 44 | +[project.optional-dependencies] |
| 45 | +artifacts = [ |
| 46 | + "boto3", |
| 47 | + "botocore", |
| 48 | +] |
| 49 | +dev = [ |
| 50 | + "boto3", |
| 51 | + "boto3~=1.37.38; python_version<'3.9'", |
| 52 | + "botocore", |
| 53 | + "botocore~=1.37.38; python_version<'3.9'", |
| 54 | + "dirty_equals>=0.8.0", |
| 55 | + "flake8>=5.0.0", |
| 56 | + "httpretty>=1.1.4", |
| 57 | + "mock", |
| 58 | + "moto>=5.0.0", |
| 59 | + "moto~=5.0.28; python_version<'3.9'", |
| 60 | + "myst-parser", |
| 61 | + "netCDF4>=1.7.0", |
| 62 | + "pyarrow>=10.0.1", |
| 63 | + "pydata_sphinx_theme", |
| 64 | + "pyproj>=3.2.0", # Pyproj is an optional, best-effort runtime dependency |
| 65 | + "pystac-client>=0.7.5", |
| 66 | + "pytest>=4.5.0", |
| 67 | + "python-dateutil>=2.7.0", |
| 68 | + "requests-mock>=1.8.0", |
| 69 | + "sphinx", |
| 70 | + "sphinx-autodoc-annotation", |
| 71 | + "sphinx-autodoc-typehints >=2.2.3; python_version>='3.10'", |
| 72 | + "sphinx-autodoc-typehints; python_version<='3.9'", |
| 73 | + "sphinx-copybutton", |
| 74 | + "time_machine>=2.13.0", |
| 75 | + "types-boto3-s3", |
| 76 | + "types-boto3-sts", |
| 77 | + "urllib3<2.3.0", |
| 78 | +] |
| 79 | +docs = [ |
| 80 | + "myst-parser", |
| 81 | + "pydata_sphinx_theme", |
| 82 | + "sphinx", |
| 83 | + "sphinx-autodoc-annotation", |
| 84 | + "sphinx-autodoc-typehints >=2.2.3; python_version>='3.10'", |
| 85 | + "sphinx-autodoc-typehints; python_version<='3.9'", |
| 86 | + "sphinx-copybutton", |
| 87 | +] |
| 88 | +jupyter = [ |
| 89 | + "ipyleaflet>=0.17.0", |
| 90 | + "ipython", |
| 91 | +] |
| 92 | +localprocessing = [ |
| 93 | + "openeo_pg_parser_networkx>=2023.5.1; python_version>='3.9'", |
| 94 | + "openeo_processes_dask[implementations]>=2023.7.1; python_version>='3.9'", |
| 95 | + "pyproj", |
| 96 | + "rioxarray>=0.13.0", |
| 97 | +] |
| 98 | +# Install oschmod even when platform is not Windows, e.g. for testing in CI. |
| 99 | +oschmod = [ |
| 100 | + "oschmod>=0.3.12", |
| 101 | +] |
| 102 | +tests = [ |
| 103 | + "boto3", |
| 104 | + "boto3~=1.37.38; python_version<'3.9'", |
| 105 | + "botocore", |
| 106 | + "botocore~=1.37.38; python_version<'3.9'", |
| 107 | + "dirty_equals>=0.8.0", |
| 108 | + "flake8>=5.0.0", |
| 109 | + "httpretty>=1.1.4", |
| 110 | + "mock", |
| 111 | + "moto>=5.0.0", |
| 112 | + # Some pins to speed up slow dependency resolution in Python 3.8 venvs |
| 113 | + "moto~=5.0.28; python_version<'3.9'", |
| 114 | + "netCDF4>=1.7.0", |
| 115 | + "pyarrow>=10.0.1", # For Parquet read/write support in pandas |
| 116 | + "pyproj>=3.2.0", |
| 117 | + "pystac-client>=0.7.5", |
| 118 | + "pytest>=4.5.0", |
| 119 | + "python-dateutil>=2.7.0", |
| 120 | + "requests-mock>=1.8.0", |
| 121 | + "time_machine>=2.13.0", |
| 122 | + # httpretty doesn't work properly with urllib3>=2.3.0. See #700 and |
| 123 | + # https://github.com/gabrielfalcao/HTTPretty/issues/484 |
| 124 | + "urllib3<2.3.0", |
| 125 | +] |
| 126 | + |
| 127 | +[project.scripts] |
| 128 | +openeo-auth = "openeo.rest.auth.cli:main" |
| 129 | + |
| 130 | +[project.urls] |
| 131 | +"Bug Tracker" = "https://github.com/Open-EO/openeo-python-client/issues" |
| 132 | +Changelog = "https://github.com/Open-EO/openeo-python-client/blob/master/CHANGELOG.md" |
| 133 | +Documentation = "https://open-eo.github.io/openeo-python-client/" |
| 134 | +Homepage = "https://github.com/Open-EO/openeo-python-client" |
| 135 | +"Source Code" = "https://github.com/Open-EO/openeo-python-client" |
| 136 | + |
| 137 | +[tool.setuptools.dynamic] |
| 138 | +version = {attr = "openeo._version.__version__"} |
| 139 | + |
| 140 | +[tool.setuptools.packages.find] |
| 141 | +include = ["openeo"] |
5 | 142 |
|
6 | 143 | [tool.black] |
7 | 144 | line-length = 120 |
|
0 commit comments