-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Automatically set version in __init__.py #11
Comments
Adding to this, it would be awesome to have the same kind of version format as in Versioneer: A build 5 commits ahead tag 0.20.0, latest commit being A build 5 commits ahead tag 0.20.0, latest commit being |
Another package Does it make sense to combine our efforts of |
@sl304227-nh Thanks, I would say that it would definitely make sense to make |
Hi there, Thanks a lot for bringing VCS-sourced dynamic versioning to poetry! I do also think that this plugin should be combined with
...so I guess (and hope!) that it will be "pluginized" soon (I don't know the ETA for poetry 1.2.x, though). |
First of all, thank you for this @tiangolo, it's a very convenient plugin to have.
If this could somehow be extended to work like Versioneer or Miniver, so that it overrides the
__version__
variable in__init__.py
to dynamically use the git tag during development and then override that with a static string at build time, it would be absolutely perfect. Basically one would never have to manually set the version in __init__.py, just set the git tag.If you would be interested in doing this, I wouldn't mind making the PR but I'm not sure about what limitations Poetry plugins have, so don't know if it's even possible.
The text was updated successfully, but these errors were encountered: