-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from setup.py to pyproject.toml
- Loading branch information
Showing
35 changed files
with
88 additions
and
141 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,8 +1,91 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "wheel"] | ||
requires = ["setuptools>=45"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "polar2grid" | ||
version = "3.1.0" | ||
authors = [ | ||
{name = "David Hoese", email = "[email protected]"}, | ||
] | ||
description = "Library and scripts to remap satellite data to a gridded image" | ||
readme = "README.rst" | ||
license = {text = "GPLv3"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Atmospheric Science", | ||
"Topic :: Scientific/Engineering :: GIS", | ||
] | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"satpy", | ||
"rasterio", | ||
"netCDF4", | ||
"h5py", | ||
] | ||
|
||
[project.optional-dependencies] | ||
utils = ["matplotlib"] | ||
docs = ["sphinx", "rst2pdf", "sphinx-argparse", "sphinxcontrib-apidoc", "pytest"] | ||
tests = ["pytest"] | ||
coastlines = ["pycoast", "pydecorate"] | ||
all = ["matplotlib", "sphinx", "rst2pdf", "sphinx-argparse", "sphinxcontrib-apidoc", "pytest", "pycoast", "pydecorate"] | ||
|
||
[project.urls] | ||
Documentation = "https://www.ssec.wisc.edu/software/polar2grid/" | ||
Home-page = "https://cimss.ssec.wisc.edu/cspp/" | ||
Download-URL = "https://pypi.org/project/polar2grid/" | ||
Project-URL = "https://github.com/ssec/polar2grid/" | ||
|
||
[project.scripts] | ||
polar2grid = "polar2grid.__main__:p2g_main" | ||
geo2grid = "polar2grid.__main__:g2g_main" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
|
||
[tool.isort] | ||
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] | ||
profile = "black" | ||
skip_gitignore = true | ||
force_to_top = true | ||
default_section = "THIRDPARTY" | ||
known_first_party = "polar2grid" | ||
line_length = 120 | ||
|
||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py38'] | ||
target-version = ['py310'] | ||
include = '\.pyi?$' | ||
|
||
[tool.coverage.run] | ||
relative_files = true | ||
|
||
[tool.ruff] | ||
# See https://docs.astral.sh/ruff/rules/ | ||
select = ["E", "W", "B", "D", "T10", "C90"] | ||
# Remove D416 when all docstrings have been converted to google-style | ||
ignore = ["D107", "D416"] | ||
line-length = 120 | ||
exclude = ["versioneer.py", "pyresample/version.py"] | ||
|
||
[tool.ruff.per-file-ignores] | ||
"pyresample/test/*.py" = ["D102", "S101"] # assert allowed in tests | ||
|
||
[tool.ruff.pydocstyle] | ||
convention = "google" | ||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 10 |
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,21 +1,6 @@ | ||
[bdist_wheel] | ||
# this is only true when ewa resampling uses pyresample directly | ||
universal=1 | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
ignore = D101,D102,D103,D105,D106,D107,E203 | ||
per-file-ignores = | ||
doc/source/conf.py:E501 | ||
polar2grid/readers/*.py:D205,D400 | ||
|
||
[isort] | ||
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER | ||
profile = black | ||
skip_gitignore = true | ||
force_to_top = true | ||
default_section = THIRDPARTY | ||
known_first_party = polar2grid | ||
|
||
[coverage:run] | ||
relative_files = True |