You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* some changes required to properly upgrade to 1.0.27 that were missed in the previous PR
* upgrade to 1.0.28 + add Claude skill for making version changes
Bump the project version. The bump type is: $ARGUMENTS (default to "patch" if empty or not one of: patch, minor, major).
2
+
3
+
Follow these steps exactly:
4
+
5
+
1.**Parse bump type**: Use "$ARGUMENTS". If blank or not one of `patch`, `minor`, `major`, default to `patch`.
6
+
7
+
2.**Read current version**: Read `pyproject.toml` and extract the current version from the `version = "X.Y.Z"` line.
8
+
9
+
3.**Compute new version**: Given current version `X.Y.Z`:
10
+
-`patch` → `X.Y.(Z+1)`
11
+
-`minor` → `X.(Y+1).0`
12
+
-`major` → `(X+1).0.0`
13
+
14
+
4.**Update all version files**: Run the following Python command from the project root to invoke the existing hook logic, which updates `pyproject.toml`, `socket_basics/version.py`, and all doc files:
Replace `NEW_VERSION` with the computed version string.
19
+
20
+
5.**Update `socket_basics/__init__.py`**: This file is NOT handled by the hook. Use the Edit tool to replace the old `__version__ = "OLD"` line with `__version__ = "NEW_VERSION"`.
21
+
22
+
6.**Regenerate lock file**: Run `uv lock` to update `uv.lock` with the new version.
23
+
24
+
7.**Verify**: Use grep to confirm no remaining references to the OLD version in these files:
25
+
-`pyproject.toml`
26
+
-`socket_basics/version.py`
27
+
-`socket_basics/__init__.py`
28
+
-`uv.lock`
29
+
-`README.md`
30
+
-`docs/github-action.md`
31
+
-`docs/pre-commit-hook.md`
32
+
33
+
8.**Report**: Summarize what version was bumped (OLD → NEW) and list all files that were modified.
34
+
35
+
Do NOT commit the changes. Just make the edits and report.
0 commit comments