-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'bump' #225
Comments
I'll look into it this morning. You might want to use the If you can add in the verbose ( |
Thanks!
Erhm... I don't think $> 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 |
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 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?
The text was updated successfully, but these errors were encountered: