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
This project uses [bumpver](https://github.com/mbarkhau/bumpver) for version management. The version is defined in a single place — `src/bitssh/_version.py` — and everything else reads from it:
232
+
233
+
| File | What it does |
234
+
|---|---|
235
+
|`src/bitssh/_version.py`| Single source of truth: `__version__ = "3.7.0"`|
236
+
|`pyproject.toml` → `[tool.setuptools.dynamic]`| Reads version from `_version.py` at build time |
237
+
|`pyproject.toml` → `[tool.bumpver]`| Tracks the current version for bumpver CLI |
238
+
|`src/bitssh/__init__.py`| Imports `__version__` from `_version.py`, overrides with `importlib.metadata` at runtime |
239
+
240
+
To bump the version, use one of these make commands:
241
+
242
+
```bash
243
+
make bumpver-patch # 3.7.0 → 3.7.1
244
+
make bumpver-minor # 3.7.0 → 3.8.0
245
+
make bumpver-major # 3.7.0 → 4.0.0
246
+
```
247
+
248
+
Each command will:
249
+
250
+
1. Update `__version__` in `src/bitssh/_version.py`
251
+
2. Update `current_version` in `pyproject.toml``[tool.bumpver]`
252
+
3. Create a git commit with the message `"Bump version {old} -> {new}"`
253
+
4. Create a git tag (e.g. `v3.7.1`)
254
+
255
+
> **Note:** bumpver does **not** push to remote by default (`push = false`). You need to `git push && git push --tags` manually when ready.
0 commit comments