From e076847bd6a727938db1637357491b6ecc35701d Mon Sep 17 00:00:00 2001 From: "Arjun G. Menon" Date: Thu, 3 Nov 2016 17:07:27 -0400 Subject: [PATCH] Update setup.py to auto-construct version & download_url --- setup.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 81f0d53..ff38556 100644 --- a/setup.py +++ b/setup.py @@ -2,11 +2,20 @@ from setuptools import setup +repo_url = 'https://github.com/arjun-menon/pypage' + +version_tag = open('docs/version.txt').read().strip() +assert version_tag[0] == 'v' +version = version_tag[1:] + +download_url = repo_url + '/archive/' + version_tag + '.tar.gz' + setup(name='pypage', - version='2.0.0', + version=version, description=' Light-weight Python Templating Engine', # long_description=open('README.rst').read(), - url='https://github.com/arjun-menon/pypage', + url=repo_url, + download_url=download_url, author='Arjun G. Menon', author_email='contact@arjungmenon.com', keywords='templating enigne text processing static generator',