Browse Source

Version handling.

master
Erik Stein 7 years ago
parent
commit
fba2f0a075
  1. 4
      setup.py
  2. 6
      shared/utils/__init__.py

4
setup.py

@ -8,8 +8,8 @@ import subprocess
"""
Use `git tag 1.0.0` to tag a release; `python setup.py --version`
to update the _version.py file.
Use `git tag -a -m "Release 1.0.0" 1.0.0` to tag a release;
`python setup.py --version` to update the _version.py file.
"""

6
shared/utils/__init__.py

@ -1,17 +1,17 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
# Erik Stein <code@classlibrary.net>, 2007-2016
__version__ = '0.2.1'
try:
from ._version import __version__
except ImportError:
pass
__version__ = '0.0.0+see-git-tag'
VERSION = __version__.split('+')
VERSION = tuple(list(map(int, VERSION[0].split('.'))) + VERSION[1:])
try:
from django.utils.translation import ugettext_lazy as _

Loading…
Cancel
Save