Skip to content

Commit

Permalink
Merge pull request #499 from eriknw/versioneer
Browse files Browse the repository at this point in the history
Use versioneer to maintain version.
  • Loading branch information
eriknw committed Sep 23, 2020
2 parents 03b3715 + 5eebeca commit fd342da
Show file tree
Hide file tree
Showing 9 changed files with 2,362 additions and 6 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ omit =
toolz/tests/test*
toolz/*/tests/test*
toolz/compatibility.py
toolz/_version.py

[report]
exclude_lines =
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
toolz/_version.py export-subst
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include LICENSE.txt

include toolz/tests/*.py
include versioneer.py
include toolz/_version.py
2 changes: 1 addition & 1 deletion doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ three ways:

1. Toolz is pure Python
2. Toolz relies only on the standard library
3. Toolz simultaneously supports Python versions 3.4+ and PyPy
3. Toolz simultaneously supports Python versions 3.5+ and PyPy
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[versioneer]
VCS = git
style = pep440
versionfile_source = toolz/_version.py
versionfile_build = toolz/_version.py
tag_prefix =
parentdir_prefix = toolz-
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

from os.path import exists
from setuptools import setup
import toolz
import versioneer

setup(name='toolz',
version=toolz.__version__,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='List processing tools and functional utilities',
url='https://github.com/pytoolz/toolz/',
author='https://raw.github.com/pytoolz/toolz/master/AUTHORS.md',
maintainer='Matthew Rocklin',
maintainer_email='mrocklin@gmail.com',
maintainer='Erik Welch',
maintainer_email='erik.n.welch@gmail.com',
license='BSD',
keywords='functional utility itertools functools',
packages=['toolz',
Expand Down
4 changes: 3 additions & 1 deletion toolz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@

functoolz._sigs.create_signature_registry()

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

0 comments on commit fd342da

Please sign in to comment.