Changes __version__ for PEP 396 compliance.

This commit is contained in:
Bertrand Bordage 2016-01-11 21:05:39 +01:00
parent f597a72ee1
commit ef36e56fe7
3 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
__version__ = (1, 1, 0)
version_string = '.'.join(str(n) for n in __version__)
VERSION = (1, 1, 0)
__version__ = '.'.join(map(str, VERSION))
default_app_config = 'cachalot.apps.CachalotConfig'

View file

@ -65,9 +65,9 @@ copyright = '2014-2015, Bertrand Bordage'
# built documents.
#
# The short X.Y version.
version = '%s.%s' % cachalot.__version__[:2]
version = '%s.%s' % cachalot.VERSION[:2]
# The full version, including alpha/beta/rc tags.
release = cachalot.version_string
release = cachalot.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View file

@ -2,7 +2,7 @@
import os
from setuptools import setup, find_packages
from cachalot import version_string
from cachalot import __version__
CURRENT_PATH = os.path.abspath(os.path.dirname(__file__))
@ -13,7 +13,7 @@ with open(os.path.join(CURRENT_PATH, 'requirements.txt')) as f:
setup(
name='django-cachalot',
version=version_string,
version=__version__,
author='Bertrand Bordage',
author_email='bordage.bertrand@gmail.com',
url='https://github.com/BertrandBordage/django-cachalot',