Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumper.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.bumper]
current_version = "2.0.1"
current_version = "2.0.2"
versioning_type = "semver"

[[tool.bumper.files]]
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 6.1.0
rev: 7.0.0
hooks:
- id: isort
name: isort
Expand Down Expand Up @@ -35,6 +35,6 @@ repos:
- id: python-check-blanket-type-ignore
- id: python-use-type-annotations
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.0
rev: v0.14.2
hooks:
- id: ruff-check
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
Versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html) (`<major>`.`<minor>`.`<patch>`)

## [v2.0.2]
### Changed
* #14 Show version bump information in CLI output

## [v2.0.1]
### Changed
* #9 Change expected CalVer format to `<YYYY>.<MM>.<MICRO>`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# bumper
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sco1-bumper/2.0.1?logo=python&logoColor=FFD43B)](https://pypi.org/project/sco1-bumper/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sco1-bumper/2.0.2?logo=python&logoColor=FFD43B)](https://pypi.org/project/sco1-bumper/)
[![PyPI](https://img.shields.io/pypi/v/sco1-bumper?logo=Python&logoColor=FFD43B)](https://pypi.org/project/sco1-bumper/)
[![PyPI - License](https://img.shields.io/pypi/l/sco1-bumper?color=magenta)](https://github.com/sco1/bumper/blob/main/LICENSE)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/sco1/bumper/main.svg)](https://results.pre-commit.ci/latest/github/sco1/bumper/main)
Expand Down
1 change: 1 addition & 0 deletions bumper/bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def bump_ver(
next_version = _build_new_version(current_version, bump_type)
file_operations = _merge_bumpers(files) # Merge so we handle each file all at once

print(f"Bumper bumping: v{current_version} -> v{next_version}")
for target_file, rules in file_operations.items():
old = target_file.read_text()
new = copy.copy(old)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "sco1-bumper"
version = "2.0.1"
version = "2.0.2"
description = "Automatically increment the project's version number."
license = "MIT"
license-files = ["LICENSE"]
Expand Down Expand Up @@ -43,7 +43,7 @@ dev = [
"flake8~=7.1",
"flake8-annotations~=3.1",
"flake8-define-class-attributes~=0.2",
"isort~=6.0",
"isort~=7.0",
"mypy~=1.11",
"pre-commit~=4.0",
"pytest~=8.3",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_bump_semver.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def test_bump_ver_single_replace(dummy_repo: Path) -> None:


TRUTH_SINGLE_DIFF = """\
Bumper bumping: v0.1.0 -> v0.2.0
--- pyproject.toml
+++
@@ -3 +3 @@
Expand Down Expand Up @@ -120,6 +121,7 @@ def test_bump_ver_multi_replace(dummy_repo: Path) -> None:


TRUTH_MULTI_DIFF = """\
Bumper bumping: v0.1.0 -> v0.2.0
--- pyproject.toml
+++
@@ -3 +3 @@
Expand Down
328 changes: 159 additions & 169 deletions uv.lock

Large diffs are not rendered by default.