Open twall opened 8 years ago
I've also hit the same issue via bumpversion -n --allow-dirty minor
:
Traceback (most recent call last):
File "/Users/nehalecky/miniconda2/envs/bombora/bin/bumpversion", line 11, in <module>
sys.exit(main())
File "/Users/nehalecky/miniconda2/envs/bombora/lib/python3.5/site-packages/bumpversion/__init__.py", line 912, in main
f.should_contain_version(current_version, context)
File "/Users/nehalecky/miniconda2/envs/bombora/lib/python3.5/site-packages/bumpversion/__init__.py", line 202, in should_contain_version
if self.contains(serialized_version):
File "/Users/nehalecky/miniconda2/envs/bombora/lib/python3.5/site-packages/bumpversion/__init__.py", line 214, in contains
with io.open(self.path, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'minor'
Running with bumpversion --dry-run --allow-dirty minor
works just fine. :)
Same here, -n
is not properly parsed, --dry-run
is fine. Cost me half an hour to see what's going wrong. :(
I also ran into this today. Looking at the code it's not obvious why it should behave this way however the code is sufficiently complex (300+ lines of intermixed cli args and config file parsing) to not be easy to understand.
me too :)
[sorry, still not sure which of these emojis signals a literal +1 (cos 👍 kinda implies 'nice work' / 'i like this')]
bump (the irony! ;)
Its been fixed in https://github.com/peritus/bumpversion/commit/6ec908f018a827bfae94ed50baf241461eba7bcb but apparently not released yet.
Also lost some time because of this, looks like abandonware :(
Same here. At least didn't spent more than an hour on this issue.
This should be ported to click
- it does much better work at parsing arguments.
If I use
-n
the argument is parsed as apart
(version 0.5.3)..bumpversion.cfg
: