c4urself / bump2version

Version-bump your software with a single command
https://pypi.python.org/pypi/bump2version
MIT License
1.05k stars 135 forks source link

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

Open 1Mark opened 2 years ago

1Mark commented 2 years ago

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?

loichuder commented 2 years ago

Stumbled upon this as well.

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