Releases: callowayproject/bump-my-version
1.0.1
Fixes
-
Fix type hinting compatibility for 3.8. 9c2bb03
Replaced
list
withList
for type hints to ensure compatibility with earlier Python versions.
1.0.0
0.33.0
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 resultingtool.bumpversion
table
now lacks acurrent_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 fromproject.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 inpyproject.toml
as well. We always update,
even if the true current version was read from
tool.bumpversion.current_version
instead ofproject.version
.The docs have been updated; specifically, the "multiple replacements in
one file" howto and the reference forcurrent_version
.The tests have been adapted: the new
pep621_info
property would
otherwise trip up the old test output, and theNone
default would trip
up the TOML serializer. Additionally, new tests assert that
project.version
(and correspondingly, thepep621_info
property) is
correctly honored or ignored, depending on the other circumstances.
Other
-
[pre-commit.ci] pre-commit autoupdate. 59e8634
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7
Updates
- Updated documentation. 8162dd8
0.32.2
Fixes
-
Fixed coverage issue. b0c46a3
-
Refactor SCMInfo and Config imports. 49995c6
- Fixes #300 incompatibility with Nuitka compiling
Other
-
[pre-commit.ci] pre-commit autoupdate. b786638
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6
0.32.1
Fixes
0.32.0
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 inbumpversion.click_config
to handle configuration file paths or URLs. Includes tests for processing options, resolving paths/URLs, and handling errors inresolve_conf_location
anddownload_url
. -
Added httpx as a dependency. 450154e
Other
-
[pre-commit.ci] pre-commit autoupdate. 17e8301
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.4
-
Bump actions/setup-python in the github-actions group. c0771b0
Bumps the github-actions group with 1 update: actions/setup-python.
Updates
actions/setup-python
from 5.3.0 to 5.4.0
updated-dependencies: - dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actionssigned-off-by: dependabot[bot] [email protected]
Updates
-
Updated other subcommands with the new config_option. 279838a
-
Improve config resolution and add error handling for paths. 43f0435
Refactor
process_value
to handleNone
values and raise aBumpVersionError
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
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
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
Fixes
-
Fix #388 -
python3.8
type hint compatibility. 5744f86This should address the following error when running
bump-my-version
in apython3.8
environment:def is_subpath(parent: Path | str, path: Path | str) -> bool: **typeerror:** unsupported operand type(s) for |: 'type' and 'type'
Other
-
[pre-commit.ci] pre-commit autoupdate. ea3267a
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.3
0.30.1
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.