File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 10
10
version-control system about the current tree.
11
11
"""
12
12
13
+ # as nice as it'd be to versioneer ourselves, that sounds messy.
14
+ VERSION = "0.8+"
15
+
13
16
def get (fn ):
14
17
return open (fn , "r" ).read ()
15
18
def unquote (s ):
16
19
return s .replace ("%" , "%%" )
17
20
def ver (s ):
18
- return s .replace ("@VERSIONEER@" , "0.8+" )
21
+ return s .replace ("@VERSIONEER-VERSION @" , VERSION )
19
22
def readme (s ):
20
23
return s .replace ("@README@" , get ("README.md" ))
21
24
@@ -70,7 +73,7 @@ def run(self):
70
73
71
74
with open ("src/installer.py" ) as f :
72
75
s = f .read ()
73
- s = s .replace ("@VERSIONEER-INSTALLER@" , v_b64 )
76
+ s = ver ( s .replace ("@VERSIONEER-INSTALLER@" , v_b64 ) )
74
77
75
78
tempdir = tempfile .mkdtemp ()
76
79
installer = os .path .join (tempdir , "versioneer-installer" )
@@ -86,7 +89,7 @@ def run(self):
86
89
setup (
87
90
name = "versioneer" ,
88
91
license = "public domain" ,
89
- version = "0.8+" ,
92
+ version = VERSION ,
90
93
description = "Easy VCS-based management of project version strings" ,
91
94
author = "Brian Warner" ,
92
95
author_email = "warner-versioneer@lothar.com" ,
Original file line number Diff line number Diff line change 6
6
# that just contains the computed version number.
7
7
8
8
# This file is released into the public domain. Generated by
9
- # versioneer-@VERSIONEER@ (https://github.com/warner/python-versioneer)
9
+ # versioneer-@VERSIONEER-VERSION @ (https://github.com/warner/python-versioneer)
10
10
11
11
# these strings will be replaced by git during git-archive
12
12
git_refnames = "%(DOLLAR)sFormat:%%d%(DOLLAR)s"
Original file line number Diff line number Diff line change 1
1
2
- # Version: @VERSIONEER@
2
+ # Version: @VERSIONEER-VERSION @
3
3
4
4
"""
5
5
@README@
Original file line number Diff line number Diff line change 11
11
print "overwriting existing versioneer.py"
12
12
with open ("versioneer.py" , "w" ) as f :
13
13
f .write (v )
14
- print "versioneer.py installed into local tree"
14
+ print "versioneer.py (@VERSIONEER-VERSION@) installed into local tree"
15
15
print "Now please follow instructions in the docstring."
Original file line number Diff line number Diff line change 1
1
2
2
SHORT_VERSION_PY = """
3
- # This file was generated by 'versioneer.py' (@VERSIONEER@) from
3
+ # This file was generated by 'versioneer.py' (@VERSIONEER-VERSION @) from
4
4
# revision-control system data, or from the parent directory name of an
5
5
# unpacked source archive. Distribution tarballs contain a pre-generated copy
6
6
# of this file.
You can’t perform that action at this time.
0 commit comments