bump2version icon indicating copy to clipboard operation
bump2version copied to clipboard

--new-version returns bumpversion: error: the following arguments are required: part

Open 1Mark opened this issue 2 years ago • 1 comments

You can't just run bump2version --new-version 0.1.7

Reading config file setup.cfg:
[bumpversion]
current_version = 0.1.6
commit = True
tag = True

[bumpversion:file:deeppath/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

[bdist_wheel]
universal = 1

[flake8]
exclude = docs

[aliases]
test = pytest

[tool:pytest]
collect_ignore = ['setup.py']

usage: bumpversion [-h] [--config-file FILE] [--verbose] [--list] [--allow-dirty] [--parse REGEX] [--serialize FORMAT]
                   [--search SEARCH] [--replace REPLACE] [--current-version VERSION] [--no-configured-files]
                   [--dry-run] --new-version VERSION [--commit | --no-commit] [--tag | --no-tag]
                   [--sign-tags | --no-sign-tags] [--tag-name TAG_NAME] [--tag-message TAG_MESSAGE]
                   [--message COMMIT_MSG] [--commit-args COMMIT_ARGS]
                   part [file [file ...]]
bumpversion: error: the following arguments are required: part

From what I can see when I use --new-version that I am giving the whole version not part of it, so why is it mandatory?

1Mark avatar Mar 12 '22 15:03 1Mark

Stumbled upon this as well.

Same issue as https://github.com/c4urself/bump2version/issues/22

loichuder avatar May 23 '22 10:05 loichuder