Skip to content

Version Number Is Hardcoded Incorrectly in __init__.py #108

@coltonbh

Description

@coltonbh

Describe the bug

The version numbers is wrong for xtb. It is hardcoded incorrectly in the top level __init__.py file

To Reproduce

pip install xtb==22.1 # latest version
>>> import xtb
>>> xtb.__version__
>>> '20.2' # MISMATCH!

Expected behaviour

The version number matches the actual installed version.

Additional context

This can be fixed by using importlib which will correctly introspect the package data stored in your pyproject.toml to represent your version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmedThis report has not yet been confirmed by the developers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions