Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 3, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
bump-my-version >=0.29.0 -> >=1.0.1 age adoption passing confidence

Release Notes

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

v1.0.1

Compare Source

Compare the full difference.

Fixes
  • Fix type hinting compatibility for 3.8. 9c2bb03

    Replaced list with List for type hints to ensure compatibility with earlier Python versions.

v1.0.0

Compare Source

Compare the full difference.

Breaking Changes
New
  • Added breaking change parsing. 00c4e7b

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.


Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), 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 added the dependencies Pull requests that update a dependency file label Mar 3, 2025
@codecov
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.65%. Comparing base (999ea36) to head (6099556).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #366   +/-   ##
=======================================
  Coverage   93.65%   93.65%           
=======================================
  Files          41       41           
  Lines        2268     2268           
=======================================
  Hits         2124     2124           
  Misses        144      144           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/bump-my-version-1.x branch from cd272cc to 6099556 Compare March 5, 2025 03:17
@he0119 he0119 merged commit 73e490c into main Mar 8, 2025
7 checks passed
@he0119 he0119 deleted the renovate/bump-my-version-1.x branch March 8, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants