Skip to content

Commit 5e9a025

Browse files
bump: version 0.1.0.dev15 → 0.1.0.dev16
1 parent 78a7bc0 commit 5e9a025

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "afterpython"
3-
version = "0.1.0.dev15"
3+
version = "0.1.0.dev16"
44
description = "CLI tool to streamline Python package maintenance and generate a dedicated project website"
55
license = "Apache-2.0"
66
authors = [

src/afterpython/cli/commands/bump.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,24 @@ def bump(ctx, release: bool, pre: bool):
9595
result = subprocess.run(["pixi", "install"], check=False)
9696
if result.returncode != 0:
9797
raise Exit(result.returncode)
98+
99+
# Check if pixi.lock was modified
100+
status = subprocess.run(
101+
["git", "diff", "--name-only", "pixi.lock"],
102+
capture_output=True,
103+
text=True,
104+
check=False,
105+
)
106+
if status.stdout.strip():
107+
# Stage and commit pixi.lock
108+
subprocess.run(["git", "add", "pixi.lock"], check=True)
109+
subprocess.run(
110+
[
111+
"git",
112+
"commit",
113+
"-m",
114+
"build: update pixi.lock after version bump",
115+
],
116+
check=True,
117+
)
118+
click.echo("✓ Committed pixi.lock update")

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)