Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5c5e2a

Browse files
committed
let setuptools tag version
svn path=/trunk/matplotlib/; revision=2541
1 parent 32f6736 commit a5c5e2a

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[egg_info]
2+
tag_build = .dev
3+
tag_svn_revision = 1

setup.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@
7474
for line in file('lib/matplotlib/__init__.py').readlines():
7575
if line[:11] == '__version__':
7676
exec(line)
77-
# Append cvs tag if working from cvs tree
78-
if os.path.isdir('.svn') and os.path.isfile(os.sep.join(['.svn', 'entries'])):
79-
import re
80-
revision = 0
81-
revre = re.compile(r'(committed-rev|revision)="(\d+)"')
82-
for match in revre.finditer(open(os.sep.join(['.svn', 'entries'])).read()):
83-
revision = max(revision, int(match.group(2)))
84-
__version__ += 'dev_r%i' % revision
85-
break
8677

8778
# Specify all the required mpl data
8879
data = []

0 commit comments

Comments
 (0)