Kentaro Wada %!s(int64=9) %!d(string=hai) anos
pai
achega
7a07a7e526
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      setup.py

+ 9 - 1
setup.py

@@ -8,7 +8,15 @@ import subprocess
 import sys
 
 
-version = '1.2.3'
+version = '2.0.0'
+
+
+if sys.argv[1] == 'release':
+    for cmd in [
+            'git tag v{0}'.format(version),
+            'git push origin master --tag',
+            'python setup.py sdist upload']:
+        subprocess.call(shlex.split(cmd))
 
 
 class LabelmeBuildPyCommand(BuildPyCommand):