Skip to content

Use versioneer to maintain version. #499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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