Skip to content

Commit

Permalink
ESMPy: provide supported versions in pyproject.toml
Browse files Browse the repository at this point in the history
Provide earliest supported version for python - bump from 3.7 to 3.8
because that is the earliest we're testing with. (Not listing a latest
supported version, as per advice in
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#requires-python-upper-bounds
and
https://packaging.python.org/en/latest/guides/dropping-older-python-versions/#specify-the-version-ranges-for-supported-python-distributions).

Provide earliest and latest supported versions for numpy. The earliest
version is based on the earliest version we're testing with; the latest
version is based on presumed backwards incompatibility with a major
version bump.
  • Loading branch information
billsacks committed Dec 13, 2024
1 parent 661eb42 commit 8abac4f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/addon/esmpy/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ name = "esmpy"
description = "ESMF Python interface"
# readme = "README.md"
maintainers = [ { name = "ESMF Core Team", email = "esmf_support@ucar.edu" } ]
requires-python = ">=3.7"
# The following is the earliest python version that we test with:
requires-python = ">=3.8"
license = { text = "University of Illinois-NCSA" }
dependencies = [
"numpy",
# The following is the earliest numpy version that we test with; the latest we test
# with is version 2.x, so we assume that version 3 might break backwards
# compatibility:
"numpy >= 1.19, < 3",
'importlib-metadata; python_version < "3.8"',
# setuptools-git-versioning shouldn't be needed here, but is
# included as a workaround for problems with the build-time
Expand Down

0 comments on commit 8abac4f

Please sign in to comment.