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):