From fca6d491cbd96b7a5fa55b90898e95424024cad2 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 26 Sep 2019 12:08:05 +0100 Subject: [PATCH] setup.py: bump2version 0.5.11 moved main() into cli submodule --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 12c49b02c..1b7b8d691 100755 --- a/setup.py +++ b/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=", "")