summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/release/bump_version.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/release/bump_version.py b/contrib/release/bump_version.py
index dd7aa126..e49225c2 100755
--- a/contrib/release/bump_version.py
+++ b/contrib/release/bump_version.py
@@ -27,6 +27,7 @@ def no_enoent():
if exc.errno != errno.ENOENT:
raise
+
class StringVersion(object):
def decode(self, s):
@@ -62,6 +63,7 @@ class TupleVersion(object):
v.pop()
return ", ".join(map(quote, v))
+
class VersionFile(object):
def __init__(self, filename):
@@ -90,6 +92,7 @@ class VersionFile(object):
if m:
return self.type.decode(m.groups()[0])
+
class PyVersion(VersionFile):
regex = re.compile(r'^VERSION\s*=\s*\((.+?)\)')
wb = "VERSION = (%s)\n"
@@ -149,9 +152,5 @@ def main(argv=sys.argv, docfile="README.rst", custom=None):
pass
bump(dist, docfile, custom)
-
-
-
if __name__ == "__main__":
main()
-