Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: single source version number #67

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TommyAmberson
Copy link

The Problem:

If you run hebikani -v even on master you would get 1.6.4.

The version on master right now is 1.8.1. This is set in the pyproject.toml under [tool.poetry] with version = "1.8.1". But the output of hebikani -v is __version__ which is set in __init__.py as a hard coded string "1.6.4".

The Solution:

https://stackoverflow.com/questions/67085041/how-to-specify-version-in-only-one-place-when-using-pyproject-toml

Using importlib.metadata to get the project version will make the -v flag automagically be the correct version set by the release action in pyproject.toml

@TommyAmberson TommyAmberson changed the title Single source version number fix: single source version number Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant