ib-api-reloaded / ib_async

Python sync/async framework for Interactive Brokers API (replaces ib_insync)
BSD 2-Clause "Simplified" License
467 stars 73 forks source link

ib_async version not being updated #47

Closed skister closed 4 months ago

skister commented 4 months ago

The releases after 1.0.0 have not updated the version number in version.py, it should match the release number

% python3 -m pip show ib_async Name: ib_async Version: 1.0.3 % python3 -c "import ib_async; print(ib_async.version)" 1.0.0 ib_async% cat version.py """Version info."""

version_info = (1, 0, 0) version = ".".join(str(v) for v in version_info)

mattsta commented 4 months ago

good catch. this should be using https://docs.python.org/3/library/importlib.metadata.html to automatically populate the correct version number instead of manually double-writing the version in two places. will look into adding the fix soon.