setup.py: bump2version 0.5.11 moved main() into cli submodule

This commit is contained in:
Cosimo Lupo 2019-09-26 12:08:05 +01:00
parent 90be43b879
commit fca6d491cb
No known key found for this signature in database
GPG Key ID: 20D4A261E4A0E642

View File

@ -254,7 +254,7 @@ class release(Command):
""" Run bumpversion.main() with the specified arguments, and return the
new computed version string (cf. 'bumpversion --help' for more info)
"""
import bumpversion
import bumpversion.cli
args = (
(['--verbose'] if self.verbose > 1 else []) +
@ -267,7 +267,7 @@ class release(Command):
log.debug("$ bumpversion %s" % " ".join(a.replace(" ", "\\ ") for a in args))
with capture_logger("bumpversion.list") as out:
bumpversion.main(args)
bumpversion.cli.main(args)
last_line = out.getvalue().splitlines()[-1]
new_version = last_line.replace("new_version=", "")