Skip to content

Commit

Permalink
Made use of versioneer, with a few modifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelson committed Sep 14, 2015
1 parent b9bc7d1 commit 2aae565
Show file tree
Hide file tree
Showing 7 changed files with 2,181 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
lib/matplotlib/_version.py export-subst
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ recursive-include doc *
recursive-include src *.cpp *.c *.h *.m
recursive-include lib *
recursive-include extern *
include versioneer.py
include lib/matplotlib/_version.py
7 changes: 6 additions & 1 deletion lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@
from matplotlib.externals.six.moves.urllib.request import urlopen
from matplotlib.externals.six.moves import reload_module as reload

__version__ = str('1.5.dev1')
# Get the version from the _version.py versioneer file. For a git checkout,
# this is computed based on the number of commits since the last tag.
from ._version import get_versions
__version__ = str(get_versions()['version'])
del get_versions

__version__numpy__ = str('1.6') # minimum required numpy version

try:
Expand Down
Loading

0 comments on commit 2aae565

Please sign in to comment.