Skip to content

Releases: callowayproject/bump-my-version

1.1.1

22 Mar 16:21
Compare
Choose a tag to compare

Compare the full difference.

Fixes

  • Fix fallback search pattern in files. 51ea69f

    Refactor _contains_change_pattern method by removing unused context parameter.

    Replace version config usage with DEFAULT_CONFIG to provide correct fallback logic.

    Minor test update to align with changes.

  • Fixes lack of rendering in moveable tags. d201dff

1.1.0

22 Mar 13:38
Compare
Choose a tag to compare

Compare the full difference.

Fixes

  • Refactor Mercurial SCM support and improve test coverage. acd94d1

    Revamped the Mercurial SCM implementation with new features including full tag retrieval, commit handling, and clean working directory assertion. Enhanced test suite with new Mercurial-specific tests for functionality and edge cases.

  • Fixed the test_bump_nested_regex function to use utc time. 7d33dff

    Code in the test function used the machine local time instead of UTC
    time. This made the test fail if the user was not in UTC time, as the
    fixture tested against a bumped time using utcnow

    Added a recipe to justfile to run the tests and open the coverage report
    in a default web browser

  • Fix caching in action. d3b9f76

New

  • Added to the setup section in the contribution doc for the devenv.nix shell. f94cc27

  • Added devenv.nix and justfile. 653d917

    Addition of devenv.nix allows developers to easily create hermetic
    environments in order to develop this package. This greatly simplifies
    the setup of the environment, and utilizes uv's tooling to create the
    virtual environment(s). Devenv.nix can also handle git-hooks, but that
    is already handled via the .pre-commit-config.yaml file.

    The justfile includes some helpful starter recipes. Additional recipes
    can be added, such as build and publishing of the package/Docker.

Other

Updates

  • Improved mercurial test coverage. e35eee1

1.0.2

08 Mar 14:39
Compare
Choose a tag to compare

Compare the full difference.

Fixes

  • Fix incorrect evaluation. 3578c87

    The check for valid files to add should be filename, not self.files

  • Refactor and improve test structure for file modifications. 8b52174

    Consolidated and restructured tests for modify_files into classes for better organization and clarity. Fixed an issue where empty file configurations were not properly ignored and enhanced filtering logic in configuration handling.

    Fixes #312

Other

  • Replace list[str] with List[str] for Python 3.8+ compatibility. 6fb977c

    Updated all instances of list[str] with the generic List[str] from the typing module to maintain compatibility with older Python versions (3.8 and earlier). This ensures consistent type annotations across the codebase.

    Fixes #313

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

    updates: - github.com/astral-sh/ruff-pre-commit: v0.9.7 → v0.9.9

1.0.1

05 Mar 00:44
Compare
Choose a tag to compare

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.

1.0.0

02 Mar 19:07
Compare
Choose a tag to compare

Compare the full difference.

Breaking Changes

New

  • Added breaking change parsing. 00c4e7b

0.33.0

02 Mar 14:12
Compare
Choose a tag to compare

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

0.32.2

22 Feb 13:50
Compare
Choose a tag to compare

Compare the full difference.

Fixes

  • Fixed coverage issue. b0c46a3

  • Refactor SCMInfo and Config imports. 49995c6

    • Fixes #300 incompatibility with Nuitka compiling

Other

0.32.1

10 Feb 12:41
Compare
Choose a tag to compare

Compare the full difference.

Fixes

0.32.0

06 Feb 15:31
Compare
Choose a tag to compare

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.

0.31.1

02 Feb 15:08
Compare
Choose a tag to compare

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.