Closed zerothi closed 3 months ago
I'll look into it this morning. You might want to use the -vv
flag to have it show more information to see where it is failing. I need to have better error checking in there anyway.
If you can add in the verbose (-vv
) results in here, it will help.
I'll look into it this morning. You might want to use the
-vv
flag to have it show more information to see where it is failing. I need to have better error checking in there anyway.
Thanks!
If you can add in the verbose (
-vv
) results in here, it will help.
Erhm... I don't think -vv
works?
$> bump-my-version -vv show-bump
Usage: bump-my-version [OPTIONS] COMMAND [ARGS]...
Try 'bump-my-version -h' for help
╭─ Error ────────────────────────────────────────────────────────────────────╮
│ No such option: -v │
╰────────────────────────────────────────────────────────────────────────────╯
and
bump-my-version show-bump -vv
Usage: bump-my-version show-bump [OPTIONS] [VERSION]
Try 'bump-my-version show-bump -h' for help
╭─ Error ────────────────────────────────────────────────────────────────────╮
│ No such option: -v │
╰────────────────────────────────────────────────────────────────────────────╯
And:
$> bump-my-version show
{'allow_dirty': True,
'commit': False,
'commit_args': '',
'current_version': '0.15.0',
'excluded_paths': [],
'files': [],
'ignore_missing_files': False,
'ignore_missing_version': False,
'included_paths': [],
'message': 'Bump version: {current_version} → {new_version}',
'parse': '(?x)\n'
' (?P<major>0|[1-9]\\d*)\\.\n'
' (?P<minor>0|[1-9]\\d*)\\.\n'
' (?P<patch>0|[1-9]\\d*)"\n'
' (?:\n'
' (?P<pre_l>[a-zA-Z]+)\n'
' (?P<pre_n>[1-9]\\d*)\n'
' )?\n',
'parts': {'major': {'always_increment': False,
'calver_format': None,
'depends_on': None,
'first_value': None,
'independent': False,
'optional_value': None,
'values': None},
'minor': {'always_increment': False,
'calver_format': None,
'depends_on': None,
'first_value': None,
'independent': False,
'optional_value': None,
'values': None},
'patch': {'always_increment': False,
'calver_format': None,
'depends_on': None,
'first_value': None,
'independent': False,
'optional_value': None,
'values': None},
'pre_l': {'always_increment': False,
'calver_format': None,
'depends_on': None,
'first_value': None,
'independent': False,
'optional_value': 'final',
'values': ['dev', 'rc', 'final']},
'pre_n': {'always_increment': False,
'calver_format': None,
'depends_on': None,
'first_value': None,
'independent': False,
'optional_value': None,
'values': None}},
'regex': True,
'replace': '{new_version}',
'scm_info': {'branch_name': 'main',
'commit_sha': '2157c89ff96682da25a0db6a36ecb562b6dbc7d4',
'current_version': '0.15.0',
'dirty': False,
'distance_to_latest_tag': 1,
'repository_root': PosixPath('/home/nicpa/codes/sisl'),
'short_branch_name': 'main',
'tool': <class 'bumpversion.scm.Git'>},
'search': '{current_version}',
'serialize': ('{major}.{minor}.{patch}{pre_l}{pre_n}',
'{major}.{minor}.{patch}'),
'sign_tags': True,
'tag': True,
'tag_message': 'Bump version: {current_version} → {new_version}',
'tag_name': 'v{new_version}'}
Crap, you are right. Verbose logging isn't set on the show-bump
command.
OK, I have your problem. In your configuration:
[tool.bumpversion]
current_version = "0.15.0rc7"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)"
(?:
(?P<pre_l>[a-zA-Z]+)
(?P<pre_n>[1-9]\\d*)
)?
"""
You have an "
at the end of 4th line of the parse
configuration.
I'm also going to fix the exception and have a good error.
OK, I have your problem. In your configuration:
[tool.bumpversion] current_version = "0.15.0rc7" parse = """(?x) (?P<major>0|[1-9]\\d*)\\. (?P<minor>0|[1-9]\\d*)\\. (?P<patch>0|[1-9]\\d*)" (?: (?P<pre_l>[a-zA-Z]+) (?P<pre_n>[1-9]\\d*) )? """
You have an
"
at the end of 4th line of theparse
configuration.I'm also going to fix the exception and have a good error.
Thanks! I had completely missed that ;)
0.25.2
3.11.7
debian
Description
I am trying to get
bump-my-version
working for my repository: https://github.com/zerothi/sisl/I am currently on a
rc
check, and hence I wanted to follow the guide for usingrc
etc.What I Did
I used
bump-my-version
with create config and got this:I then did:
Any ideas?