Skip to content

Commit fd342da

Browse files
authored
Merge pull request #499 from eriknw/versioneer
Use versioneer to maintain version.
2 parents 03b3715 + 5eebeca commit fd342da

File tree

9 files changed

+2362
-6
lines changed

9 files changed

+2362
-6
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ omit =
33
toolz/tests/test*
44
toolz/*/tests/test*
55
toolz/compatibility.py
6+
toolz/_version.py
67

78
[report]
89
exclude_lines =

.gitattributes

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

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
include LICENSE.txt
22

33
include toolz/tests/*.py
4+
include versioneer.py
5+
include toolz/_version.py

doc/source/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ three ways:
1111

1212
1. Toolz is pure Python
1313
2. Toolz relies only on the standard library
14-
3. Toolz simultaneously supports Python versions 3.4+ and PyPy
14+
3. Toolz simultaneously supports Python versions 3.5+ and PyPy

setup.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[versioneer]
2+
VCS = git
3+
style = pep440
4+
versionfile_source = toolz/_version.py
5+
versionfile_build = toolz/_version.py
6+
tag_prefix =
7+
parentdir_prefix = toolz-

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
from os.path import exists
44
from setuptools import setup
5-
import toolz
5+
import versioneer
66

77
setup(name='toolz',
8-
version=toolz.__version__,
8+
version=versioneer.get_version(),
9+
cmdclass=versioneer.get_cmdclass(),
910
description='List processing tools and functional utilities',
1011
url='https://github.com/pytoolz/toolz/',
1112
author='https://raw.github.com/pytoolz/toolz/master/AUTHORS.md',
12-
maintainer='Matthew Rocklin',
13-
maintainer_email='mrocklin@gmail.com',
13+
maintainer='Erik Welch',
14+
maintainer_email='erik.n.welch@gmail.com',
1415
license='BSD',
1516
keywords='functional utility itertools functools',
1617
packages=['toolz',

toolz/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@
2121

2222
functoolz._sigs.create_signature_registry()
2323

24-
__version__ = '0.10.0'
24+
from ._version import get_versions
25+
__version__ = get_versions()['version']
26+
del get_versions

0 commit comments

Comments
 (0)