Skip to content

Commit

Permalink
[setup.py] use bump2version, with annotated tags support
Browse files Browse the repository at this point in the history
The original bumpversion is no longer maintained, this is the new blessed fork

peritus/bumpversion#58 (comment)
https://github.com/c4urself/bump2version
https://pypi.python.org/pypi/bump2version/0.5.5

Annotated tags, e.g. `git tag -am "blah blah"`, can have a message, record
the date and the name of the tagger, and work with git `describe`.
  • Loading branch information
Cosimo Lupo committed Apr 14, 2017
1 parent c4794ec commit 7fedba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def bumpversion(self, part, tag=False, message=None):

args = (
(['--verbose'] if self.verbose > 1 else []) +
(['--tag'] if tag else ['--no-tag']) +
(['--tag', '--tag-message', message] if tag else ['--no-tag']) +
(['--message', message] if message is not None else []) +
[part]
)
Expand Down Expand Up @@ -153,7 +153,7 @@ def run(self):
include_package_data=True,
license="MIT",
setup_requires=pytest_runner + wheel + (
['bumpversion'] if {'release', 'bump_version'}.intersection(sys.argv) else []),
['bump2version'] if {'release', 'bump_version'}.intersection(sys.argv) else []),
tests_require=[
'pytest>=2.8',
],
Expand Down

0 comments on commit 7fedba2

Please sign in to comment.