Version-upper

Latest version: v0.2.2

Safety actively analyzes 619286 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.2

Installation


pip install version-upper

Fixes
- Fix entrypoint, closes 16

0.2.0

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`

0.1.1

Installation


pip install version-upper


Changes
- consolidate all CI in GitHub Actions
- remove Travis CI
- pin flake8 version
- move git config into tests where they're actually needed and fix a bug where commits are made under "Your Name" in the process :)

0.1.0

Installation


pip install version-upper


Changes
- Full coverage, with 400 less lines of code!
- add test for `init()` as described in [this article](https://medium.com/opsops/how-to-test-if-name-main-1928367290cb)
- add `mock` and `rope` packages to dev dependencies
- install dev requirements before running tests in CI
- add cov.xml to gitignore
- rename `cli()` to `version_upper()`
- all `Exceptions` are handled by click
- remove unnecessary if checks
- add gitlens extension to dev container

Breaking Changes!
- `--release-candidate` flag illegal when used with `bump rc`

0.0.4

Installation


pip install version-upper


Changes
- raise FileError when no config file exists
- use click.echo instead of print to print output to console
- return status code 0 when running `config-schema` and `sample-config`
- fix typo
- check outputs of `current-version` and `current-semantic-version` commands in tests using `bump`
- tests for running sub-commands when there is no config file

0.0.3

Installation


pip install version-upper


Changes
- commit_sha -> commit_hash (consistent documentation)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.