Skip to content

Commit cf170b0

Browse files
Merge pull request #5 from brandonwillard/use-versioneer
Use versioneer
2 parents a08d03b + 35334c0 commit cf170b0

File tree

10 files changed

+2415
-4
lines changed

10 files changed

+2415
-4
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cons/_version.py export-subst

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ python:
88
- "pypy3"
99

1010
install:
11-
- pip install -r requirements-dev.txt
12-
- pip install -e ./
11+
- pip install -r requirements.txt
1312

1413
script:
1514
- pylint cons/ tests/

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include versioneer.py
2+
include cons/_version.py

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ pip install cons
8686

8787

8888
[cons]: https://en.wikipedia.org/wiki/Cons
89-
[un]: https://github.com/mrocklin/unification
89+
[un]: https://github.com/pythological/unification

cons/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
from .core import cons, car, cdr # noqa: F401
22

33
from . import unify # noqa: F401
4+
5+
from ._version import get_versions
6+
7+
__version__ = get_versions()["version"]
8+
del get_versions

0 commit comments

Comments
 (0)