Skip to content

install_requires pins pint==0.21.1 preventing compatibility with numpy v2 #16

@shravandoda

Description

@shravandoda

Thanks for the awesome unit_parse library — it's been super useful in our project!

We noticed an issue with the install_requires configuration in setup.cfg. Currently, it specifies:

install_requires =
    pint==0.21.1

However, pint==0.21.1 depends on numpy<2, which is blocking us from upgrading to numpy>=2.0, now that it’s been released.

Additionally, the commit message that introduced this version pin says "set pint version min to 0.21.1", so we believe the intention was to set a minimum version rather than to pin it strictly. In that case, maybe it should be:

install_requires =
    pint>=0.21.1

This would allow us to upgrade to newer versions of Pint, like 0.24.4, which already supports numpy>=2.

Would you be open to updating this? We’d be happy to open a PR if that helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions