Last active
December 9, 2019 14:03
-
-
Save deeuu/ef23129e5d210609de85e8a625f57592 to your computer and use it in GitHub Desktop.
Xonsh script for tagging (and pushing the tag) the version of a python package as recorded in __version__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
about = {} | |
with open($(find . -d 2 -name '__version__.py').strip()) as f: | |
exec(f.read(), about) | |
tag_version = f"v{about['__version__']}" | |
git tag @(tag_version) | |
git push origin @(tag_version) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment