mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
better cli output
This commit is contained in:
parent
a28e508e3c
commit
ee68b1dd05
1 changed files with 12 additions and 12 deletions
|
|
@ -279,7 +279,7 @@ def parse(ctx: ProjectContext) -> MaybeConfig:
|
||||||
|
|
||||||
return _parse_config(raw_cfg)
|
return _parse_config(raw_cfg)
|
||||||
except ValueError as ex:
|
except ValueError as ex:
|
||||||
log.error(f"Error parsing {ctx.config_filepath}: {str(ex)}")
|
log.warn(f"Couldn't parse {ctx.config_filepath}: {str(ex)}")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -292,34 +292,34 @@ tag = True
|
||||||
push = True
|
push = True
|
||||||
|
|
||||||
[pycalver:file_patterns]
|
[pycalver:file_patterns]
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_CONFIGPARSER_SETUP_CFG_STR = """
|
DEFAULT_CONFIGPARSER_SETUP_CFG_STR = """
|
||||||
setup.cfg =
|
setup.cfg =
|
||||||
current_version = "{version}"
|
current_version = "{version}"
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_CONFIGPARSER_SETUP_PY_STR = """
|
DEFAULT_CONFIGPARSER_SETUP_PY_STR = """
|
||||||
setup.py =
|
setup.py =
|
||||||
"{version}"
|
"{version}"
|
||||||
"{pep440_version}"
|
"{pep440_version}"
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_CONFIGPARSER_README_RST_STR = """
|
DEFAULT_CONFIGPARSER_README_RST_STR = """
|
||||||
README.rst =
|
README.rst =
|
||||||
{version}
|
{version}
|
||||||
{pep440_version}
|
{pep440_version}
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_CONFIGPARSER_README_MD_STR = """
|
DEFAULT_CONFIGPARSER_README_MD_STR = """
|
||||||
README.md =
|
README.md =
|
||||||
{version}
|
{version}
|
||||||
{pep440_version}
|
{pep440_version}
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_TOML_BASE_TMPL = """
|
DEFAULT_TOML_BASE_TMPL = """
|
||||||
|
|
@ -331,21 +331,21 @@ tag = true
|
||||||
push = true
|
push = true
|
||||||
|
|
||||||
[pycalver.file_patterns]
|
[pycalver.file_patterns]
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_TOML_PYCALVER_STR = """
|
DEFAULT_TOML_PYCALVER_STR = """
|
||||||
"pycalver.toml" = [
|
"pycalver.toml" = [
|
||||||
'current_version = "{version}"',
|
'current_version = "{version}"',
|
||||||
]
|
]
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_TOML_PYPROJECT_STR = """
|
DEFAULT_TOML_PYPROJECT_STR = """
|
||||||
"pyproject.toml" = [
|
"pyproject.toml" = [
|
||||||
'current_version = "{version}"',
|
'current_version = "{version}"',
|
||||||
]
|
]
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_TOML_SETUP_PY_STR = """
|
DEFAULT_TOML_SETUP_PY_STR = """
|
||||||
|
|
@ -353,7 +353,7 @@ DEFAULT_TOML_SETUP_PY_STR = """
|
||||||
"{version}",
|
"{version}",
|
||||||
"{pep440_version}",
|
"{pep440_version}",
|
||||||
]
|
]
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_TOML_README_RST_STR = """
|
DEFAULT_TOML_README_RST_STR = """
|
||||||
|
|
@ -361,7 +361,7 @@ DEFAULT_TOML_README_RST_STR = """
|
||||||
"{version}",
|
"{version}",
|
||||||
"{pep440_version}",
|
"{pep440_version}",
|
||||||
]
|
]
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_TOML_README_MD_STR = """
|
DEFAULT_TOML_README_MD_STR = """
|
||||||
|
|
@ -369,7 +369,7 @@ DEFAULT_TOML_README_MD_STR = """
|
||||||
"{version}",
|
"{version}",
|
||||||
"{pep440_version}",
|
"{pep440_version}",
|
||||||
]
|
]
|
||||||
"""
|
""".lstrip()
|
||||||
|
|
||||||
|
|
||||||
def _initial_version() -> str:
|
def _initial_version() -> str:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue