Changelog¶
0.28.1 (2024-11-03)¶
Fixes¶
- Fix format arg help text for show command. cf65ec2
Other¶
-
[pre-commit.ci] pre-commit autoupdate. 9fb0347
updates: - github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.1
- Output hooks scripts by default. 0a042aa
- Skip scm tests if the command is not installed. 2e68517
0.28.0 (2024-10-16)¶
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¶
-
Switch from ADD to COPY in Dockerfile. a5fc5c0
This change updates the Dockerfile to use the COPY instruction instead of ADD. COPY is preferred when only copying files because it is more explicit and simpler. - [pre-commit.ci] pre-commit autoupdate. 7c48f98
updates: - github.com/astral-sh/ruff-pre-commit: v0.6.8 → v0.6.9
Updates¶
- Changed dependency manager to uv. cce9e1d
0.27.0 (2024-10-06)¶
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¶
-
[pre-commit.ci] pre-commit autoupdate. 130478d
updates: - github.com/astral-sh/ruff-pre-commit: v0.6.5 → v0.6.7
- Create FUNDING.yml. 2bda200
0.26.1 (2024-09-14)¶
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
andget_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¶
-
[pre-commit.ci] pre-commit autoupdate. d21d6df
updates: - github.com/astral-sh/ruff-pre-commit: v0.6.2 → v0.6.4
-
[pre-commit.ci] pre-commit autoupdate. b6773ac
updates: - github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.2
Updates¶
- Updated pre-commit versions. 6f5d56b
- Update example to better showcase the GHA capabilities. e3ff9a1
- Update README.md. f280371
0.26.0 (2024-08-19)¶
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
, andpost_bump_hooks
fields to configuration models. Updated corresponding test fixtures to verify these new fields. - Add current_tag field to scm_info. 304c599Updated 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)¶
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¶
- Updated documentation. 5aedd64
- Removed old requirements. ec95eef
0.25.3 (2024-08-13)¶
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
toversioning.version_config
. 5b90817Moved
version_part.py
toversioning/version_config.py
and updated all import statements accordingly. Enhanced error handling inVersionConfig
by addingraise_error
flag and relevant exception raising for invalid version strings. Refined tests to reflect these changes. - Fix version visualization and add verbose logging. ad46978Raise 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)¶
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)¶
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¶
-
[pre-commit.ci] pre-commit autoupdate. 58cc73e
updates: - github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6
0.25.0 (2024-08-06)¶
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. 5fb5ef2Replaced 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 newrun_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)¶
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¶
-
[pre-commit.ci] pre-commit autoupdate. 536c7b1
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.2
0.24.2 (2024-07-03)¶
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)¶
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¶
-
[pre-commit.ci] pre-commit autoupdate. 60acc2d
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.9 → v0.4.10
0.24.0 (2024-06-25)¶
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¶
-
[pre-commit.ci] pre-commit autoupdate. 0e3a154
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.8 → v0.4.9
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)¶
Fixes¶
-
Refactor valid_bumps and invalid_bumps to include_bumps and exclude_bumps. 2df57cc
The configuration parameters
valid_bumps
andinvalid_bumps
were renamed toinclude_bumps
andexclude_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
andinvalid_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. 34e4dc1Several 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¶
-
[pre-commit.ci] pre-commit autoupdate. e44f6af
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.8
Updates¶
-
Update documentation for clarification. 2224808
The changes made update the wording in the documentation to clarify the roles of
include_bumps
andexclude_bumps
in the bump-my-version configuration. Additionally, unnecessary repetition was removed and overlapping examples were also corrected. - Update docs/reference/configuration.md. 7c801c0co-authored-by: wkoot 3715211+wkoot@users.noreply.github.com
0.22.0 (2024-06-11)¶
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 ofshow
is added both to the dedicatedshow.md
file and in the function’s docstring.Updates¶
- Renamed version workflow to release. 68f9eee
0.21.1 (2024-05-16)¶
Other¶
-
[pre-commit.ci] auto fixes from pre-commit.com hooks. 1b57c2b
for more information, see https://pre-commit.ci - [pre-commit.ci] pre-commit autoupdate. e813eda
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4
-
[pre-commit.ci] pre-commit autoupdate. 05a0dd6
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.2 → v0.4.3
Updates¶
- Update README.md. cad7096
0.21.0 (2024-05-01)¶
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. 420e3bdUser can prune the files resolved via the
glob
parameter.Fixes #184
Other¶
-
[pre-commit.ci] pre-commit autoupdate. ce02aa7
updates: - github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2
0.20.3 (2024-04-26)¶
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¶
-
[pre-commit.ci] pre-commit autoupdate. e916f87
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.1
0.20.2 (2024-04-23)¶
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¶
-
[pre-commit.ci] pre-commit autoupdate. 9b09da8
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.3.7
0.20.1 (2024-04-13)¶
Fixes¶
- Fix typos discovered by codespell. d5c33a3
- Fixed relative references. 2aa1011
- Refactored the docs. b63a9e7
Other¶
-
[pre-commit.ci] pre-commit autoupdate. f438bc6
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.3.5
-
Pre-commit: Discover typos with codespell. 2509fc7
Related to: * #168 - [pre-commit.ci] pre-commit autoupdate. be5cb79
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.3 → v0.3.4
0.20.0 (2024-03-27)¶
Fixes¶
- Refactored context into its own module. 5a3e05d
New¶
-
Added
always_increment
attribute for parts. 53ee848This 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¶
- Version parts now have a
- Updated the documentation. 607609d
0.19.3 (2024-03-23)¶
Fixes¶
- Fixed packaging of dev releases. 84254e0
-
Fixed platform-dependent encoding. f8b4d65
- Added
encoding="utf-8"
to all writes. - Fixed version.yaml workflow. 10b007c
- Added
Other¶
-
[pre-commit.ci] pre-commit autoupdate. e92000a
updates: - github.com/astral-sh/ruff-pre-commit: v0.3.2 → v0.3.3
-
Bump the github-actions group with 3 updates. a422c58
Bumps the github-actions group with 3 updates: actions/checkout, actions/setup-python and codecov/codecov-action.
Updates
actions/checkout
from 3 to 4 - Release notes - Changelog - CommitsUpdates
actions/setup-python
from 4 to 5 - Release notes - CommitsUpdates
codecov/codecov-action
from 3 to 4 - Release notes - Changelog - Commits
updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
-
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)¶
Fixes¶
-
Fixed bad options not returning an error code. e88f0a9
Fixes #153 - Fix issue on version.yaml. 7d14065
0.19.1 (2024-03-16)¶
Fixes¶
- Fix commas in legacy multiline options. 62dfe8e
New¶
- Added manual version bumping in the GitHub action. c9d67b5
Other¶
-
[pre-commit.ci] pre-commit autoupdate. be1a568
updates: - github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2
0.19.0 (2024-03-12)¶
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)¶
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)¶
Fixes¶
- Fixed docs and cli help. 8ac1087
0.18.1 (2024-02-24)¶
Fixes¶
- Fixed type annotation in config. 2988ede
-
[pre-commit.ci] pre-commit autoupdate. c495d3d
updates: - github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.2.2
Updates¶
- Updated docs and styles. f4f75fa
0.18.0 (2024-02-18)¶
New¶
- Added
--ignore-missing-files
option to bump. fcfaac7
- Added configuration option
ignore_missing_files
. b473a19
Other¶
- Convert docs to MkDocs. f805c33
- Converted documentation to use MkDocs. 1b8c6b3
0.17.4 (2024-02-10)¶
Fixes¶
- Fixed linting errors. 9515afc
-
Fix encoding when reading text. c03476a
Fixes #68
Other¶
-
[pre-commit.ci] pre-commit autoupdate. 491b4aa
updates: - github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0
0.17.3 (2024-01-29)¶
Fixes¶
-
Refactored VersionComponentConfig to VersionComponentSpec. b538308
More consistent with VersionSpec
New¶
- Added mental model documentation. 5cbd250
Other¶
-
[pre-commit.ci] pre-commit autoupdate. a2a3fe6
updates: - github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.14
Updates¶
- Updated more documentation. 779c84c
0.17.2 (2024-01-27)¶
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
0.17.1 (2024-01-25)¶
Fixes¶
- Fixed bad error checking with SCM. 10e5d7d
- Fix missing current version within the context. a5dca4c
0.17.0 (2024-01-22)¶
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
- Shows possible resulting versions of the
Updates¶
- Updated documentation. 4f90348
0.16.2 (2024-01-13)¶
Fixes¶
- Fixed a bad import. 46c9c48
-
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
andset_nested_value
as replacements for dotted-notation.
Other¶
-
[pre-commit.ci] pre-commit autoupdate. ee4d2f3
updates: - github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.1.11
0.16.1 (2024-01-06)¶
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)¶
New¶
- Add support for legacy multiline search options (refs #98). 278eae5
Other¶
-
[pre-commit.ci] pre-commit autoupdate. 2e9a400
updates: - github.com/astral-sh/ruff-pre-commit: v0.1.7 → v0.1.9
0.15.4 (2023-12-29)¶
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
- The new commit/tag decoupling requires the
0.15.3 (2023-12-18)¶
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)¶
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)¶
Fixes¶
- Fixes workflow triggers. 690452e
- Fixes mismatched artifact up/downloading versions. 3f61742
- Fixed PR_NUMBER retrieval. 85a8b48
- Fixes committing and download-artifact. 12ba54f
- Refactored workflows. d2f30a8
Other¶
- Testing PR acquisition. 67ab83d
- Put in temporary debugging steps. 6ac064e
Updates¶
- Changed the triggers to cause runs. 23e6c18
0.15.0 (2023-12-16)¶
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)¶
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. a4c90b2Moved 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)¶
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
, andkey_path
- Also made all attributes required except
Other¶
-
[pre-commit.ci] auto fixes from pre-commit.com hooks. 8188a42
for more information, see https://pre-commit.ci - [pre-commit.ci] pre-commit autoupdate. 4c81ad4
updates: - github.com/astral-sh/ruff-pre-commit: v0.1.3 → v0.1.5
-
[pre-commit.ci] pre-commit autoupdate. 7109d70
updates: - github.com/astral-sh/ruff-pre-commit: v0.1.3 → v0.1.6
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)¶
Fixes¶
- Fixed versioning. 8769671
- Fix dev versioning with PR number. 463082b
-
Fix dev versioning. 1eed99b
- added an echo of the PR_NUMBER
- Fix versioning of development versions. e89599f
- Fixes workflows. 5ebb0d7
- 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
-
[pre-commit.ci] pre-commit autoupdate. e2579d6
updates: - github.com/astral-sh/ruff-pre-commit: v0.0.290 → v0.0.292
-
[pre-commit.ci] pre-commit autoupdate. e21fdd9
updates: - github.com/astral-sh/ruff-pre-commit: v0.0.290 → v0.1.1
-
[pre-commit.ci] pre-commit autoupdate. 7e5d1bc
updates: - github.com/astral-sh/ruff-pre-commit: v0.0.290 → v0.1.3
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)¶
Other¶
-
[pre-commit.ci] pre-commit autoupdate. 4a3d046
updates: - github.com/astral-sh/ruff-pre-commit: v0.0.285 → v0.0.290
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)¶
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)¶
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¶
-
[pre-commit.ci] pre-commit autoupdate. 7c38c40
updates: - github.com/astral-sh/ruff-pre-commit: v0.0.284 → v0.0.285
-
[pre-commit.ci] pre-commit autoupdate. c30bd12
updates: - github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.284
-
[pre-commit.ci] pre-commit autoupdate. 95c89fb
updates: - github.com/astral-sh/ruff-pre-commit: v0.0.281 → v0.0.282
Updates¶
- Removed mentions of Python 3.7. a91f690
0.9.2 (2023-08-07)¶
Fixes¶
-
Fixed modified context when committing. 130bbe0
- Resets the context before committing and tagging
- Fixes #14
0.9.1 (2023-08-03)¶
Other¶
-
[pre-commit.ci] auto fixes from pre-commit.com hooks. 4b457d0
for more information, see https://pre-commit.ci - [pre-commit.ci] pre-commit autoupdate. adb7e4c
updates: - github.com/astral-sh/ruff-pre-commit: v0.0.277 → v0.0.281
Updates¶
-
Remove
pygments_style
from docsrc/conf.py. 32798a9The theme defaults, subjectively, look better.
0.9.0 (2023-08-03)¶
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 forbump
andreplace
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
- Global and individual file configurations available for
0.8.0 (2023-07-13)¶
New¶
- Added documentation for ignore missing version. e0731c3
- Added
--ignore-missing-version
flag tobump
andreplace
. 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
- Defaults to
0.7.1 (2023-07-12)¶
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
- The
Other¶
-
[pre-commit.ci] pre-commit autoupdate. 531738d
updates: - github.com/astral-sh/ruff-pre-commit: v0.0.276 → v0.0.277
-
[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)¶
Fixes¶
- Fixed test coverage. 3fe96f0
- 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
- Declared SourceCodeManager attributes as
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
- Works just like
Other¶
- Check config before tagging. 3a6e3ee
- Format version parts. ee43bdb
-
[pre-commit.ci] auto fixes from pre-commit.com hooks. 5e6f566
for more information, see https://pre-commit.ci - [pre-commit.ci] pre-commit autoupdate. f1acd35
updates: - github.com/charliermarsh/ruff-pre-commit: v0.0.272 → v0.0.275
0.6.0 (2023-06-23)¶
Fixes¶
-
Fixed
--help
andbump
invocations. 9d965e5--help
works for individual sub-commands, but not for the commandbump
now works and fixed tests- Fixed issue regarding TOML types. 8960d24
tomlkit.parse()
returns aTOMLDocument
.unwrap()
converts it into adict
New¶
- Adds
branch_name
to SCM information. 173be1a
- Added documentation for the show command. d537274
-
Adds
--increment
option toshow
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.
- when specified it increments the current version and adds
Updates¶
-
Changes bump-my-version into subcommands. 31ffbcf
- Is backwards-compatible with previous versions
bump-my-version
forwards command tobump-my-version bump
subcommand- Only problem is that Click will not show help automatically, must provide
--help
0.5.1 (2023-06-14)¶
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¶
-
[pre-commit.ci] auto fixes from pre-commit.com hooks. 5476cdf
for more information, see https://pre-commit.ci - [pre-commit.ci] pre-commit autoupdate. 6e500c2
updates: - github.com/charliermarsh/ruff-pre-commit: v0.0.270 → v0.0.272
0.5.0 (2023-06-12)¶
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)¶
Fixes¶
-
Fixes release.yaml. 01870d5
Outputs the notes to a file instead of an environment variable.
Other¶
-
[pre-commit.ci] auto fixes from pre-commit.com hooks. 266002f
for more information, see https://pre-commit.ci - [pre-commit.ci] pre-commit autoupdate. edc444f
updates: - github.com/charliermarsh/ruff-pre-commit: v0.0.261 → v0.0.270
0.4.0 (2023-04-20)¶
Fixes¶
- Fixed pre-commit hook for dependency checking. 3d5c253
- Fixed installing test dependencies. c1034eb
- Fixed dependency spec. 4782745
- Fixed missing python in pypi test. e5ed27d
- Fixed some CI issues. d4b03d7
-
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 test build to CI. 8738f3f
- 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)¶
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¶
- Updated the readme. 1b1d910
- Updated documentation. 6c3b4fe
0.2.0 (2023-04-14)¶
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 LICENSE. 34a9be5
- Added tests for version parsing errors. 71a204b
- Added utf8 test in files. 9cb8f60
- Added more tests for scm. fe794dd
- Added –list function. 88709fd
Other¶
- Removing testing for Python 3.7. 19eaeef
- Moved configuration to pyproject.toml. d339007
- Initial conversion. f5d1cab
- Initial commit. d7dec79
Updates¶
-
Updated workflows. 857835d
- Added better changelog parsing
- Added workflow dispatch inputs for manual runs
- Improved documentation. f3b7a0f
- Renamed tox job to test. a9b6db3
- Updated README and other documentation. e0cebb3
- Improved Mercurial support. 560999d
- Improved logging output. 6ccfa7d
- 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