Skip to content

Commit

Permalink
configparser2 requires .value to get the actual value
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 7, 2021
1 parent e8c86e1 commit 9b08342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo_helper/files/ci_cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def ensure_bumpversion(repo_path: pathlib.Path, templates: jinja2.Environment) -
setup_cfg_section = bv["bumpversion:file:setup.cfg"]
if (
"search" not in setup_cfg_section
or ("search" in setup_cfg_section and setup_cfg_section["search"] == "name = {current_version}")
or ("search" in setup_cfg_section and setup_cfg_section["search"].value == "name = {current_version}")
):
setup_cfg_section["search"] = "version = {current_version}"
setup_cfg_section["replace"] = "version = {new_version}"
Expand Down

0 comments on commit 9b08342

Please sign in to comment.