Skip to content

Commit

Permalink
Update setup.py to auto-construct version & download_url
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-menon committed Nov 3, 2016
1 parent 7ede735 commit e076847
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
keywords='templating enigne text processing static generator',
Expand Down

0 comments on commit e076847

Please sign in to comment.