-
-
Notifications
You must be signed in to change notification settings - Fork 32
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). |
Thanks for the patience with my reply! 😅 I just marked this project as deprecated, I'm currently not using it and I think these ideas can be achieved in better ways: https://github.com/tiangolo/poetry-version-plugin#-warning-deprecated- Given that I'll close this one, but thanks for the interest! ☕ |
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: