Kentaro Wada 9 سال پیش
والد
کامیت
7a07a7e526
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  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):