setup.py: bump2version 0.5.11 moved main() into cli submodule
This commit is contained in:
parent
90be43b879
commit
fca6d491cb
4
setup.py
4
setup.py
@ -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=", "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user