Skip to content

Commit 2aae565

Browse files
committed
Made use of versioneer, with a few modifications.
1 parent b9bc7d1 commit 2aae565

File tree

7 files changed

+2181
-6
lines changed

7 files changed

+2181
-6
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
* text=auto
2+
lib/matplotlib/_version.py export-subst

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ recursive-include doc *
1717
recursive-include src *.cpp *.c *.h *.m
1818
recursive-include lib *
1919
recursive-include extern *
20+
include versioneer.py
21+
include lib/matplotlib/_version.py

lib/matplotlib/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@
129129
from matplotlib.externals.six.moves.urllib.request import urlopen
130130
from matplotlib.externals.six.moves import reload_module as reload
131131

132-
__version__ = str('1.5.dev1')
132+
# Get the version from the _version.py versioneer file. For a git checkout,
133+
# this is computed based on the number of commits since the last tag.
134+
from ._version import get_versions
135+
__version__ = str(get_versions()['version'])
136+
del get_versions
137+
133138
__version__numpy__ = str('1.6') # minimum required numpy version
134139

135140
try:

0 commit comments

Comments
 (0)