Skip to content

Update dependency bump-my-version to <0.33.1#482

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/bump-my-version-0.x
Closed

Update dependency bump-my-version to <0.33.1#482
renovate[bot] wants to merge 1 commit intomainfrom
renovate/bump-my-version-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 10, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
bump-my-version <0.11.0 -> <0.33.1 age adoption passing confidence

Release Notes

callowayproject/bump-my-version (bump-my-version)

v0.33.0

Compare 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-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

  • 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.

Other
Updates

v0.32.2

Compare Source

Compare the full difference.

Fixes
  • Fixed coverage issue. b0c46a3

  • Refactor SCMInfo and Config imports. 49995c6

    • Fixes #​300 incompatibility with Nuitka compiling
Other

v0.32.1

Compare Source

Compare the full difference.

Fixes

v0.32.0

Compare Source

Compare the full difference.

Fixes
  • 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.

  • Added httpx as a dependency. 450154e

Other
Updates
  • 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.

v0.31.1

Compare 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 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

Compare 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
  • Update dependencies and adjust package versions. b6ed073

v0.30.2

Compare Source

Compare the full difference.

Fixes
  • Fix #​388 - python3.8 type hint compatibility. 5744f86

    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

v0.30.1

Compare 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.0

Compare 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 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

  • 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
Updates
  • Updated some tests. 4013d86

  • 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.

v0.29.0

Compare Source

Compare the full difference.

New
  • Add support for specifying current version in do_show. 878197f

    This update introduces a --current-version option to the show command and passes it into the do_show function. If provided, the current_version is added to the configuration, allowing more control over version display or manipulation.

Updates
  • Update README to clarify pre_n handling with distance_to_latest_tag. c027879

    Revised the parse expression to exclude pre_n and updated serialize examples to use distance_to_latest_tag instead. Fixes #​272

v0.28.3

Compare Source

Compare the full difference.

Fixes
  • Fixed tag-name output. 0e773ec

  • Fixed PACKAGE env variable. 76c31c4

  • Fixed syntax errors in scripts. 56dfac0

  • Fixes missing runs-on in workflow. 5fe8ce5

  • Fix: resolve config path to align with the actual repository root. c872315

  • Fixed docs. 1d26b55

  • Fixed doc generation. aa95762

New
  • Added release workflow step. d56650a

  • Added write permissions for contents in github action. 85f19df

Other
Updates

v0.28.2

Compare Source

Compare the full difference.

Fixes
  • Fixed Ruff errors and workflow permissions. 11c1e42

  • Fixed more uv run workflows. d829276

  • Fixed installation of test dependencies. cbf10f2

  • Fixed issue with python install. 6e2da8d

  • Fixed GitHub workflows. 86a0a3b

  • Refactor warning display with Rich formatting. 2b7c905

    Replace plain click-based warnings with styled Rich panels for better visibility. This enhances user experience by providing clearer and more visually organized warnings.

  • Refactored dependencies config. 39fed07

    • Changed project.optional-dependencies to dependency-groups
New
  • Add branch selection for github-push-action. 4ecc07c
Other
Updates
  • Updated uv.lock. 09b825b

  • Update setup section in contributing guide. 4bc279b

    Use extra dependencies specifier (referring to pyproject.toml) in the instructions, instead of requirements txt files (which were removed in previous commits).

v0.28.1

Compare Source

Compare the full difference.

Fixes
  • Fix format arg help text for show command. cf65ec2
Other

v0.28.0

Compare Source

Compare the full difference.

New
  • Added container labels and version hooks. d4cb8f2

  • Add Docker support and configure Dependabot for Docker updates. 0315db4

    Introduce a Dockerfile for containerized environments and add a .dockerignore file to exclude unnecessary files. Also, update dependabot.yml to include daily checks for Docker image updates.

  • Add inputs section in GHA workflow example. 813e7f5

Other
Updates
  • Changed dependency manager to uv. cce9e1d

v0.27.0

Compare Source

Compare the full difference.

Fixes
  • Fixed test to look for warning logs. 538c420

  • Refactor and enhance error handling. c84bfa7

    Updated subprocess calls to disable check, refined lint configurations, fixed type annotations and exceptions, and improved dictionary path validation.

New
  • Add HookError for failed hook execution with tests. 39fc233

    Raise HookError when a hook script exits with a non-zero status. Modified logger to display warnings instead of debug messages in such scenarios. Added tests to ensure exceptions are raised for failed hooks.

Other

v0.26.1

Compare Source

Compare the full difference.

Fixes
  • Fixed missing new version info in some hook environments. 24a9bdc

    Introduce the new_version_env function and update existing functions (get_setup_hook_env and get_pre_commit_hook_env) to include new version environment variables. Added new tests for verifying the inclusion of OS, SCM, current, and new version information in hook environments.

New
  • Add current and previous version outputs to the GHA. 0650ca8

  • Add environment variable to README example. 88c9790

  • Add GitHub action with support for commit/tag push workflow trigger. 2cdb742

Other
Updates
  • Updated pre-commit versions. 6f5d56b

  • Update example to better showcase the GHA capabilities. e3ff9a1

  • Update README.md. f280371

v0.26.0

Compare Source

Compare the full difference.

Fixes
  • Fix issues with environment test on windows. 04a98d0

  • Fixed redundant tests for SCM. e50e991

New
  • Added hook suite documentation. b73a6e1

  • Added hooks to bump command. 3b638e0

  • Added tests for hooks. 8446567

  • Add hooks configuration fields. d6b24f0

    Introduced setup_hooks, pre_bump_hooks, and post_bump_hooks fields to configuration models. Updated corresponding test fixtures to verify these new fields.

  • Add current_tag field to scm_info. 304c599

    Updated the scm_info structure to include a new field, current_tag, across various configuration files and source code. This ensures that the current tag is tracked and represented in the output formats correctly.

Other
  • Enhance hook handling and testing across hook types. 49f1953

    • Introduced unified handling for setup, pre-commit, and post-commit hooks, including dry-run support.

    • Added comprehensive tests to ensure the correct behavior for all hook phases, including cases where no hooks are specified or in dry run mode.

    • Updated environment setup to use a common version environment function.

  • [pre-commit.ci] pre-commit autoupdate. 4342198

    updates: - github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.5.7

Updates
  • Changed the terminology for hooks. 049b470

    Change pre-bump and post-bump to pre-commit and post-commit to better indicate their order of operations.

v0.25.4

Compare Source

Compare the full difference.

Fixes
  • Fixed terminology in tests. 0338da2

    Updated test parameter and assertion messages to use "version component" instead of "version part" for clarity and consistency. This change affects the test cases that detect bad or missing version inputs.

  • Fixed documentation layout. 57958ea

  • Fixed inconsistent terms in docstrings. dfdf23e

    • Switched from using both version parts and version components to simply version components.
Updates

v0.25.3

Compare Source

Compare the full difference.

Fixes
  • Refactor version parsing in visualize function. 5f25300

    Simplify the version parsing process by utilizing the raise_error parameter in the parse method, removing the need for a separate error check. This change ensures that parsing errors are immediately raised and handled cleanly within the visualize function.

  • Refactor and rename version_part to versioning.version_config. 5b90817

    Moved version_part.py to versioning/version_config.py and updated all import statements accordingly. Enhanced error handling in VersionConfig by adding raise_error flag and relevant exception raising for invalid version strings. Refined tests to reflect these changes.

  • Fix version visualization and add verbose logging. ad46978

    Raise an exception for unparsable versions and aggregate visualization output in a list before printing. Add a verbose logging option to the show_bump command for detailed logging control.

v0.25.2

Compare Source

Compare the full difference.

Fixes
  • Fix JSON serialization. d3f3022

    Extended the default_encoder function to handle Path objects by converting them to their string representation. This ensures that Path objects can be properly serialized to JSON format.

v0.25.1

Compare Source

Compare the full difference.

Fixes
  • Fixes mypy pre-commit checking. f7d0909

  • Fixes repository path checks. ff3f72a

    Checked for relative paths when determining if the file was part of the repo or not.

  • Fixed test to use globs. 72f9841

Other

v0.25.0

Compare Source

Compare the full difference.

Fixes
  • Refactor error handling and improve logging in utils. 890b692

    Extracted error formatting to a dedicated function and applied it across the codebase. Improved command path handling in add_path and enhanced test coverage with necessary imports and logging configurations.

  • Fix dictionary merging in SCMInfo. 5fb5ef2

    Replaced the bitwise OR operator with the update method for merging dictionaries for 3.8 support

  • Refactor SCM info retrieval and config file update checks. 500ecd3

    Replaced ChainMap with MutableMapping in function signatures and types. Enhanced SCM info handling by splitting code into dedicated methods for commit and revision info retrieval. Added logic to prevent config file updates when the file is outside the repo and implemented corresponding test.

New
  • Add repository_root field and refactor subprocess handling. 25670d0

    Introduced the repository_root field to store the root path of the repository in the data classes. Refactored subprocess handling to use a new run_command utility for improved readability and error handling consistency. Removed unnecessary dependency from .pre-commit-config.yaml to streamline dependencies.

Other
  • Simplify run_command return type. b91224e

    Changed the return type of run_command from CompletedProcess[str] to CompletedProcess. This was done to remove unnecessary type specificity and ensure compatibility with different Python versions. The update maintains functionality and improves code readability.

  • [pre-commit.ci] pre-commit autoupdate. e0ba544

    updates: - github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.5

v0.24.3

Compare Source

Compare the full difference.

Fixes
  • Fix KeyError in TOML file handling. f3c328a

    The code has been updated to handle KeyErrors when updating TOML files. If a KeyError is raised, it's now caught and managed depending on the file_change attributes 'ignore_missing_file' or 'ignore_missing_version'. This aims to provide more robust handling of edge cases in TOML files. In addition, a new test case has been added to ensure current version is not required in the configuration.

    Fixes #​212

Other

v0.24.2

Compare Source

Compare the full difference.

Fixes
  • Fixed tag version extraction. 67eea3d

    The output of git describe uses - as a delimiter. Parsing tags caused splits in the parsing of version numbers.

    This joins all the remaining parts of the git describe with a -.

  • Fixed pydoclint configuration. 0386073

v0.24.1

Compare Source

Compare the full difference.

Fixes
  • Refactor error handling in SCM and add error handling test. 7ca6356

    This commit includes a new test in test_scm.py to verify the correct formatting and raising of subprocess errors in the SCM module. Additionally, the subprocess error handling has been refactored in the SCM module to include a new method, format_and_raise_error, for improved code readability and reusability.

Other

v0.24.0

Compare Source

Compare the full difference.

New
  • Add VersionNotFoundError test in test_bump.py. cb050a8

    The code in test_bump.py file has been modified to include a test for VersionNotFoundError exception. This ensures that the implementation properly handles cases where a specified version could not be found.

  • Add test for no commit on modification error. 7527029

    A test has been added to the bumpversion library to ensure that no commit and tag is made if there is an error modification. Specifically, the test checks the "do_bump" function and asserts that "mock_commit_and_tag" and "mock_update_config_file" are not called under these conditions.

Other
Updates
  • Improve error message for SCM command failures. 8f72f86

    The error message for failures in the SCM command execution has been enhanced. Now it displays not only the command's return code but also the standard output and error, improving the debugging process.

v0.23.0

Compare Source

Compare the full difference.

Fixes
  • Refactor valid_bumps and invalid_bumps to include_bumps and exclude_bumps. 2df57cc

    The configuration parameters valid_bumps and invalid_bumps were renamed to include_bumps and exclude_bumps respectively. This new naming better denotes their function, and the changes were consistently applied across all related files and tests. Numerous fixture outputs were also updated to reflect these changes.

  • Fixed spelling in CODE_OF_CONDUCT.md. 254ea44

New
  • Add file filtering based on valid and invalid bumps. f9f7f96

    This commit introduces the ability to filter files based on whether the specified bump type is valid or not. It adds valid_bumps and invalid_bumps lists in the file configurations and adjusts the bumping process to consider these configurations. Tests are updated to reflect these new handling of valid and invalid bumps.

  • Add new files to .gitignore. 34e4dc1

    Several new file types have been added to .gitignore for ignoring during commits. These include '.python-version', 'requirements-dev.lock', and 'requirements.lock' files.

  • Add valid_bumps and invalid_bumps to file configuration. 9458851

    Updated the configuration file model to support valid_bumps and invalid_bumps. This feature provides control over which version section updates can trigger file changes. Adjusted various test fixtures and cleaned up tests to match these changes. Also, some updates were made to the documentation accordingly.

Other
Updates
  • Update documentation for clarification. 2224808

    The changes made update the wording in the documentation to clarify the roles of include_bumps and exclude_bumps in the bump-my-version configuration. Additionally, unnecessary repetition was removed and overlapping examples were also corrected.

  • Update docs/reference/configuration.md. 7c801c0

    co-authored-by: wkoot 3715211+wkoot@users.noreply.github.com

v0.22.0

Compare Source

Compare the full difference.

New
  • Add extensive documentation for the 'show' subcommand. 91409d8

    This commit adds extensive documentation for the show subcommand in the program's reference. It also includes smaller updates and corrections to other parts of the documentation. An in-depth example usage of show is added both to the dedicated show.md file and in the function's docstring.

Updates
  • Renamed version workflow to release. 68f9eee

v0.21.1

Compare Source

Compare the full difference.

Other
Updates

v0.21.0

Compare Source

Compare the full difference.

Fixes
  • Fixed a bug in the glob tests. 1041fe9

    Was not properly looking in the correct relative directories.

  • Fixed test for Windows glob paths. ea45c4c

  • Fixed exclusion logic with wcmatch. 1c391be

  • Refactored glob matching to use the wcmatch library. bbf4ae0

New
  • Adds glob_exclude file specification parameter. 420e3bd

    User can prune the files resolved via the glob parameter.

    Fixes #​184

Other

v0.20.3

Compare Source

Compare the full difference.

Fixes

Configuration

📅 Schedule: Branch creation - "after 7am and before 4pm on monday" in timezone Europe/London, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/bump-my-version-0.x branch from 122e8b3 to c1782dc Compare February 12, 2025 15:20
@renovate renovate bot changed the title Update dependency bump-my-version to <0.32.1 Update dependency bump-my-version to <0.32.2 Feb 12, 2025
@renovate renovate bot force-pushed the renovate/bump-my-version-0.x branch from c1782dc to 240f456 Compare February 24, 2025 16:36
@renovate renovate bot changed the title Update dependency bump-my-version to <0.32.2 Update dependency bump-my-version to <0.32.3 Feb 24, 2025
@tieneupin
Copy link
Contributor

tieneupin commented Feb 25, 2025

@d-j-hatton, @stephen-riggs, this automatic update should be possible after moving to Pydantic >=v2.7

@renovate renovate bot force-pushed the renovate/bump-my-version-0.x branch from 240f456 to f3a7dcd Compare March 4, 2025 15:44
@renovate renovate bot changed the title Update dependency bump-my-version to <0.32.3 Update dependency bump-my-version to <0.33.1 Mar 4, 2025
@d-j-hatton d-j-hatton closed this Mar 11, 2025
@renovate
Copy link
Contributor Author

renovate bot commented Mar 11, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (<0.33.1). 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 renovate bot deleted the renovate/bump-my-version-0.x branch March 11, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants