Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 30, 2024

This PR contains the following updates:

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

Release Notes

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

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
  • Fixed test logging setup. 3777f27

  • Fixed the indentation problem. ec3cd99

    • Added a dedent when a file does not match the change pattern.
    • Fixes #​181
Other

v0.20.2

Compare Source

Compare the full difference.

Fixes
  • Fixed the rendering of numeric version components. c522c75

    • Numeric version components now will attempt to render its value as an integer and fall back to the parsed value.
  • Fixed code block in the README. b4ff9f3

Other

v0.20.1

Compare Source

Compare the full difference.

Fixes
  • Fix typos discovered by codespell. d5c33a3

  • Fixed relative references. 2aa1011

  • Refactored the docs. b63a9e7

Other

v0.20.0

Compare Source

Compare the full difference.

Fixes
  • Refactored context into its own module. 5a3e05d
New
  • Added always_increment attribute for parts. 53ee848

    This is a requirement for CalVer to ensure they always increment with each bump, but it will work for any type.

  • Added CalVer function and formatting. 7a0e639

    • Version parts now have a calver_format attribute for CalVer parts.
Updates
  • Updated the documentation. 607609d

v0.19.3

Compare Source

Compare the full difference.

Fixes
  • Fixed packaging of dev releases. 84254e0

  • Fixed platform-dependent encoding. f8b4d65

    • Added encoding="utf-8" to all writes.
  • Fixed version.yaml workflow. 10b007c

Other

v0.19.0

Compare Source

Compare the full difference.

Fixes
  • Fixing version hint generation. ae1732b
Updates
  • Removes ability to call the CLI without subcommand. e56c944

    BREAKING CHANGE: You must use bump-my-version bump

v0.18.3

Compare Source

Compare the full difference.

Fixes
  • Fixed --ignore-missing-version and --ignore-missing-files options. 7635873

    The CLI options were defaulting to False when missing. This overrode the configuration.

    Fixes #​140

v0.18.2

Compare Source

Compare the full difference.

Fixes

v0.18.1

Compare Source

Compare the full difference.

Fixes
  • Fixed type annotation in config. 2988ede

  • Fixed naming issue for docs. 2850aa7

    • renamed changelog.md and contributing.md
New
  • Added how-to doc. 68643a9

    • "How to update a date in a file"
Other
Updates

v0.17.4

Compare Source

Compare the full difference.

Fixes
Other

v0.17.3

Compare Source

Compare the full difference.

Fixes
  • Refactored VersionComponentConfig to VersionComponentSpec. b538308

    More consistent with VersionSpec

New
  • Added mental model documentation. 5cbd250
Other
Updates
  • Updated more documentation. 779c84c

v0.17.2

Compare Source

Compare the full difference.

Fixes
  • Fixed some tests. 593a4ee

  • Refactored serialization. 0ac2cd8

    • Moved serialization from VersionConfig to version.serialization
  • Fixed extra capture group in PEP440 parser. 384fd99

  • Refactored verioning models. 88e7f71

    • created a "conventions" module for future release
    • added an optional depends_on version component configuration
    • The depends_on is required for PEP440 versioning
  • Fixed None as value for a function. f8c4d05

    • Turns None into an empty string
  • Fixed bad imports. 5c86d51

  • Refactored versioning models and tests. 7d05414

  • Refactored version parsing. 5ed546b

  • Refactored versioning functions and version parts. be87721

  • Fixed timezone of a test. 0e01253

v0.17.1

Compare Source

Compare the full difference.

Fixes
  • Fixed bad error checking with SCM. 10e5d7d

  • Fix missing current version within the context. a5dca4c

v0.17.0

Compare Source

Compare the full difference.

Fixes
  • Fixed Py3.8 type annotation. c15b23b

  • Fixed some output in visualizing. 406f97a

  • Fixed bad type annotation. 8f4bedf

  • Fixed bad test imports. a74342b

  • Refactored the create subcommand. f529d28

    • Also organized the CLI tests
New
  • Added show-bump subcommand. 0bbd814

    • Shows possible resulting versions of the bump command
  • Added sample-config feature. 3d0f67d

    • Initial implementation
Updates

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 b69cf5f to 5e29e36 Compare October 8, 2024 13:46
@renovate renovate bot changed the title Update dependency bump-my-version to <0.26.2 Update dependency bump-my-version to <0.27.1 Oct 8, 2024
@renovate renovate bot force-pushed the renovate/bump-my-version-0.x branch from 5e29e36 to 1c914fa Compare October 18, 2024 13:44
@renovate renovate bot changed the title Update dependency bump-my-version to <0.27.1 Update dependency bump-my-version to <0.28.1 Oct 18, 2024
@renovate renovate bot force-pushed the renovate/bump-my-version-0.x branch from 1c914fa to d1a4d64 Compare November 5, 2024 15:16
@renovate renovate bot changed the title Update dependency bump-my-version to <0.28.1 Update dependency bump-my-version to <0.28.2 Nov 5, 2024
@renovate renovate bot force-pushed the renovate/bump-my-version-0.x branch from d1a4d64 to 6248779 Compare November 17, 2024 16:48
@renovate renovate bot force-pushed the renovate/bump-my-version-0.x branch from 6248779 to 3935cd5 Compare December 18, 2024 12:59
@renovate renovate bot changed the title Update dependency bump-my-version to <0.28.2 Update dependency bump-my-version to <0.28.3 Dec 18, 2024
@renovate renovate bot force-pushed the renovate/bump-my-version-0.x branch from 3935cd5 to cd9cb51 Compare December 19, 2024 19:56
@renovate renovate bot changed the title Update dependency bump-my-version to <0.28.3 Update dependency bump-my-version to <0.28.4 Dec 19, 2024
@renovate renovate bot force-pushed the renovate/bump-my-version-0.x branch from cd9cb51 to d85e410 Compare December 21, 2024 21:22
@renovate renovate bot changed the title Update dependency bump-my-version to <0.28.4 Update dependency bump-my-version to <0.29.1 Dec 21, 2024
@d-j-hatton d-j-hatton closed this Jan 10, 2025
@renovate
Copy link
Contributor Author

renovate bot commented Jan 10, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (<0.29.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 January 10, 2025 10:13
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