Bump Pint >= 0.24, <0.26 and Python >= 3.10, < 3.15 - #380
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #380 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 1594 1594
Branches 327 327
=========================================
Hits 1594 1594 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
Author
kwabenantim
marked this pull request as ready for review
July 14, 2026 14:33
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates cellmlmanip’s supported Python and Pint ranges to enable compatibility with Pint ≥ 0.24 (and therefore NumPy 2.x) and adds CI coverage for Python 3.14, aligning with issue #379.
Changes:
- Bumped Pint requirement to
>=0.24, <0.26and updated unit-handling code to match Pint 0.24+ API changes. - Dropped Python 3.9 support and updated packaging metadata / pinned requirements generation to Python 3.10.
- Updated GitHub Actions matrices and pinned requirements files to reflect the new supported Python/Pint ecosystem.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_parser.py | Updates an expected Pint dimensionality error string for the new Pint version. |
| setup.py | Updates supported Python metadata and bumps the Pint dependency constraint. |
| requirements/test.txt | Regenerates pinned test dependencies with Python 3.10 and Pint 0.24.x. |
| requirements/dev.txt | Regenerates pinned dev dependencies with Python 3.10 and newer tooling. |
| requirements/base.txt | Regenerates pinned base dependencies with Pint 0.24.x transitive deps. |
| requirements/base.in | Updates the unpinned Pint constraint to >=0.24, <0.26. |
| requirements/README.md | Updates pinned-deps generation note from Python 3.6 to 3.10. |
| requirements/check-python-version.py | Enforces generating pinned deps using Python 3.10. |
| RELEASE.md | Adds release notes for 0.3.8 covering Pint/Python support changes. |
| cellmlmanip/version.txt | Bumps package version from 0.3.7 to 0.3.8. |
| cellmlmanip/units.py | Updates Pint imports and dimensionless unit definition logic for Pint 0.24+. |
| .github/workflows/unit-test.yml | Updates CI matrix to test Python 3.10–3.14. |
| .github/workflows/unit-test-pinned.yml | Updates pinned-deps CI to run on Python 3.10. |
| .github/workflows/style.yml | Updates style checks to run on Python 3.10. |
| .github/workflows/docs.yml | Updates docs build to run on Python 3.10. |
| .github/workflows/coverage.yml | Updates coverage job to run on Python 3.10. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mirams
approved these changes
Jul 14, 2026
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #379, which supports upgrading to Python 3.14.
Motivation and Context
Upgrading to Python 3.14. The plan is to follow this with sympy updates (#376)
Types of changes
Documentation checklist
Testing