-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace setup.py with pyproject.toml
- Loading branch information
Showing
3 changed files
with
131 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,135 @@ | ||
# pyproject.toml | ||
[project] | ||
name = 'datacube' | ||
dynamic = ['version'] | ||
requires-python = ">=3.10" | ||
readme = "README.rst" | ||
license = {text = "Apache License 2.0"} | ||
description = "An analysis environment for satellite and other earth observation data" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Natural Language :: English", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: POSIX", | ||
"Operating System :: POSIX :: BSD", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering :: GIS", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
] | ||
dependencies = [ | ||
'affine', | ||
'antimeridian', | ||
'attrs>=18.1', | ||
'pyproj>=2.5', | ||
'shapely>=2.0', | ||
'cachetools', | ||
'click>=5.0', | ||
'cloudpickle>=0.4', | ||
'dask[array]<2024.11.0', # Dask versions from 2024.11 cause problems with numpy2 | ||
'distributed<2024.11.0', | ||
'jsonschema>=4.18', # New reference resolution API | ||
'numpy>=1.26.0', | ||
'lark', | ||
'pandas', | ||
'python-dateutil', | ||
'pyyaml', | ||
'rasterio>=1.3.11', # Deleted Numpy version in 1.3.10 | ||
'ruamel.yaml', | ||
'sqlalchemy>=2.0', # GeoAlchemy2 requires >=1.4. | ||
'GeoAlchemy2', | ||
"alembic", | ||
'toolz', | ||
'xarray>=0.9', # >0.9 fixes most problems with `crs` attributes being lost | ||
'packaging', | ||
'odc-geo>=0.4.8', | ||
'deprecat', | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://opendatacube.org/" | ||
Documentation = "https://datacube-core.readthedocs.io/" | ||
Source = "https://github.com/opendatacube/datacube-core/" | ||
Issues = "https://github.com/opendatacube/datacube-core/issues" | ||
Chat = "https://discord.com/invite/4hhBQVas5U" | ||
|
||
[project.optional-dependencies] | ||
performance = ['ciso8601', 'bottleneck'] | ||
distributed = ['distributed', 'dask[distributed]'] | ||
s3 = ['boto3', 'botocore'] | ||
cf = ['compliance-checker>=4.0.0'] | ||
netcdf = ['netcdf4'] | ||
postgres = ['psycopg2'] | ||
|
||
[dependency-groups] | ||
dev = [ | ||
'hypothesis', | ||
'pycodestyle', | ||
'pylint', | ||
'pytest', | ||
'pytest-cov', | ||
'pytest-timeout', | ||
'pytest-httpserver', | ||
'moto<5.0', # 5.0 will require changes to some tests. | ||
] | ||
types = [ | ||
"mypy", | ||
"types-affine", | ||
"types-cachetools", | ||
"types-jsonschema", | ||
"types-psutil", | ||
"types-python-dateutil", | ||
"types-PyYAML", | ||
"types-redis", | ||
"types-setuptools", | ||
"boto3-stubs", | ||
"botocore-stubs" | ||
] | ||
doc = [ | ||
'Sphinx', | ||
'sphinx_autodoc_typehints', # Propagate mypy info into docs | ||
'sphinx-click', | ||
'recommonmark', | ||
'autodocsumm', | ||
'beautifulsoup4', | ||
'nbsphinx', | ||
'pydata-sphinx-theme==0.9.0', | ||
] | ||
|
||
[project.scripts] | ||
datacube = 'datacube.scripts.cli_app:cli' | ||
datacube-search = 'datacube.scripts.search_tool:cli' | ||
datacube-worker = 'datacube.execution.worker:main' | ||
|
||
|
||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] | ||
requires = ["setuptools>=69", "setuptools_scm[toml]>=3.4"] | ||
# v61 Add support for pyproject.toml, and include-package-data defaults to try when using pyproject.toml | ||
# v69 includes py.typed files by default | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project.entry-points."datacube.plugins.io.read"] | ||
netcdf = "datacube.drivers.netcdf.driver:reader_driver_init" | ||
|
||
[project.entry-points."datacube.plugins.io.write"] | ||
netcdf = 'datacube.drivers.netcdf.driver:writer_driver_init' | ||
|
||
[project.entry-points."datacube.plugins.io.index"] | ||
postgres = 'datacube.index.postgres.index:index_driver_init' | ||
null = 'datacube.index.null.index:index_driver_init' | ||
memory = 'datacube.index.memory.index:index_driver_init' | ||
postgis = 'datacube.index.postgis.index:index_driver_init' | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ['integration_tests', 'tests', 'examples', 'docs'] | ||
include = ['datacube*'] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "datacube/_version.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
[aliases] | ||
test=pytest | ||
|
||
[bdist_wheel] | ||
universal=1 | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
ignore = | ||
|