Skip to content

Commit

Permalink
Add versioneer to generate our version string
Browse files Browse the repository at this point in the history
My old ad-hoc git-tag-sniffing code was OK but it never supported github
tarballs which was unfortunate. Versioneer handles that case properly
for one, and it seems generally more robust and well-thought-out.
  • Loading branch information
jmuhlich committed Sep 30, 2015
1 parent d649159 commit ff5760c
Show file tree
Hide file tree
Showing 8 changed files with 2,180 additions and 56 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
pysb/_version.py export-subst
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -8,7 +8,6 @@ build/*
dist/* dist/*
doc/_build doc/_build
MANIFEST MANIFEST
RELEASE-VERSION
.idea .idea
*# *#
*.#* *.#*
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
@@ -1,5 +1,6 @@
include RELEASE-VERSION
include LICENSE.txt include LICENSE.txt
include README.rst include README.rst
graft doc graft doc
prune doc/_build prune doc/_build
include versioneer.py
include pysb/_version.py
4 changes: 4 additions & 0 deletions pysb/__init__.py
Expand Up @@ -13,3 +13,7 @@
else: else:
import pysb.reinteract_integration import pysb.reinteract_integration
pysb.reinteract_integration.apply_mixins() pysb.reinteract_integration.apply_mixins()

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

0 comments on commit ff5760c

Please sign in to comment.