Skip to content

Commit d8b1649

Browse files
committed
Use versioneer to maintain version.
1 parent 03b3715 commit d8b1649

File tree

8 files changed

+2359
-4
lines changed

8 files changed

+2359
-4
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
toolz/_version.py export-subst

MANIFEST.in

+2
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

+1-1
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

+7
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

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
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',

toolz/__init__.py

+3-1
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)