Skip to content

Commit 2cc0c7c

Browse files
authored
Merge pull request #429 from martinfleis/versioneer
Use versioneer to manage __version__
2 parents 1d63261 + b400dc0 commit 2cc0c7c

File tree

7 files changed

+2704
-11
lines changed

7 files changed

+2704
-11
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.ipynb linguist-language=Python
2+
libpysal/_version.py export-subst

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
include authors.txt LICENSE.txt THANKS.txt CHANGELOG.md MANIFEST.in pysal/COPYING requirements_dev.txt requirements_plus.txt requirements.txt requirements_plus_conda.txt requirements_plus_pip.txt requirements_docs.txt
22

3+
include versioneer.py
4+
include libpysal/_version.py

libpysal/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
__version__ = "4.5.1"
2-
3-
# __version__ has to be define in the first line
4-
51
"""
62
libpysal: Python Spatial Analysis Library (core)
73
================================================
@@ -28,3 +24,7 @@
2824
from . import io
2925
from . import weights
3026
from . import examples
27+
28+
from . import _version
29+
30+
__version__ = _version.get_versions()["version"]

0 commit comments

Comments
 (0)