Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

remove date from version string

cause of side-effects e.g.:
user clone the repo and has the filter not installed
  • Loading branch information...
commit 978ce5d1416f804150d260618cae18e67bafd074 1 parent 3f42442
Jens Diemer authored July 26, 2012
1  .gitattributes
... ...
@@ -1 +0,0 @@
1  
-django_tools/__init__.py filter=dater
2  README.creole
Source Rendered
@@ -124,6 +124,8 @@ to:
124 124
 
125 125
 == history
126 126
 
  127
+* v0.24.4
  128
+** remove date from version string, cause of side-effects e.g.: user clone the repo and has the filter not installed
127 129
 * v0.24.3
128 130
 ** "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]]. 
129 131
 * v0.24.2
22  django_tools/__init__.py
... ...
@@ -1,27 +1,7 @@
1 1
 # coding: utf-8
2 2
 
3  
-"""
4  
-    we add the committer date to the version number by a .gitattributes filter
5  
-    
6  
-    more info about this here:
7  
-    https://github.com/jedie/python-code-snippets/tree/master/CodeSnippets/git/#readme
8  
-"""
9  
-
10  
-
11  
-import re
12  
-
13  
-
14  
-__version__ = (0, 24, 3)
15  
-
16  
-
17  
-COMMITTER_DATE = "$date$" # set by .gitattributes filter
18  
-DATE_REGEX = re.compile(r"\$date:(.*?)\$")
19  
-
20  
-try:
21  
-    __version__ += (DATE_REGEX.findall(COMMITTER_DATE)[0],)
22  
-except IndexError:
23  
-    pass
24 3
 
  4
+__version__ = (0, 24, 4)
25 5
 VERSION_STRING = '.'.join(str(part) for part in __version__)
26 6
 
27 7
 
6  setup.py
@@ -14,12 +14,6 @@
14 14
 
15 15
 from setuptools import setup, find_packages
16 16
 
17  
-if "sdist" in sys.argv or "--version" in sys.argv:
18  
-    # update the version string via gitattribute filter
19  
-    import subprocess
20  
-    subprocess.call(["rm", "django_tools/__init__.py"])
21  
-    subprocess.call(["/usr/bin/git", "checkout", "django_tools/__init__.py"])
22  
-
23 17
 from django_tools import VERSION_STRING
24 18
 
25 19
 

0 notes on commit 978ce5d

Please sign in to comment.
Something went wrong with that request. Please try again.