Skip to content

Uprev pint to 0.24.* for python 3.13+ support #289

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

Merged
merged 2 commits into from
Apr 7, 2025

Conversation

brendan-w
Copy link
Owner

@brendan-w brendan-w commented Apr 7, 2025

This was failing with some frozen dataclass errors in python 3.13, making it fail on most modern installs.

...
  File "/home/brendan/.virtualenvs/obd/lib/python3.13/site-packages/pint/delegates/txt_defparser/common.py", line 21, in <module>
    @dataclass(frozen=True)
     ~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/dataclasses.py", line 1295, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
                          frozen, match_args, kw_only, slots,
                          weakref_slot)
  File "/usr/lib64/python3.13/dataclasses.py", line 1043, in _process_class
    raise TypeError('cannot inherit frozen dataclass from a '
                    'non-frozen one')
TypeError: cannot inherit frozen dataclass from a non-frozen one

Also corrected some of the package classifiers to indicate that this python library no longer supports python 2. It didn't even with the older 0.20.* Pint, though Pint itself now only supports python 3.9+

Testing

  • re-ran all unit tests

@brendan-w brendan-w force-pushed the user/brendan/uprev-pint branch 3 times, most recently from 4ca9aa3 to 066cc97 Compare April 7, 2025 04:13
Also corrected some of the package classifiers to indicate that this
python library no longer supports python 2. It didn't even with the
older 0.20.* Pint, though Pint itself now only supports python 3.9+
@brendan-w brendan-w force-pushed the user/brendan/uprev-pint branch from 066cc97 to c30cfc3 Compare April 7, 2025 04:14
@brendan-w brendan-w merged commit 75a8820 into master Apr 7, 2025
0 of 3 checks passed
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.

1 participant