Skip to content

Releases: callowayproject/bump-my-version

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.

0.31.0

01 Feb 16:32
Compare
Choose a tag to compare

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

0.30.2

01 Feb 13:30
Compare
Choose a tag to compare

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

0.30.1

30 Jan 12:26
Compare
Choose a tag to compare

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.

0.30.0

26 Jan 15:45
Compare
Choose a tag to compare

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.

0.29.0

19 Dec 19:46
Compare
Choose a tag to compare

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

17 Dec 17:58
Compare
Choose a tag to compare

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

0.28.2

14 Dec 23:30
Compare
Choose a tag to compare

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