Skip to content

Changelog

0.29.0 (2024-12-19)

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

0.28.3 (2024-12-17)

Compare the full difference.

Fixes

  • 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

New

  • Added release workflow step. d56650a
  • Added write permissions for contents in github action. 85f19df

Other

  • Debugging the release workflow. db2eb9e
  • Bump actions/setup-python in the github-actions group. 3dd6666

    Bumps the github-actions group with 1 update: actions/setup-python.

    Updates actions/setup-python from 5.1.1 to 5.3.0 - Release notes - Commits


    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

0.28.2 (2024-12-14)

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

  • Bump codecov/codecov-action from 4 to 5 in the github-actions group. 4194af8

    Bumps the github-actions group with 1 update: codecov/codecov-action.

    Updates codecov/codecov-action from 4 to 5 - Release notes - Changelog - Commits


    updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions

    signed-off-by: dependabot[bot] support@github.com

Updates

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

0.28.1 (2024-11-03)

Compare the full difference.

Fixes

  • Fix format arg help text for show command. cf65ec2

Other

  • Output hooks scripts by default. 0a042aa
  • Skip scm tests if the command is not installed. 2e68517

0.28.0 (2024-10-16)

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

0.27.0 (2024-10-06)

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

0.26.1 (2024-09-14)

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

0.26.0 (2024-08-19)

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

0.25.4 (2024-08-14)

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

  • Removed old requirements. ec95eef

0.25.3 (2024-08-13)

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.

0.25.2 (2024-08-11)

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.

0.25.1 (2024-08-07)

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

0.25.0 (2024-08-06)

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

0.24.3 (2024-07-17)

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

0.24.2 (2024-07-03)

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

0.24.1 (2024-06-26)

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

0.24.0 (2024-06-25)

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.

0.23.0 (2024-06-14)

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

0.22.0 (2024-06-11)

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

0.21.1 (2024-05-16)

Compare the full difference.

Other

Updates

0.21.0 (2024-05-01)

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

0.20.3 (2024-04-26)

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

0.20.2 (2024-04-23)

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

0.20.1 (2024-04-13)

Compare the full difference.

Fixes

  • Fix typos discovered by codespell. d5c33a3
  • Fixed relative references. 2aa1011

Other

0.20.0 (2024-03-27)

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

0.19.3 (2024-03-23)

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

  • Keep GitHub Actions up to date with GitHub’s Dependabot. 2e55fa1

    • https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
    • https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem

0.19.2 (2024-03-16)

Compare the full difference.

Fixes

  • Fixed bad options not returning an error code. e88f0a9

    Fixes #153 - Fix issue on version.yaml. 7d14065

0.19.1 (2024-03-16)

Compare the full difference.

Fixes

  • Fix commas in legacy multiline options. 62dfe8e

New

  • Added manual version bumping in the GitHub action. c9d67b5

Other

0.19.0 (2024-03-12)

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

0.18.3 (2024-02-25)

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

0.18.2 (2024-02-25)

Compare the full difference.

Fixes

0.18.1 (2024-02-24)

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

0.18.0 (2024-02-18)

Compare the full difference.

New

  • Added --ignore-missing-files option to bump. fcfaac7
  • Added configuration option ignore_missing_files. b473a19

Other

  • Converted documentation to use MkDocs. 1b8c6b3

0.17.4 (2024-02-10)

Compare the full difference.

Fixes

  • Fix encoding when reading text. c03476a

    Fixes #68

Other

0.17.3 (2024-01-29)

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

0.17.2 (2024-01-27)

Compare the full difference.

Fixes

  • 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

0.17.1 (2024-01-25)

Compare the full difference.

Fixes

  • Fixed bad error checking with SCM. 10e5d7d
  • Fix missing current version within the context. a5dca4c

0.17.0 (2024-01-22)

Compare the full difference.

Fixes

  • Fixed Py3.8 type annotation. c15b23b
  • Fixed some output in visualizing. 406f97a
  • Fixed bad type annotation. 8f4bedf
  • 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

0.16.2 (2024-01-13)

Compare the full difference.

Fixes

  • Fixed extra whitespace added when updating pyproject.toml. 839f17f

    • Removed dotted-notation from requirements. There is an issue on how dotted-notation sets values in the TOMLkit data structure.
    • Added get_nested_value and set_nested_value as replacements for dotted-notation.

Other

0.16.1 (2024-01-06)

Compare the full difference.

Fixes

  • Fixed empty string replacement bug. d9965ab

    Only a missing replacement value will trigger one of the fallback options.

    Fixes #117

0.16.0 (2024-01-05)

Compare the full difference.

New

  • Add support for legacy multiline search options (refs #98). 278eae5

Other

0.15.4 (2023-12-29)

Compare the full difference.

Fixes

  • Fix not being able to tag without also committing. 753c990
  • Fixed testing automation. 19215f1

    • The new commit/tag decoupling requires the --no-tag flag

0.15.3 (2023-12-18)

Compare the full difference.

Fixes

  • Fix miscast of current_version. b8ea252

    • When using the legacy configuration format, a single-digit version is parsed as an int

    Fixes #99

0.15.2 (2023-12-18)

Compare the full difference.

Fixes

  • Fixed regression in config update. 2bbbd74

    Fixes #108

New

  • Added a test case for line-start regexes. ef4823c

0.15.1 (2023-12-18)

Compare the full difference.

Fixes

  • Fixes mismatched artifact up/downloading versions. 3f61742
  • Fixed PR_NUMBER retrieval. 85a8b48
  • Fixes committing and download-artifact. 12ba54f

Other

  • Put in temporary debugging steps. 6ac064e

Updates

  • Changed the triggers to cause runs. 23e6c18

0.15.0 (2023-12-16)

Compare the full difference.

Fixes

  • Fixed requirements for github action. d96e07a

Updates

  • Changed default regex CLI value to None. 93191f3

    Fixes #64

    The default value of False was overriding other values.

0.14.0 (2023-12-15)

Compare the full difference.

Fixes

  • Fixed issue when adding files. 84556f8
  • Fixed missing requirement in GH action. 42bab83
  • Fixed regression regarding multiple changes in one file. e7a7629

    Changed the method of marking changes from a dict keyed by the file name to a list of FileChanges.

    FileChanges encapsulate a single change to a file. - Refactored logging to provide indented output. 4e68214

  • Refactored FileConfig to FileChange. 249a999

    This better describes what the class does: describe a file change.

    Also moved get_search_pattern to the class, since it is specific to each instance - Refactored config file management. a4c90b2

    Moved the INI format stuff into files_legacy.py - Fixes generate-requirements.sh to upgrade. 121ef69

New

  • Added caching to the resolved filemap. c96e0bd
  • Added custom GitHub action. 4ce17a9
  • Added indented logger to improve console output. d1d19e3

Updates

  • Changed the management of file changes. 909396d

    File changes are hashable to weed out duplication. - Removed some commented lines. 89686b8

0.13.0 (2023-12-06)

Compare the full difference.

Fixes

  • Fixed import of extract_regex_flags. a980670
  • Fixed logging and regex regression in 3.11. cae12dc
  • Fixed issue with tag name. e218264

    Fixes #74

    current_version and tag_name now do not need to match exactly - Fixed logic in auto bump workflow. 909a53f

  • Fixes https://github.com/callowayproject/bump-my-version/issues/85. 97049e0

    HG returns the tags in the order they were created so we want the last one in the list - Fixed autoversioning. a308a35

New

  • Added key_path to FileConfig. e160b40

    • Also made all attributes required except filename, glob, and key_path

Other

Updates

  • Refactored configuration file updating. e407974

    TOML files are parsed, specific values are updated, and re-written to avoid updating the wrong data.

    It uses a two-way parser, so all formatting and comments are maintained.

    INI-type configuration files use the old way, since that format is deprecated.

0.12.0 (2023-11-04)

Compare the full difference.

Fixes

  • Fix dev versioning with PR number. 463082b
  • Fix dev versioning. 1eed99b

    • added an echo of the PR_NUMBER
    • Fix versioning of development versions. e89599f
  • Fixed bug #65 where glob’d files weren’t used. 357b9dc

New

  • Add -h for help option. fda71b0

    Fixes #67

Other

  • Drop Python3.7 as compatible version. 890edc8

    Since this is no longer tested, it’s safer to start at 3.8. - [pre-commit.ci] auto fixes from pre-commit.com hooks. fbcef03

    for more information, see https://pre-commit.ci - Recommend calling ‘bump-my-version’ instead of ‘bumpversion’. 9fb1a1d

Updates

  • Changed the default regex search to non-regex. 0034716

    Fixes #59

    • Changed the flags to –regex/–no-regex
    • updated tests and docs

0.11.0 (2023-09-26)

Compare the full difference.

Other

Updates

  • Removed bumpversion as a duplicate of the bump-my-version script. a59ced8
  • Updated dependency from Pydantic 1 to 2. 577aa4c

0.10.0 (2023-09-05)

Compare the full difference.

Updates

  • Refactored file resolution, inclusion, and exclusion. 646af54

    • Fixes #61
    • Config now includes resolved_filemap property
    • resolved filemap expands all globs
    • Config now includes files_to_modify property
    • files to modify resolves inclusions and exclutions
    • Improved Config.add_files property

0.9.3 (2023-08-25)

Compare the full difference.

Fixes

  • Fixed file configuration overrides. c1ef3b2

    Fixes #55

    The file config was ignoring falsey values when constructing the dict.

    It now ignores None values. - Fixed documentation regarding regex config. cd71a1a

    • TOML requires the double backslash while INI doesn’t
    • Fixed requirements for docs. 7856ee0

New

  • Added documentation building workflow. 48980d7

Other

Updates

  • Removed mentions of Python 3.7. a91f690

0.9.2 (2023-08-07)

Compare the full difference.

Fixes

  • Fixed modified context when committing. 130bbe0

    • Resets the context before committing and tagging
    • Fixes #14

0.9.1 (2023-08-03)

Compare the full difference.

Other

Updates

  • Remove pygments_style from docsrc/conf.py. 32798a9

    The theme defaults, subjectively, look better.

0.9.0 (2023-08-03)

Compare the full difference.

New

  • Added documentation about regular expressions. 449b70a
  • Added configuration and command-line no_regex option. a295a32

    • Global and individual file configurations available for no_regex
    • Command-line flag --no-regex flag added for bump and replace sub-commands
    • Adds regular expression searching ability. 0210d74
    • Search strings are treated as regular expressions after the initial substitution
    • Added deprecation warning on .cfg files. a0481b7

0.8.0 (2023-07-13)

Compare the full difference.

New

  • Added documentation for ignore missing version. e0731c3
  • Added --ignore-missing-version flag to bump and replace. a5bd008
  • Added ignore-missing-version configuration. 45c85be

    • Defaults to False
    • File configurations can also override this value
    • Added deprecation warnings. 733438b
    • --list option will go bye-bye in 1.0
    • calling bumpversion without a subcomand will leave in 1.0

0.7.1 (2023-07-12)

Compare the full difference.

Fixes

  • Fix search and replace options for replace. 781e8d8

    • The --search and --replace options now completely override any other search and replace logic.

    Fixes #34

Other

  • [pre-commit.ci] pre-commit autoupdate. 61e6747

    updates: - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit

0.7.0 (2023-07-10)

Compare the full difference.

Fixes

  • Fixed wrong pydantic version pinning. d4b125e
  • Fixed typing issue. bfe5306

    • Declared SourceCodeManager attributes as ClassVar[List[str]]
    • _TEST_USABLE_COMMAND, _COMMIT_COMMAND, and _ALL_TAGS_COMMAND affected

New

  • Added tests for CLI replace command. a53cddc
  • Added and re-organized documentation. c62d65e
  • Added replace subcommand. 8722a0f

    • Works just like bump but
      • doesn’t do any version incrementing
      • Will not change the configuration file
      • Will not commit or tag
    • Can use bumpversion show new_version --increment <versionpart> to see what the new version would be
    • Adds short_branch_name to version rendering context. 7f7e50c
    • short_branch_name is the branch name, lower case, containing only a-z and 0-9, and truncated to 20 characters.

    Fixes #28

Other

  • Check config before tagging. 3a6e3ee

0.6.0 (2023-06-23)

Compare the full difference.

Fixes

  • Fixed --help and bump invocations. 9d965e5

    • --help works for individual sub-commands, but not for the command
    • bump now works and fixed tests
    • Fixed issue regarding TOML types. 8960d24
    • tomlkit.parse() returns a TOMLDocument.
    • unwrap() converts it into a dict

New

  • Adds branch_name to SCM information. 173be1a
  • Added documentation for the show command. d537274
  • Adds --increment option to show subcommand. b01fffc

    • when specified it increments the current version and adds new_version to the available output.
    • Added show subcommand. 9bce887
    • supersedes the --list option
    • provides much more capability
    • Can output in YAML, JSON, and default
    • Can specify one or more items to display
    • Can use dotted-notation to pull items from nested data structures.

Updates

  • Changes bump-my-version into subcommands. 31ffbcf

    • Is backwards-compatible with previous versions
    • bump-my-version forwards command to bump-my-version bump subcommand
    • Only problem is that Click will not show help automatically, must provide --help

0.5.1 (2023-06-14)

Compare the full difference.

Fixes

  • Fixes reporting the wrong version missing in a file. efb04e9

    • Fixes issue #20
    • Renders the correct current_version for each file being modified.

Other

0.5.0 (2023-06-12)

Compare the full difference.

Fixes

  • Fixed ruff complaints about subprocess. c429c68
  • Fixed issue with formatting. da7544f

    There is an underlying edge case where the deriving previous environment variables with multiple ways of formatting version numbers will fail.

    New

  • Add test to reproduce issue #14. d78ff46
  • Added documentation for replacing strings in different files. 893ec03

    Fixes #6

Other

  • Made VERSION_PART optional. f236b7d

    • Fixes #16
    • VERSION_PART is detected from the arguments based on the configuration

Updates

  • Updated docs indicated VERSION_PART is optional. 22edeac
  • Updated tests for bad version parts. 23be62d
  • Changed exception type raised when bad version part is detected. 1e3ebc5

    • ValueError -> click.BadArgumentUsage
    • Updated readme. 7780265

    Fixes #7

0.4.1 (2023-06-09)

Compare the full difference.

Fixes

  • Fixes release.yaml. 01870d5

    Outputs the notes to a file instead of an environment variable.

Other

0.4.0 (2023-04-20)

Compare the full difference.

Fixes

  • Fixed pre-commit hook for dependency checking. 3d5c253
  • Fixed installing test dependencies. c1034eb
  • Fixed missing python in pypi test. e5ed27d
  • Fixed vague commit and tagging info. 4fb5158

    • If commit is configured false, it will report that it will not commit
    • If commit is configured false, tagging is disabled and it reports that
    • If tagging is configured false, it will report it is not tagging
    • Fixes test package. 7c12072
    • The build-and-inspect action didn’t save the dist packages

New

  • Added tests for logging branches. f8f0278
  • Added path restrictions on release-hints. e1af658
  • Added doc files to table of contents. 49858c0

Other

  • Completely migrated setuptools to use pyproject.toml. f10f8b2
  • [pre-commit.ci] pre-commit autoupdate. d626f7d

    updates: - https://github.com/python/black → https://github.com/psf/black

Updates

  • Removed pre-commit dependency hook. ac6cdd0
  • Changed the version serialization. c529452

    • can bump “dev” to get a development release
    • Updated formatting documentation. 8006f3e

0.3.0 (2023-04-17)

Compare the full difference.

Fixes

  • Fixed bug in SCMInfo setup. e8fddc9
  • Fixed missing xml coverage report. 696503f
  • Fixed assertion in failing test. 7afe58c
  • Fixes issue when new version equals current version. 64b0de3

    • Now it reports they are the same and exits.
    • Fixes issue of duplicate tags. c025650
    • Now it checks if the tag exists and reports a warning
    • Fixed automation tooling. 19f13b7
    • changed name to bump-my-version in setup.cfg
    • added PAT in release pipeline to (hopefully) allow committing and tagging to master without issue.

New

  • Added codecov to workflow. a5009e0

Other

  • Migrated setuptools metadata to pyproject.toml. 0bd54dc

Updates

0.2.0 (2023-04-14)

Compare the full difference.

Fixes

  • Fixed configuration to allow_dirty in bumpversion. b042e31
  • Fixes issue with generate-changelog and git. 2a977af
  • Fixes the quoting in the bumpversion expressions. 9a55d6d
  • Fixed issue with windows testing. b8abc44

    • different methods for reporting paths was resolved by casting them the pathlib.Paths
    • Fixes windows testing error. 556853b
    • the differences in path specifications seems to be causing problems.
    • Fixed type issue in Python 3.7, 3.8. ddfd3bf
  • Fixed configuration file detection. fbf85c2

    Doesn’t just stop when it finds one, it checks for the existence of the header. - Fixed logging output and output in general. 0aea9dc

New

  • Added additional option to manual runs: verbose. 81eb097
  • Added new workflows. a9cac5b

    • Added bumpversion.yaml to increase the version when a PR is closed
    • Added release.yaml to create a github release and upload things to PyPI
  • Added PYTHONUTF8 mode. 91a73e2

    • see https://docs.python.org/3/using/windows.html#utf-8-mode
  • Added explicit environment variable declarations. 80fe7ef
  • Added a github CI workflow. 2b3b358
  • Added files for coverage to ignore. cfbba08

    • main.py
    • aliases.py
  • Added tests for version parsing errors. 71a204b
  • Added utf8 test in files. 9cb8f60
  • Added more tests for scm. fe794dd

Other

  • Removing testing for Python 3.7. 19eaeef
  • Moved configuration to pyproject.toml. d339007

Updates

  • Updated workflows. 857835d

    • Added better changelog parsing
    • Added workflow dispatch inputs for manual runs
    • Improved documentation. f3b7a0f
  • Updated README and other documentation. e0cebb3
  • Improved Mercurial support. 560999d
  • Changed errors to subclass UsageError. a447651
  • Changed BaseVCS to SourceCodeManager. 11c5609

    Just for consistency. - Modified the group command back to a single command. 6d4179b

    Will eventually change to a group command, but later.

0.1.0 (2023-03-24)

  • Initial creation

Comments