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

ci: Update CI to test 3.12 and 3.13 #58

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
python-version: [ "3.9", "3.10", "3.11" ]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
runs-on: "${{ matrix.os }}"
defaults:
run:
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
python-version: [ "3.9", "3.10", "3.11" ]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
runs-on: "${{ matrix.os }}"
steps:
- name: Check out repository
Expand Down
1 change: 1 addition & 0 deletions changelog/58.docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Recorded the strategy for supported Python versions and dependencies
1 change: 1 addition & 0 deletions changelog/58.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added support for Python 3.12 and 3.13
21 changes: 21 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,27 @@ The steps required are the following:

1. Enjoy the newly available version

## Testing strategy

We support Python 3.9 and above.
We follow the [Python life-cycle schedule](https://devguide.python.org/versions/)
and will drop support for Python versions when they reach their end of life.
Given the nature of the package,
we want to ensure support for a broad range of Python versions to minimise any downstream constraints.
Libraries building on `openscm-units` are free to further restrict the Python versions
(or other dependencies) they support.

For downstream package maintainers we recommend following
the [SPEC 0000](https://scientific-python.org/specs/spec-0000/) deprecation policy.
This policy provides support for a key scientific packages for 24 months after release
and Python versions for 36 months after release.
The Python ecosystem is quicker to adopt new versions than it was previously
and these reduced support timelines reflect that.

None-the-less we also recommend that lockfiles are used for analysis projects
to capture the exact versions of dependencies used.
This will enable the project to be recreated in the future even if the Python version is no longer supported.

## Read the Docs

Our documentation is hosted by [Read the Docs (RtD)](https://www.readthedocs.org/),
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]

[build-system]
Expand Down
Loading