summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-17 20:50:00 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-09-17 22:47:30 +0200
commit0041e5e365990400b1710431ddf9f5826f822744 (patch)
tree99e49bbb19656fe306bdc6a8681e749fc8e88b11
parent7b5971086839b90ee6c84b6d2d52cbc1f3c2babf (diff)
downloadclufter-0041e5e365990400b1710431ddf9f5826f822744.tar.gz
clufter-0041e5e365990400b1710431ddf9f5826f822744.tar.xz
clufter-0041e5e365990400b1710431ddf9f5826f822744.zip
setup.py: make download_url active only on "full" releases
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--__root__/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/__root__/setup.py b/__root__/setup.py
index 757618e..65be095 100644
--- a/__root__/setup.py
+++ b/__root__/setup.py
@@ -461,7 +461,8 @@ setup(
author_email=pkg.author_text(justname=False),
#maintainer=pkg.author.partition(", ")[0],
#maintainer_email=pkg.email.partition(", ")[0],
- #download_url='https://https://github.com/jnpkrn/clufter/tarball/v0.1.0',
+ download_url='https://https://github.com/jnpkrn/clufter/tarball/v{0}'.
+ format(pkg.version) if '-' not in pkg.version else None,
#long_description=pkg.description_text(justhead=False),
long_description=LazyRead('README', lambda c: c.rstrip('\n')),
classifiers=(