diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-01-07 16:18:25 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-01-07 16:18:25 +0000 |
commit | fa6fb37ef269391bbf757f52ba61a1b025733a33 (patch) | |
tree | 3a0390021f24ab89b398b22d897937ea96435a25 | |
parent | 904b2fc07f3ab20e35f1d8804fef33ea4a713e62 (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-- | .gitignore | 1 | ||||
-rw-r--r-- | alot/VERSION | 2 | ||||
-rw-r--r-- | alot/version.py | 2 | ||||
-rwxr-xr-x | setup.py | 2 |
4 files changed, 4 insertions, 3 deletions
@@ -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() @@ -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__, |