Open luckydonald opened 8 years ago
It changes the wrong part (install_requires=["something>=0.4.2"],
) and also introduces an additional "
quotes chatacter.
The reason probably is that my search was wrong, and not found. It should abort when the search string is not found!
Instead, currently it replaces all findings of the plain version number.
This one just bit me hard. We're on an embedded project where the version number is a single decimal (i.e., 1-255) and we can't use semantic versioning because of it. Search failed and silently replaced all instances of the number "2" with the full replace string, totally mangling the file. If search fails I'd like an option to simply exit with a non-zero code (IMO this should be the default behavior). Happy to submit a pull request if you agree this is an appropriate solution, either by default or via a flag to stay backwards compatible. Since the replace string is used I can't imagine anyone would be relying on the current behavior.
I'm not sure if this project is still active...
@peritus Are you still accepting pull requests and maintaining this project? Are you looking for any help with maintenance?
@garyjohnson Yes, still accepting pull requests on this one.
I currently don't have the time to, after pull requests to write tests for the submitted code, write docs for the submitted code, think the feature through to the end with regard to backward compatibility and future direction of this project / coaching people to submitting their first pull request etc.
Well tested / documented pull requests will be merged soonish, promise.
Thanks for the clarification. Do you consider this behavior a bug or by design? That will inform how I handle the PR.
It's a bug. And yes, it should abort with a non-zero exit code.
.bumpversion.cfg:
setup.py:
Now it does: