Skip to content

Commit

Permalink
Made use of versioneer. (#743)
Browse files Browse the repository at this point in the history
Made use of versioneer.
  • Loading branch information
pelson committed Feb 7, 2018
1 parent 6f56b97 commit d54b658
Show file tree
Hide file tree
Showing 9 changed files with 2,597 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/cartopy/_version.py export-subst
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ install:
# Install cartopy
# ---------------
- pip install --no-deps .
- python -c "import cartopy; print('Version ', cartopy.__version__)" && python setup.py version

script:
- mkdir ../test_folder
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ include lib/cartopy/data/*
include lib/cartopy/io/srtm.npz
recursive-include lib *.py
recursive-include lib *.pyx *.pxd *.h
include versioneer.py
5 changes: 4 additions & 1 deletion lib/cartopy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@

from __future__ import (absolute_import, division, print_function)

__version__ = '0.15.0'
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions

__document_these__ = ['config']

# Configuration
Expand Down
Loading

0 comments on commit d54b658

Please sign in to comment.