summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-01-07 16:18:25 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-01-07 16:18:25 +0000
commitfa6fb37ef269391bbf757f52ba61a1b025733a33 (patch)
tree3a0390021f24ab89b398b22d897937ea96435a25
parent904b2fc07f3ab20e35f1d8804fef33ea4a713e62 (diff)
version string vanity
actually use the version string generated by git describe if possible. Also, don't check in every change to the version file and let its fallback content be "0.21+"
-rw-r--r--.gitignore1
-rw-r--r--alot/VERSION2
-rw-r--r--alot/version.py2
-rwxr-xr-xsetup.py2
4 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index d10fd4c3..e99b5d01 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/MANIFEST
.gdb_history
docs/_build/
+alot/VERSION
diff --git a/alot/VERSION b/alot/VERSION
index f877d9bd..1ed3d926 100644
--- a/alot/VERSION
+++ b/alot/VERSION
@@ -1 +1 @@
-0.21-dev
+0.21+
diff --git a/alot/version.py b/alot/version.py
index 1506c137..3cd06249 100644
--- a/alot/version.py
+++ b/alot/version.py
@@ -83,7 +83,7 @@ def write_version(version):
f.close()
-def get_git_version(abbrev=4):
+def generate_version(abbrev=4):
# Read in the version that's currently in VERSION.
release_version = read_version()
diff --git a/setup.py b/setup.py
index 45f72cd0..f52940ba 100755
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ import alot
setup(name='alot',
- version=alot.version.read_version(),
+ version=alot.version.generate_version(),
description=alot.__description__,
author=alot.__author__,
author_email=alot.__author_email__,