From: Radek Czajka Date: Mon, 22 Sep 2014 13:14:57 +0000 (+0200) Subject: Add separate version file. X-Git-Tag: 0.2.3 X-Git-Url: https://git.mdrn.pl/django-ssify.git/commitdiff_plain/af10b85180a1c533b43091d65ab724977a6d2e74?hp=b923cbd42d5cacdc10a9b0f1db12fbcbe6b1ac07 Add separate version file. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index d112717..d87720c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.2.3 (2014-09-22) + +* Don't assume request object we are passed at any point still has + our custom attributes. + + ## 0.2.2 (2014-09-19) * Return 404 from ssi_included views with unsupported languages. diff --git a/setup.py b/setup.py index 44705a2..6228c5c 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: + VERSION = None + exec(f.read()) + return 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', diff --git a/ssify/__init__.py b/ssify/__init__.py index 2c1681d..74c1108 100644 --- a/ssify/__init__.py +++ b/ssify/__init__.py @@ -14,7 +14,9 @@ with `ssi_included` decorator. """ from __future__ import unicode_literals -__version__ = '1.0' +from .version import VERSION + +__version__ = VERSION __date__ = '2014-08-26' __all__ = ('flush_ssi_includes', 'ssi_expect', 'SsiVariable', 'ssi_included', 'ssi_variable') diff --git a/ssify/version.py b/ssify/version.py new file mode 100644 index 0000000..6d09f02 --- /dev/null +++ b/ssify/version.py @@ -0,0 +1,3 @@ +from __future__ import unicode_literals + +VERSION = '0.2.3' \ No newline at end of file