Installation
pip install version-upper
New Features!
- Added feature to replace select version strings in files using regex closing out 13, with tests to ensure that `tests/sample_files/Chart_before.yaml` turns into `tests/sample_files/Chart_after.yaml`
Fixes
- Fixed bug where the config being updated is the config being passed to it vs the `DEFAULT_CONFIG_FILE`
Changes
- renamed `.github/workflows/python-test.yml` name to `test`
- changed triggers of `.github/workflows/python-test.yml` to run also every day around 5pm central to track this [Pydantic bug](https://api.github.com/repos/samuelcolvin/pydantic/issues/1269) and be notified that I need to change the type of `search_pattern` to `Pattern` (see `test_pydantic_bug_1269()`)
- test badge now points to GitHub Actions, as it should (Travis was removed anyways)
- All tests now have their config files specify the `"files"` to change, as they should (that's how the user is going to use it anyways)
- renamed `tests/sample_version_files` → `tests/sample_files` to remove ambiguity (addresses this [issue comment](https://github.com/hkiang01/version-upper/issues/5issuecomment-667437688) by Neil-Schneider)
- refactored `bump_test_helper` in `tests/test_version_upper.py` so that:
- "version files" (which are actually just arbitrary files) are removed (further addresses this [issue comment](https://github.com/hkiang01/version-upper/issues/5issuecomment-667437688) by Neil-Schneider)
- it expects a single entry in "file" in `config_file` (for limited scope in testing, which is arguably a good thing)
- it returns the contents of the "file" after `version_upper` has run with `cli_args` so that you can compare the output with the expected output (as is done in `test_search()`)
- Added a `SearchPattern` as a valid entry in "files" in a `Config`