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

Support Python 3.12+ as well as switching to the latest pint #11

Merged
merged 8 commits into from
Jul 5, 2024

Commits on Jul 1, 2024

  1. bump version

    dylanwal authored and bramp committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    fa3f95e View commit details
    Browse the repository at this point in the history
  2. Update test.yml

    dylanwal authored and bramp committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    5026b8d View commit details
    Browse the repository at this point in the history
  3. Switched to using raw strings, thus removing the need for W605.

    In python 3.12 these are now Syntax Errors instead of Deprecation warnings.
    bramp committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    9368b08 View commit details
    Browse the repository at this point in the history
  4. Remove the {default,constants}_en.txt files and now use the defaults …

    …that come with pint.
    bramp committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    8ef85ed View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    660c6fe View commit details
    Browse the repository at this point in the history
  6. Fixed a couple of unit tests to use a regular minus sign, instead of …

    …a unify dash.
    
    The tests previously weren't working correctly. Specifically when doing Quantity('-123') with a unify dash, pint would actually return the Quantity('123'). The test doesn't catch this, as the test is effectively doing Quantity($input) == Quantity($input).
    
    With Python 3.12, the internals of Quantity changed, to explictly reject unify dashes, instead of silently skipping them.
    bramp committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    59a81df View commit details
    Browse the repository at this point in the history
  7. Change tests to use ppm instead of parts_per_million.

    In pint 0.21 ppm was officially added, named ppm, instead of parts_per_million.
    bramp committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    ee4d632 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    676f327 View commit details
    Browse the repository at this point in the history