xtb-python
xtb-python copied to clipboard
Version Number Is Hardcoded Incorrectly in __init__.py
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.