X-Git-Url: https://git.mdrn.pl/django-ssify.git/blobdiff_plain/a7e203754929b2a49b33197811252ba88b3e047e..9c5fe2012a14bf1c840e304b1bd1d9f72fffba6a:/setup.py diff --git a/setup.py b/setup.py index 44705a2..dc7946d 100755 --- a/setup.py +++ b/setup.py @@ -3,11 +3,22 @@ # This file is part of django-ssify, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See README.md for more information. # +import os from setuptools import setup, find_packages + +def get_version(): + basedir = os.path.dirname(__file__) + with open(os.path.join(basedir, 'ssify/version.py')) as f: + variables = {} + exec(f.read(), variables) + return variables.get('VERSION') + raise RuntimeError('No version info found.') + + setup( name='django-ssify', - version='0.2.2', + version=get_version(), author='Radek Czajka', author_email='radekczajka@nowoczesnapolska.org.pl', url='http://git.mdrn.pl/django-ssify.git',