From 95f2549068b45686f350095e238766ad6aaebc09 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 1 Mar 2018 08:22:40 -0500 Subject: [PATCH] setup.py Signed-off-by: Kenneth Reitz --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 9be89e2..8f17ec8 100644 --- a/setup.py +++ b/setup.py @@ -66,6 +66,10 @@ class UploadCommand(Command): self.status('Uploading the package to PyPi via Twine…') os.system('twine upload dist/*') + self.status('Publishing git tags…') + os.system('git tag v{0}'.format(VERSION)) + os.system('git push --tags') + sys.exit()