Permalink
Browse files

remove date from version string

cause of side-effects e.g.:
user clone the repo and has the filter not installed
  • Loading branch information...
jedie committed Jul 26, 2012
1 parent 3f42442 commit 978ce5d1416f804150d260618cae18e67bafd074
Showing with 3 additions and 28 deletions.
  1. +0 −1 .gitattributes
  2. +2 −0 README.creole
  3. +1 −21 django_tools/__init__.py
  4. +0 −6 setup.py
View
@@ -1 +0,0 @@
-django_tools/__init__.py filter=dater
View
@@ -124,6 +124,8 @@ to:
== history
+* v0.24.4
+** remove date from version string, cause of side-effects e.g.: user clone the repo and has the filter not installed
* v0.24.3
** "Hardcode" the version string date attachment via [[https://github.com/jedie/python-code-snippets/tree/master/CodeSnippets/git|gitattribute filter script]] to fix [[https://github.com/jedie/django-tools/issues/1|a reported issues]] with [[https://github.com/pypa/pip/issues/145|pip requirements file bug]].
* v0.24.2
View
@@ -1,27 +1,7 @@
# coding: utf-8
-"""
- we add the committer date to the version number by a .gitattributes filter
-
- more info about this here:
- https://github.com/jedie/python-code-snippets/tree/master/CodeSnippets/git/#readme
-"""
-
-
-import re
-
-
-__version__ = (0, 24, 3)
-
-
-COMMITTER_DATE = "$date$" # set by .gitattributes filter
-DATE_REGEX = re.compile(r"\$date:(.*?)\$")
-
-try:
- __version__ += (DATE_REGEX.findall(COMMITTER_DATE)[0],)
-except IndexError:
- pass
+__version__ = (0, 24, 4)
VERSION_STRING = '.'.join(str(part) for part in __version__)
View
@@ -14,12 +14,6 @@
from setuptools import setup, find_packages
-if "sdist" in sys.argv or "--version" in sys.argv:
- # update the version string via gitattribute filter
- import subprocess
- subprocess.call(["rm", "django_tools/__init__.py"])
- subprocess.call(["/usr/bin/git", "checkout", "django_tools/__init__.py"])
-
from django_tools import VERSION_STRING

0 comments on commit 978ce5d

Please sign in to comment.