diff options
author | Jonathan Lange <jml@canonical.com> | 2011-11-25 18:24:10 +0000 |
---|---|---|
committer | Jonathan Lange <jml@canonical.com> | 2011-11-25 18:24:10 +0000 |
commit | 5bee106e9cf0cfe9ba0336c6fe9c104948848ba3 (patch) | |
tree | 1981f4fe46434556ba8fd22b249e89e0f6d55064 /setup.py | |
parent | 3cd2a98b7ec6a3f2cf8588c5d218c80e342c5afc (diff) | |
download | testtools-5bee106e9cf0cfe9ba0336c6fe9c104948848ba3.tar.gz |
Add the version to the snapshot string
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -45,7 +45,10 @@ def get_version(): return pkg_info_version revno = get_revno() if revno is None: - return "snapshot" + # Apparently if we just say "snapshot" then distribute won't accept it + # as satisfying versioned dependencies. This is a problem for the + # daily build version. + return "snapshot-%s" % (version,) if phase == 'alpha': # No idea what the next version will be return 'next-r%s' % revno |