Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace setup with pyproject.toml #2763

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,9 @@ doc/source/_build/*
satpy/version.py
doc/source/api/*.rst
doc/source/reader_table.rst

# lock files
*.lock

# rye files
.python-version
121 changes: 117 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,122 @@
[project]
name = "satpy"
dynamic = ["version"]
description = "Python package for earth-observing satellite data processing"
authors = [
{ name = "The Pytroll Team", email = "[email protected]" }
]
dependencies = [
"appdirs",
"dask[array]>=0.17.1",
"donfig",
"numpy>=1.21",
"packaging",
"pillow",
"pooch",
"pykdtree",
"pyorbital",
"pyproj>=2.2",
"pyresample>=1.24.0",
"pyyaml>=5.1",
"trollimage>=1.23",
"trollsift",
"xarray>=0.14.1",
"zarr",
]
readme = "README.rst"
requires-python = ">=3.9"
license = { text = "GPLv3" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering"
]

[project.optional-dependencies]
avhrr_l1b_eps = ["defusedxml"]
avhrr_l1b_gaclac = ["pygac >= 1.3.0"]
modis_l1b = ["pyhdf", "python-geotiepoints >= 1.1.7"]
geocat = ["pyhdf"]
acspo = ["netCDF4 >= 1.1.8"]
clavrx = ["netCDF4 >= 1.1.8"]
viirs_l1b = ["netCDF4 >= 1.1.8"]
viirs_sdr = ["h5py >= 2.7.0"]
viirs_compact = ["h5py >= 2.7.0"]
omps_edr = ["h5py >= 2.7.0"]
amsr2_l1b = ["h5py >= 2.7.0"]
hrpt = ["pyorbital >= 1.3.1", "pygac", "python-geotiepoints >= 1.1.7"]
hrit_msg = ["pytroll-schedule"]
msi_safe = ["rioxarray", "bottleneck", "python-geotiepoints", "defusedxml"]
nc_nwcsaf_msg = ["netCDF4 >= 1.1.8"]
sar_c = ["python-geotiepoints >= 1.1.7", "rasterio", "rioxarray", "defusedxml"]
abi_l1b = ["h5netcdf"]
seviri_l1b_hrit = ["pyorbital >= 1.3.1"]
seviri_l1b_native = ["pyorbital >= 1.3.1"]
seviri_l1b_nc = ["pyorbital >= 1.3.1", "netCDF4 >= 1.1.8"]
seviri_l2_bufr = ["eccodes"]
seviri_l2_grib = ["eccodes"]
hsaf_grib = ["pygrib"]
remote_reading = ["fsspec"]
insat_3d = ["xarray-datatree"]
gms5-vissr_l1b = ["numba"]
# Writers:
cf = ["h5netcdf >= 0.7.3"]
awips_tiled = ["netCDF4 >= 1.1.8"]
geotiff = ["rasterio", "trollimage[geotiff]"]
ninjo = ["pyninjotiff", "pint"]
units = ["pint-xarray"]
# Composites/Modifiers:
rayleigh = ["pyspectral >= 0.10.1"]
angles = ["pyorbital >= 1.3.1"]
filters = ["dask-image"]
# MultiScene:
animations = ["imageio"]
# Documentation:
doc = ["sphinx", "sphinx_rtd_theme", "sphinxcontrib-apidoc"]
# Other
geoviews = ["geoviews"]
holoviews = ["holoviews"]
hvplot = ["hvplot", "geoviews", "cartopy", "holoviews"]
overlays = ["pycoast", "pydecorate"]
satpos_from_tle = ["skyfield", "astropy"]
tests = ["behave", "h5py", "netCDF4", "pyhdf", "imageio",
"rasterio", "geoviews", "trollimage", "fsspec", "bottleneck",
"rioxarray", "pytest", "pytest-lazy-fixture", "defusedxml",
"s3fs", "eccodes", "h5netcdf", "xarray-datatree",
"skyfield", "ephem", "pint-xarray", "astropy", "dask-image", "python-geotiepoints", "numba"]

[project.scripts]
satpy_retrieve_all_aux_data = "satpy.aux_download:retrieve_all_cmd"

[project.urls]
Homepage = "https:/pytroll/satpy"
"Bug Tracker" = "https:/pytroll/satpy/issues"
Documentation = "https://satpy.readthedocs.io/en/stable/"
"Source Code" = "https:/pytroll/satpy"
Organization = "https://pytroll.github.io/"
Slack = "https://pytroll.slack.com/"
Twitter = "https://twitter.com/hashtag/satpy?src=hashtag_click"
"Release Notes" = "https:/pytroll/satpy/blob/main/CHANGELOG.md"
Mastodon = "https://fosstodon.org/tags/satpy"

[build-system]
requires = ["setuptools>=60", "wheel", "setuptools_scm[toml]>=8.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["satpy"]

[tool.hatch.version]
source = "vcs"

[tool.setuptools_scm]
write_to = "satpy/version.py"
[tool.hatch.build.hooks.vcs]
version-file = "satpy/version.py"

[tool.isort]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
Expand Down
25 changes: 0 additions & 25 deletions setup.cfg

This file was deleted.

172 changes: 0 additions & 172 deletions setup.py

This file was deleted.

Loading