Skip to content

Conversation

@kroenlein
Copy link
Collaborator

GEMD Python PR

Description

This PR:

  • Removes official support & testing for Python 3.8, though no code is broken by this change in dependencies
  • Adds testing and compatibility for Python 3.13
  • Pins (Pint)[https://github.com/hgrecco/pint] to version 0.24.4, since older versions interact in some complex and confusing ways with numpy because of the migration of the cumproduct method.

PR Type:

  • Breaking change (fix or feature that would cause existing functionality to change)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Maintenance (non-breaking change to assist developers)

Adherence to team decisions

  • I have added tests for 100% coverage
  • I have written Numpy-style docstrings for every method and class.
  • I have communicated the downstream consequences of the PR to others.
  • I have bumped the version in __version__.py

try: # Informal route changed in 0.22
from pint.formatting import _FORMATTERS
formatter = _FORMATTERS["D"]
formatter = _FORMATTERS["D"] # pragma: no cover
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unreachable with the current library limits, but is reachable for older versions of Pint. Kept to avoid being "breaking" without a major version bump.

Comment on lines +3 to +6
numpy==1.24.4; python_version<'3.10'
pandas==2.0.3; python_version<'3.10'
numpy>=2.0.2,<=2.1.0; python_version>='3.10'
pandas==2.3.0; python_version>='3.10'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some unfortunate import errors if we're not careful about numpy/pandas/Pint combinations

Copy link

@StevenKauwe StevenKauwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kroenlein kroenlein merged commit 4b9944d into main Jun 30, 2025
38 checks passed
@kroenlein kroenlein deleted the maintain/bump-pint-and-python branch June 30, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants