xtb-python icon indicating copy to clipboard operation
xtb-python copied to clipboard

Version Number Is Hardcoded Incorrectly in __init__.py

Open coltonbh opened this issue 1 year ago • 0 comments

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.

coltonbh avatar Apr 10 '24 03:04 coltonbh