-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Transfer project metadata to pyproject.toml. * Cythonize is now implicit thanks to build-system. * Revert "Cythonize is now implicit thanks to build-system." This reverts commit 31bd497. * Commit to existing structure of setup.py. * Remove unnecessary alias from setup.cfg. * Attempt fix package discovery. * Fix test_python_versions. * Don't override dir. * Test with Test PyPI. * Revert "Test with Test PyPI." This reverts commit 7cdfe95. * Pre-commit compliance. * Remove empty setup.cfg. * Rely on setuptools defaults for license-files. * Use recommended syntax for optional dependencies. * Ruff compliance. * Correct NumPy pin.
- Loading branch information
1 parent
d22c5ea
commit 4d441ba
Showing
7 changed files
with
92 additions
and
96 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
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
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 |
---|---|---|
|
@@ -5,11 +5,71 @@ requires = [ | |
"setuptools_scm[toml]>=7.0", | ||
"wheel", | ||
"oldest-supported-numpy", | ||
"Cython>=3.0" | ||
"Cython>=3.0", | ||
] | ||
# Defined by PEP 517 | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "cf-units" | ||
authors = [ | ||
{name = "cf-units Contributors", email = "[email protected]"} | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Atmospheric Science", | ||
"Topic :: Scientific/Engineering :: Oceanography", | ||
] | ||
dependencies = [ | ||
"cftime >=1.2", | ||
"jinja2", | ||
"numpy <2" | ||
# udunits2 cannot be installed with pip, and it is expected to be | ||
# installed separately. | ||
] | ||
description = "Units of measure as required by the Climate and Forecast (CF) metadata conventions" | ||
dynamic = [ | ||
"version", | ||
] | ||
keywords = [ | ||
"units", | ||
"cf", | ||
"cf-metadata", | ||
"netcdf", | ||
"science", | ||
"earth-science", | ||
"oceanography", | ||
"meteorology", | ||
"climate", | ||
"python", | ||
] | ||
license.file = "LICENSE" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
|
||
[project.optional-dependencies] | ||
all = ["cf-units[latex]", "cf-units[docs]", "cf-units[test]"] | ||
# To update antlr: see cf_units/_udunits2_parser/README.md" | ||
latex = ["antlr4-python3-runtime ==4.11.1"] | ||
docs = ["sphinx"] | ||
test = ["codecov", "cython", "jinja2", "pip", "pytest", "pytest-cov"] | ||
|
||
[project.urls] | ||
Code = "https://github.com/SciTools/cf-units" | ||
Discussions = "https://github.com/SciTools/cf-units/discussions" | ||
Issues = "https://github.com/SciTools/cf-units/issues" | ||
Documentation = "https://cf-units.readthedocs.io" | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
plugins = [ | ||
|
@@ -41,6 +101,9 @@ doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS NUMBER" | |
minversion = "6.0" | ||
testpaths = "cf_units" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["cf_units"] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "cf_units/_version.py" | ||
local_scheme = "dirty-tag" | ||
|
@@ -51,7 +114,6 @@ exclude = [ | |
"cf_units/_udunits2_parser/parser", | ||
] | ||
line-length = 79 | ||
target-version = "py310" | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
|
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