The tests are pretty much the same but renamed for clarity.
Fixed: allow omitting the current version in sample-config. 6b369fe
If the current version is explicitly left empty during the sample-config questionnaire, the resulting tool.bumpversion table
now lacks a current_version key, and will fall back to PEP 621 project.version (if not dynamic). The instruction text specifically
hints at this new functionality.
New feature: retrieve and update the PEP 621 project version, if possible. 3032450
When determining the current version, and if tool.bumpversion.current_version is not set, attempt to retrieve the
version from project.version à la PEP 621. If that setting is not
set, or if the version is explicitly marked as dynamically set, then
continue with querying SCM tags.
When updating the configuration during bumping, if we previously
successfully retrieved a PEP 621 version, then update the project.version field in pyproject.toml as well. We always update,
even if the true current version was read from tool.bumpversion.current_version instead of project.version.
The docs have been updated; specifically, the "multiple replacements in
one file" howto and the reference for current_version.
The tests have been adapted: the new pep621_info property would
otherwise trip up the old test output, and the None default would trip
up the TOML serializer. Additionally, new tests assert that project.version (and correspondingly, the pep621_info property) is
correctly honored or ignored, depending on the other circumstances.
Refactor CLI config-file option to use @config_option decorator. cd06cbd
Replaced the manual --config-file option setup with the @config_option decorator for cleaner and reusable configuration management. This change simplifies the code and enhances maintainability by consolidating the configuration logic.
New
Added pytest-localserver as a test dependency. c84243d
Add ConfigOption for flexible configuration. 1625248
Introduce ConfigOption and related utilities in bumpversion.click_config to handle configuration file paths or URLs. Includes tests for processing options, resolving paths/URLs, and handling errors in resolve_conf_location and download_url.
Updated other subcommands with the new config_option. 279838a
Improve config resolution and add error handling for paths. 43f0435
Refactor process_value to handle None values and raise a BumpVersionError for non-existent files. Update related tests to ensure correct behavior for missing, existing, and URL-based config paths. These changes enhance robustness and user feedback in handling configuration inputs.
Fix type hinting incompatibility in Python 3.9. 96b29f5
Refactor to use Pathlike type alias for path representation
Unified path type handling across the codebase by introducing the Pathlike type alias (Union[str, Path]). This improves readability and consistency in path-related functions and methods, reducing redundancy. Updated corresponding type annotations, imports, and tests accordingly.
Add support for serializing SCMInfo in YAML, JSON, and output. e8611b2
Ensure SCMInfo objects can be serialized into YAML and JSON formats, improving compatibility with configuration and output displays. Updated dumper functions and tests to reflect the new changes and include SCMInfo details in the configurations.
Updates
Update dependencies and adjust package versions. b6ed073
Fixes #284. Add UTF-8 encoding to subprocess.run in run_command. 6c856b6
Explicitly set the encoding to "utf-8" in the subprocess.run call to ensure consistent handling of command output. This prevents potential encoding-related issues when processing command results.
Add handling for git path addition with new test coverage. 8ad5c82
Enhances the Git class by adding the add_path method, improving control over tracked files. Includes comprehensive test cases to validate subpath handling, handle command failures, and ensure robustness against invalid inputs. Also includes minor refactoring with updated exception handling and code comments.
Add support for 'moveable_tags' configuration option. 2a2f1e6
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
Add support for 'moveable_tags' configuration option. dd1efa5
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
Added additional logging verbosity configuration in setup_logging. 2b420b8
Updated the logging verbosity levels to include formatting options for different verbosity levels. Added a new level (3) with detailed output including file path and line number. Refactored setup_logging to properly handle verbosity and log format settings.
Other
Merge remote-tracking branch 'origin/moving-tags' into moving-tags. a2b7bd1
Remove legacy SCM implementation and add new SCM tests. ddbe21e
Replaced the outdated scm_old.py with a focused and updated SCM implementation. Added extensive tests for the new SCMInfo behavior, path handling, and commit/tag logic, ensuring robust functionality for Git and Mercurial. Updated fixtures and test configurations accordingly.
Rename scm.py to scm_old.py and add new utility functions. dac965d
Refactored SCM-related imports to use the renamed scm_old.py for better module organization. Introduced is_subpath utility to simplify path checks and added support for moveable tags in version control systems. These changes improve code structure and extend functionality for tagging.
Configuration
📅Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕Ignore: Close this PR and you won't be reminded about this update again.
If you want to rebase/retry this PR, check this box
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [bump-my-version](https://github.com/callowayproject/bump-my-version) | dev | minor | `^0.29.0` -> `^0.33.0` |
---
### Release Notes
<details>
<summary>callowayproject/bump-my-version (bump-my-version)</summary>
### [`v0.33.0`](https://github.com/callowayproject/bump-my-version/blob/HEAD/CHANGELOG.md#0330-2025-03-02)
[Compare Source](https://github.com/callowayproject/bump-my-version/compare/0.32.2...0.33.0)
[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.32.2...0.33.0)
##### Fixes
- Fixed warnings in documentation. [782077d](https://github.com/callowayproject/bump-my-version/commit/782077dc438007d4b585991788efe7c5a5c8c19f)
- Refactored PEP621 tests into a class. [2a4f12a](https://github.com/callowayproject/bump-my-version/commit/2a4f12a68067bacf81ec536b884e9ec3afb16751)
The tests are pretty much the same but renamed for clarity.
- Fixed: allow omitting the current version in sample-config. [6b369fe](https://github.com/callowayproject/bump-my-version/commit/6b369fec76e9a45b919e32a85d0b894752f6374d)
If the current version is explicitly left empty during the
`sample-config` questionnaire, the resulting `tool.bumpversion` table
now lacks a `current_version` key, and will fall back to PEP 621
`project.version` (if not dynamic). The instruction text specifically
hints at this new functionality.
##### New
- Add test for moveable tags. [df787f1](https://github.com/callowayproject/bump-my-version/commit/df787f153f1dcde8268e83ef3f035d018735e7bb)
- New feature: retrieve and update the PEP 621 project version, if possible. [3032450](https://github.com/callowayproject/bump-my-version/commit/3032450098f14abeb0661c62442d1ca03b222e09)
When determining the current version, and if
`tool.bumpversion.current_version` is not set, attempt to retrieve the
version from `project.version` à la PEP 621. If that setting is not
set, or if the version is explicitly marked as dynamically set, then
continue with querying SCM tags.
When updating the configuration during bumping, if we previously
successfully retrieved a PEP 621 version, then update the
`project.version` field in `pyproject.toml` as well. We always update,
even if the true current version was read from
`tool.bumpversion.current_version` instead of `project.version`.
The docs have been updated; specifically, the "multiple replacements in
one file" howto and the reference for `current_version`.
The tests have been adapted: the new `pep621_info` property would
otherwise trip up the old test output, and the `None` default would trip
up the TOML serializer. Additionally, new tests assert that
`project.version` (and correspondingly, the `pep621_info` property) is
correctly honored or ignored, depending on the other circumstances.
##### Other
- \[pre-commit.ci] pre-commit autoupdate. [59e8634](https://github.com/callowayproject/bump-my-version/commit/59e863415d9a9f7ef082978ccee7b27c36112ea1)
**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.6...v0.9.7)
##### Updates
- Updated documentation. [8162dd8](https://github.com/callowayproject/bump-my-version/commit/8162dd852b874e36626ad01ad72ea892499a9817)
### [`v0.32.2`](https://github.com/callowayproject/bump-my-version/blob/HEAD/CHANGELOG.md#0322-2025-02-22)
[Compare Source](https://github.com/callowayproject/bump-my-version/compare/0.32.1...0.32.2)
[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.32.1...0.32.2)
##### Fixes
- Fixed coverage issue. [b0c46a3](https://github.com/callowayproject/bump-my-version/commit/b0c46a37ff265b5306abf005b5742a85c4281ea2)
- Refactor SCMInfo and Config imports. [49995c6](https://github.com/callowayproject/bump-my-version/commit/49995c6a9b2ad59c65cb6c1e27362b1254ce7fb4)
- Fixes [#​300](https://github.com/callowayproject/bump-my-version/issues/300) incompatibility with Nuitka compiling
##### Other
- \[pre-commit.ci] pre-commit autoupdate. [b786638](https://github.com/callowayproject/bump-my-version/commit/b786638f152f2044d629c11f38f56713cc5c6dc4)
**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.4...v0.9.6)
### [`v0.32.1`](https://github.com/callowayproject/bump-my-version/blob/HEAD/CHANGELOG.md#0321-2025-02-10)
[Compare Source](https://github.com/callowayproject/bump-my-version/compare/0.32.0...0.32.1)
[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.32.0...0.32.1)
##### Fixes
- Fix rich-click deprecation. [e1fb9fa](https://github.com/callowayproject/bump-my-version/commit/e1fb9fa52b466f70ebced8f192d4411a5804da60)
- Fix Python 3.8 support. [9b2d894](https://github.com/callowayproject/bump-my-version/commit/9b2d894c6ae3fc621789e52dd8b53e088d87f00f)
### [`v0.32.0`](https://github.com/callowayproject/bump-my-version/blob/HEAD/CHANGELOG.md#0320-2025-02-06)
[Compare Source](https://github.com/callowayproject/bump-my-version/compare/0.31.1...0.32.0)
[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.31.1...0.32.0)
##### Fixes
- Refactor CLI config-file option to use @​config_option decorator. [cd06cbd](https://github.com/callowayproject/bump-my-version/commit/cd06cbda61e54eea05b27eda734efc956d81a28a)
Replaced the manual `--config-file` option setup with the `@config_option` decorator for cleaner and reusable configuration management. This change simplifies the code and enhances maintainability by consolidating the configuration logic.
##### New
- Added pytest-localserver as a test dependency. [c84243d](https://github.com/callowayproject/bump-my-version/commit/c84243dba710feebdb571b93ea3cfb120703fd4e)
- Add ConfigOption for flexible configuration. [1625248](https://github.com/callowayproject/bump-my-version/commit/1625248c492c8719d6591af38d3ae2799e9f168f)
Introduce `ConfigOption` and related utilities in `bumpversion.click_config` to handle configuration file paths or URLs. Includes tests for processing options, resolving paths/URLs, and handling errors in `resolve_conf_location` and `download_url`.
- Added httpx as a dependency. [450154e](https://github.com/callowayproject/bump-my-version/commit/450154ea19a321e0de44ef764e029abaafd1535a)
##### Other
- \[pre-commit.ci] pre-commit autoupdate. [17e8301](https://github.com/callowayproject/bump-my-version/commit/17e8301e5a3750b349c97cebcbcc5953f32f9af1)
**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.3...v0.9.4)
- Bump actions/setup-python in the github-actions group. [c0771b0](https://github.com/callowayproject/bump-my-version/commit/c0771b029073feb6a2a3c5e35170f25879b97bc0)
Bumps the github-actions group with 1 update: [actions/setup-python](https://github.com/actions/setup-python).
Updates `actions/setup-python` from 5.3.0 to 5.4.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5.3.0...v5.4.0)
***
**updated-dependencies:** - dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
**signed-off-by:** dependabot\[bot] <support@github.com>
##### Updates
- Updated other subcommands with the new config_option. [279838a](https://github.com/callowayproject/bump-my-version/commit/279838af100dbf3ffc84f500710967944af05f46)
- Improve config resolution and add error handling for paths. [43f0435](https://github.com/callowayproject/bump-my-version/commit/43f04357788bfc11bec4c087e69366f8ba38c3e6)
Refactor `process_value` to handle `None` values and raise a `BumpVersionError` for non-existent files. Update related tests to ensure correct behavior for missing, existing, and URL-based config paths. These changes enhance robustness and user feedback in handling configuration inputs.
### [`v0.31.1`](https://github.com/callowayproject/bump-my-version/blob/HEAD/CHANGELOG.md#0311-2025-02-02)
[Compare Source](https://github.com/callowayproject/bump-my-version/compare/0.31.0...0.31.1)
[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.31.0...0.31.1)
##### Fixes
- Fix type hinting incompatibility in Python 3.9. [96b29f5](https://github.com/callowayproject/bump-my-version/commit/96b29f5ff561586e5dfb2da6e51172930bb717bc)
Refactor to use Pathlike type alias for path representation
Unified path type handling across the codebase by introducing the `Pathlike` type alias (`Union[str, Path]`). This improves readability and consistency in path-related functions and methods, reducing redundancy. Updated corresponding type annotations, imports, and tests accordingly.
### [`v0.31.0`](https://github.com/callowayproject/bump-my-version/blob/HEAD/CHANGELOG.md#0310-2025-02-01)
[Compare Source](https://github.com/callowayproject/bump-my-version/compare/0.30.2...0.31.0)
[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.30.2...0.31.0)
##### New
- Add support for serializing SCMInfo in YAML, JSON, and output. [e8611b2](https://github.com/callowayproject/bump-my-version/commit/e8611b2f6a208b0949d0d148ad0395b3de92b68f)
Ensure SCMInfo objects can be serialized into YAML and JSON formats, improving compatibility with configuration and output displays. Updated dumper functions and tests to reflect the new changes and include SCMInfo details in the configurations.
##### Updates
- Update dependencies and adjust package versions. [b6ed073](https://github.com/callowayproject/bump-my-version/commit/b6ed07302799aab29aea142d9927e766a102e109)
### [`v0.30.2`](https://github.com/callowayproject/bump-my-version/blob/HEAD/CHANGELOG.md#0302-2025-02-01)
[Compare Source](https://github.com/callowayproject/bump-my-version/compare/0.30.1...0.30.2)
[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.30.1...0.30.2)
##### Fixes
- Fix [#​388](https://github.com/callowayproject/bump-my-version/issues/388) - `python3.8` type hint compatibility. [5744f86](https://github.com/callowayproject/bump-my-version/commit/5744f86e8d5ff21e39d6e307b6bb26c70591c5e0)
This should address the following error when running `bump-my-version`
in a `python3.8` environment:
def is_subpath(parent: Path | str, path: Path | str) -> bool:
**typeerror:** unsupported operand type(s) for |: 'type' and 'type'
##### Other
- \[pre-commit.ci] pre-commit autoupdate. [ea3267a](https://github.com/callowayproject/bump-my-version/commit/ea3267a9114182f1ea9299ac468fc65a379005f1)
**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.2...v0.9.3)
### [`v0.30.1`](https://github.com/callowayproject/bump-my-version/blob/HEAD/CHANGELOG.md#0301-2025-01-30)
[Compare Source](https://github.com/callowayproject/bump-my-version/compare/0.30.0...0.30.1)
[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.30.0...0.30.1)
##### Fixes
- Fixing issues with 3.9 compatibility. [cd2b193](https://github.com/callowayproject/bump-my-version/commit/cd2b193412b87ef47c3b9129b527eaa826429270)
- Fixes [#​284](https://github.com/callowayproject/bump-my-version/issues/284). Add UTF-8 encoding to subprocess.run in run_command. [6c856b6](https://github.com/callowayproject/bump-my-version/commit/6c856b6db40300de2ba0583bbd092b25d01b0004)
Explicitly set the encoding to "utf-8" in the subprocess.run call to ensure consistent handling of command output. This prevents potential encoding-related issues when processing command results.
### [`v0.30.0`](https://github.com/callowayproject/bump-my-version/blob/HEAD/CHANGELOG.md#0300-2025-01-26)
[Compare Source](https://github.com/callowayproject/bump-my-version/compare/0.29.0...0.30.0)
[Compare the full difference.](https://github.com/callowayproject/bump-my-version/compare/0.29.0...0.30.0)
##### Fixes
- Fixed normalized paths in is_subpath. [d1c180b](https://github.com/callowayproject/bump-my-version/commit/d1c180b55cf19a5d3d8212bb102318f6b24a5cab)
- Fix formatting in docs. [5fe387c](https://github.com/callowayproject/bump-my-version/commit/5fe387ccf3ea8ce1a4e7b3b9d06f6f4446790cda)
##### New
- Add handling for git path addition with new test coverage. [8ad5c82](https://github.com/callowayproject/bump-my-version/commit/8ad5c82182ec510ecc426656a8be1a41f3ce28f5)
Enhances the `Git` class by adding the `add_path` method, improving control over tracked files. Includes comprehensive test cases to validate subpath handling, handle command failures, and ensure robustness against invalid inputs. Also includes minor refactoring with updated exception handling and code comments.
- Added tests for `utils.is_subpath`. [4e993ed](https://github.com/callowayproject/bump-my-version/commit/4e993ed423e05a8550342bd1d8b8ca82d4c17cb3)
- Add support for 'moveable_tags' configuration option. [2a2f1e6](https://github.com/callowayproject/bump-my-version/commit/2a2f1e6abe4c0d3e34440eacacc4b51bdb49f2df)
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
- Add support for 'moveable_tags' configuration option. [dd1efa5](https://github.com/callowayproject/bump-my-version/commit/dd1efa5026db2843f9ec06bcbb691a38a878fdc4)
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
- Added additional logging verbosity configuration in setup_logging. [2b420b8](https://github.com/callowayproject/bump-my-version/commit/2b420b82201b7b5ad129f4a6f64e99e446f0e492)
Updated the logging verbosity levels to include formatting options for different verbosity levels. Added a new level (3) with detailed output including file path and line number. Refactored setup_logging to properly handle verbosity and log format settings.
##### Other
- Merge remote-tracking branch 'origin/moving-tags' into moving-tags. [a2b7bd1](https://github.com/callowayproject/bump-my-version/commit/a2b7bd152a684234091c5e03c5dd55f50042fcd8)
- \[pre-commit.ci] pre-commit autoupdate. [d03b1da](https://github.com/callowayproject/bump-my-version/commit/d03b1da16140836ef2c4c0daad12a616fedff498)
**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.2)
- \[pre-commit.ci] pre-commit autoupdate. [584711b](https://github.com/callowayproject/bump-my-version/commit/584711b7317a03683e442fdd908a55ee70846cca)
**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.8.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.4...v0.8.6)
- \[pre-commit.ci] pre-commit autoupdate. [c583694](https://github.com/callowayproject/bump-my-version/commit/c58369411fea04f1979b5dd590862317cdccab9f)
**updates:** - [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.3...v0.8.4)
- Bump softprops/action-gh-release from 1 to 2 in the github-actions group. [787c241](https://github.com/callowayproject/bump-my-version/commit/787c241236c1f4da2512868135aca75a81558cca)
Bumps the github-actions group with 1 update: [softprops/action-gh-release](https://github.com/softprops/action-gh-release).
Updates `softprops/action-gh-release` from 1 to 2
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)
***
**updated-dependencies:** - dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
**signed-off-by:** dependabot\[bot] <support@github.com>
##### Updates
- Updated some tests. [4013d86](https://github.com/callowayproject/bump-my-version/commit/4013d863c3762fee1802b012689af62a0184d85a)
- Remove legacy SCM implementation and add new SCM tests. [ddbe21e](https://github.com/callowayproject/bump-my-version/commit/ddbe21e4a29963caa063e554b84592d4c7a8222f)
Replaced the outdated `scm_old.py` with a focused and updated SCM implementation. Added extensive tests for the new `SCMInfo` behavior, path handling, and commit/tag logic, ensuring robust functionality for Git and Mercurial. Updated fixtures and test configurations accordingly.
- Rename `scm.py` to `scm_old.py` and add new utility functions. [dac965d](https://github.com/callowayproject/bump-my-version/commit/dac965d485802668fedc8c6e329bf10d04f7c795)
Refactored SCM-related imports to use the renamed `scm_old.py` for better module organization. Introduced `is_subpath` utility to simplify path checks and added support for moveable tags in version control systems. These changes improve code structure and extend functionality for tagging.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDAuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE4Ni4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
renovate-bot
changed title from chore(deps): update dependency bump-my-version to ^0.30.0 to chore(deps): update dependency bump-my-version to ^0.31.02025-02-05 00:06:22 +01:00
renovate-bot
changed title from chore(deps): update dependency bump-my-version to ^0.31.0 to chore(deps): update dependency bump-my-version to ^0.32.02025-02-11 00:06:13 +01:00
renovate-bot
changed title from chore(deps): update dependency bump-my-version to ^0.32.0 to chore(deps): update dependency bump-my-version to ^0.33.02025-03-06 01:06:08 +01:00
Because you closed this PR without merging, Renovate will ignore this update (^0.33.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
### Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update (`^0.33.0`). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the `ignoreDeps` array of your Renovate config.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
This repo is archived. You cannot comment on pull requests.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
^0.29.0->^0.33.0Release Notes
callowayproject/bump-my-version (bump-my-version)
v0.33.0Compare Source
Compare the full difference.
Fixes
Fixed warnings in documentation. 782077d
Refactored PEP621 tests into a class. 2a4f12a
The tests are pretty much the same but renamed for clarity.
Fixed: allow omitting the current version in sample-config. 6b369fe
If the current version is explicitly left empty during the
sample-configquestionnaire, the resultingtool.bumpversiontablenow lacks a
current_versionkey, and will fall back to PEP 621project.version(if not dynamic). The instruction text specificallyhints at this new functionality.
New
Add test for moveable tags. df787f1
New feature: retrieve and update the PEP 621 project version, if possible. 3032450
When determining the current version, and if
tool.bumpversion.current_versionis not set, attempt to retrieve theversion from
project.versionà la PEP 621. If that setting is notset, or if the version is explicitly marked as dynamically set, then
continue with querying SCM tags.
When updating the configuration during bumping, if we previously
successfully retrieved a PEP 621 version, then update the
project.versionfield inpyproject.tomlas well. We always update,even if the true current version was read from
tool.bumpversion.current_versioninstead ofproject.version.The docs have been updated; specifically, the "multiple replacements in
one file" howto and the reference for
current_version.The tests have been adapted: the new
pep621_infoproperty wouldotherwise trip up the old test output, and the
Nonedefault would tripup the TOML serializer. Additionally, new tests assert that
project.version(and correspondingly, thepep621_infoproperty) iscorrectly honored or ignored, depending on the other circumstances.
Other
[pre-commit.ci] pre-commit autoupdate. 59e8634
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7
Updates
v0.32.2Compare Source
Compare the full difference.
Fixes
Fixed coverage issue. b0c46a3
Refactor SCMInfo and Config imports. 49995c6
Other
[pre-commit.ci] pre-commit autoupdate. b786638
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6
v0.32.1Compare Source
Compare the full difference.
Fixes
Fix rich-click deprecation. e1fb9fa
Fix Python 3.8 support. 9b2d894
v0.32.0Compare Source
Compare the full difference.
Fixes
Refactor CLI config-file option to use @config_option decorator. cd06cbd
Replaced the manual
--config-fileoption setup with the@config_optiondecorator for cleaner and reusable configuration management. This change simplifies the code and enhances maintainability by consolidating the configuration logic.New
Added pytest-localserver as a test dependency. c84243d
Add ConfigOption for flexible configuration. 1625248
Introduce
ConfigOptionand related utilities inbumpversion.click_configto handle configuration file paths or URLs. Includes tests for processing options, resolving paths/URLs, and handling errors inresolve_conf_locationanddownload_url.Added httpx as a dependency. 450154e
Other
[pre-commit.ci] pre-commit autoupdate. 17e8301
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.4
Bump actions/setup-python in the github-actions group. c0771b0
Bumps the github-actions group with 1 update: actions/setup-python.
Updates
actions/setup-pythonfrom 5.3.0 to 5.4.0updated-dependencies: - dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
Updates
Updated other subcommands with the new config_option. 279838a
Improve config resolution and add error handling for paths. 43f0435
Refactor
process_valueto handleNonevalues and raise aBumpVersionErrorfor non-existent files. Update related tests to ensure correct behavior for missing, existing, and URL-based config paths. These changes enhance robustness and user feedback in handling configuration inputs.v0.31.1Compare Source
Compare the full difference.
Fixes
Fix type hinting incompatibility in Python 3.9. 96b29f5
Refactor to use Pathlike type alias for path representation
Unified path type handling across the codebase by introducing the
Pathliketype alias (Union[str, Path]). This improves readability and consistency in path-related functions and methods, reducing redundancy. Updated corresponding type annotations, imports, and tests accordingly.v0.31.0Compare Source
Compare the full difference.
New
Add support for serializing SCMInfo in YAML, JSON, and output. e8611b2
Ensure SCMInfo objects can be serialized into YAML and JSON formats, improving compatibility with configuration and output displays. Updated dumper functions and tests to reflect the new changes and include SCMInfo details in the configurations.
Updates
v0.30.2Compare Source
Compare the full difference.
Fixes
Fix #388 -
python3.8type hint compatibility. 5744f86This should address the following error when running
bump-my-versionin a
python3.8environment:Other
[pre-commit.ci] pre-commit autoupdate. ea3267a
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.3
v0.30.1Compare Source
Compare the full difference.
Fixes
Fixing issues with 3.9 compatibility. cd2b193
Fixes #284. Add UTF-8 encoding to subprocess.run in run_command. 6c856b6
Explicitly set the encoding to "utf-8" in the subprocess.run call to ensure consistent handling of command output. This prevents potential encoding-related issues when processing command results.
v0.30.0Compare Source
Compare the full difference.
Fixes
Fixed normalized paths in is_subpath. d1c180b
Fix formatting in docs. 5fe387c
New
Add handling for git path addition with new test coverage. 8ad5c82
Enhances the
Gitclass by adding theadd_pathmethod, improving control over tracked files. Includes comprehensive test cases to validate subpath handling, handle command failures, and ensure robustness against invalid inputs. Also includes minor refactoring with updated exception handling and code comments.Added tests for
utils.is_subpath. 4e993edAdd support for 'moveable_tags' configuration option. 2a2f1e6
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
Add support for 'moveable_tags' configuration option. dd1efa5
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
Added additional logging verbosity configuration in setup_logging. 2b420b8
Updated the logging verbosity levels to include formatting options for different verbosity levels. Added a new level (3) with detailed output including file path and line number. Refactored setup_logging to properly handle verbosity and log format settings.
Other
Merge remote-tracking branch 'origin/moving-tags' into moving-tags. a2b7bd1
[pre-commit.ci] pre-commit autoupdate. d03b1da
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.2
[pre-commit.ci] pre-commit autoupdate. 584711b
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.8.6
[pre-commit.ci] pre-commit autoupdate. c583694
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4
Bump softprops/action-gh-release from 1 to 2 in the github-actions group. 787c241
Bumps the github-actions group with 1 update: softprops/action-gh-release.
Updates
softprops/action-gh-releasefrom 1 to 2updated-dependencies: - dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
Updates
Updated some tests. 4013d86
Remove legacy SCM implementation and add new SCM tests. ddbe21e
Replaced the outdated
scm_old.pywith a focused and updated SCM implementation. Added extensive tests for the newSCMInfobehavior, path handling, and commit/tag logic, ensuring robust functionality for Git and Mercurial. Updated fixtures and test configurations accordingly.Rename
scm.pytoscm_old.pyand add new utility functions. dac965dRefactored SCM-related imports to use the renamed
scm_old.pyfor better module organization. Introducedis_subpathutility to simplify path checks and added support for moveable tags in version control systems. These changes improve code structure and extend functionality for tagging.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
be4919d303to57b05a53d3chore(deps): update dependency bump-my-version to ^0.30.0to chore(deps): update dependency bump-my-version to ^0.31.057b05a53d3to71a3b50685chore(deps): update dependency bump-my-version to ^0.31.0to chore(deps): update dependency bump-my-version to ^0.32.071a3b50685to3246fd7f49chore(deps): update dependency bump-my-version to ^0.32.0to chore(deps): update dependency bump-my-version to ^0.33.0Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update (
^0.33.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to theignoreDepsarray of your Renovate config.If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.