From fba2f0a0757e993e884edfe8d23d4c0aab7769b5 Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Fri, 31 Aug 2018 09:40:36 +0200 Subject: [PATCH] Version handling. --- setup.py | 4 ++-- shared/utils/__init__.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 61b09c0..1fe18b2 100644 --- a/setup.py +++ b/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. """ diff --git a/shared/utils/__init__.py b/shared/utils/__init__.py index 849caa4..f3d0159 100644 --- a/shared/utils/__init__.py +++ b/shared/utils/__init__.py @@ -1,17 +1,17 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -# Erik Stein , 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 _