We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 046e1a6 + af7b99c commit 9862c53Copy full SHA for 9862c53
1 file changed
setup.py
@@ -1,7 +1,8 @@
1
# -*- coding: utf-8 -*-
2
import os
3
-
4
import re
+import sys
5
+
6
VERSIONFILE = "folium/__init__.py"
7
verstrline = open(VERSIONFILE, "rt").read()
8
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
@@ -11,6 +12,16 @@
11
12
else:
13
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
14
15
16
+if sys.argv[-1] == 'publish':
17
+ os.system("python setup.py sdist upload")
18
+ print("Remember to also tag the version.")
19
+ sys.exit()
20
+elif sys.argv[-1] == 'tag':
21
+ os.system("git tag -a %s -m 'version %s'" % (verstr, verstr))
22
+ os.system("git push --tags")
23
24
25
try:
26
from setuptools import setup
27
except ImportError:
0 commit comments