toolkitsy 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. toolkitsy-0.1.0/.github/workflows/ci.yml +38 -0
  2. toolkitsy-0.1.0/.github/workflows/release-please.yml +19 -0
  3. toolkitsy-0.1.0/.github/workflows/release.yml +78 -0
  4. toolkitsy-0.1.0/.gitignore +222 -0
  5. toolkitsy-0.1.0/.pre-commit-config.yaml +7 -0
  6. toolkitsy-0.1.0/.python-version +1 -0
  7. toolkitsy-0.1.0/.release-please-manifest.json +3 -0
  8. toolkitsy-0.1.0/CHANGELOG.md +35 -0
  9. toolkitsy-0.1.0/LICENSE +21 -0
  10. toolkitsy-0.1.0/PKG-INFO +82 -0
  11. toolkitsy-0.1.0/README.md +59 -0
  12. toolkitsy-0.1.0/VERSIONING.md +37 -0
  13. toolkitsy-0.1.0/docs/superpowers/plans/2026-05-16-dev-environment.md +164 -0
  14. toolkitsy-0.1.0/docs/superpowers/plans/2026-05-16-project-skeleton.md +169 -0
  15. toolkitsy-0.1.0/docs/superpowers/plans/2026-05-16-pypi-release.md +396 -0
  16. toolkitsy-0.1.0/docs/superpowers/plans/2026-05-16-quality-and-ci.md +179 -0
  17. toolkitsy-0.1.0/docs/superpowers/plans/2026-05-16-repo-meta.md +247 -0
  18. toolkitsy-0.1.0/docs/superpowers/plans/2026-05-17-logger.md +1279 -0
  19. toolkitsy-0.1.0/docs/superpowers/specs/2026-05-16-logger-design.md +194 -0
  20. toolkitsy-0.1.0/pyproject.toml +83 -0
  21. toolkitsy-0.1.0/release-please-config.json +23 -0
  22. toolkitsy-0.1.0/src/toolkitsy/__init__.py +3 -0
  23. toolkitsy-0.1.0/src/toolkitsy/_version.py +24 -0
  24. toolkitsy-0.1.0/src/toolkitsy/logger/__init__.py +22 -0
  25. toolkitsy-0.1.0/src/toolkitsy/logger/_correlation_id.py +33 -0
  26. toolkitsy-0.1.0/src/toolkitsy/logger/_formatters.py +91 -0
  27. toolkitsy-0.1.0/src/toolkitsy/logger/_handlers.py +88 -0
  28. toolkitsy-0.1.0/src/toolkitsy/logger/_logger.py +74 -0
  29. toolkitsy-0.1.0/tests/logger/__init__.py +0 -0
  30. toolkitsy-0.1.0/tests/logger/test_acceptance.py +121 -0
  31. toolkitsy-0.1.0/tests/logger/test_correlation_id.py +65 -0
  32. toolkitsy-0.1.0/tests/logger/test_demo_visible_output.py +126 -0
  33. toolkitsy-0.1.0/tests/logger/test_formatters.py +86 -0
  34. toolkitsy-0.1.0/tests/logger/test_handlers.py +116 -0
  35. toolkitsy-0.1.0/tests/logger/test_logger.py +151 -0
  36. toolkitsy-0.1.0/tests/logger/test_no_side_effects.py +0 -0
  37. toolkitsy-0.1.0/tests/test_package.py +11 -0
  38. toolkitsy-0.1.0/uv.lock +206 -0
@@ -0,0 +1,38 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+
9
+ jobs:
10
+ lint-and-test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ python-version: ["3.12", "3.13"]
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
+
20
+ - name: Install uv
21
+ uses: astral-sh/setup-uv@v3
22
+ with:
23
+ enable-cache: true
24
+
25
+ - name: Set up Python ${{ matrix.python-version }}
26
+ run: uv python install ${{ matrix.python-version }}
27
+
28
+ - name: Install dependencies
29
+ run: uv sync --extra dev --python ${{ matrix.python-version }}
30
+
31
+ - name: Ruff lint
32
+ run: uv run --python ${{ matrix.python-version }} ruff check .
33
+
34
+ - name: Ruff format check
35
+ run: uv run --python ${{ matrix.python-version }} ruff format --check .
36
+
37
+ - name: Pytest
38
+ run: uv run --python ${{ matrix.python-version }} pytest
@@ -0,0 +1,19 @@
1
+ name: Release Please
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ permissions:
9
+ contents: write
10
+ pull-requests: write
11
+
12
+ jobs:
13
+ release-please:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: googleapis/release-please-action@v4
17
+ with:
18
+ config-file: release-please-config.json
19
+ manifest-file: .release-please-manifest.json
@@ -0,0 +1,78 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ verify:
10
+ name: Verify lint + tests
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v4
15
+
16
+ - name: Install uv
17
+ uses: astral-sh/setup-uv@v3
18
+ with:
19
+ enable-cache: true
20
+
21
+ - name: Set up Python
22
+ run: uv python install 3.12
23
+
24
+ - name: Install dependencies
25
+ run: uv sync --extra dev
26
+
27
+ - name: Ruff lint
28
+ run: uv run ruff check .
29
+
30
+ - name: Ruff format check
31
+ run: uv run ruff format --check .
32
+
33
+ - name: Pytest
34
+ run: uv run pytest
35
+
36
+ build:
37
+ name: Build distribution
38
+ needs: verify
39
+ runs-on: ubuntu-latest
40
+ steps:
41
+ - name: Checkout
42
+ uses: actions/checkout@v4
43
+
44
+ - name: Install uv
45
+ uses: astral-sh/setup-uv@v3
46
+ with:
47
+ enable-cache: true
48
+
49
+ - name: Set up Python
50
+ run: uv python install 3.12
51
+
52
+ - name: Build sdist and wheel
53
+ run: uv build
54
+
55
+ - name: Upload build artifacts
56
+ uses: actions/upload-artifact@v4
57
+ with:
58
+ name: dist
59
+ path: dist/
60
+
61
+ publish-pypi:
62
+ name: Publish to PyPI
63
+ needs: build
64
+ runs-on: ubuntu-latest
65
+ environment:
66
+ name: pypi
67
+ url: https://pypi.org/project/toolkitsy/
68
+ permissions:
69
+ id-token: write
70
+ steps:
71
+ - name: Download artifacts
72
+ uses: actions/download-artifact@v4
73
+ with:
74
+ name: dist
75
+ path: dist/
76
+
77
+ - name: Publish to PyPI
78
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,222 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+ .idea/
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Generated by hatch-vcs at build/install time
11
+ src/toolkitsy/_version.py
12
+
13
+ # Distribution / packaging
14
+ .Python
15
+ build/
16
+ develop-eggs/
17
+ dist/
18
+ downloads/
19
+ eggs/
20
+ .eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ wheels/
27
+ share/python-wheels/
28
+ *.egg-info/
29
+ .installed.cfg
30
+ *.egg
31
+ MANIFEST
32
+
33
+ # PyInstaller
34
+ # Usually these files are written by a python script from a template
35
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
36
+ *.manifest
37
+ *.spec
38
+
39
+ # Installer logs
40
+ pip-log.txt
41
+ pip-delete-this-directory.txt
42
+
43
+ # Unit test / coverage reports
44
+ htmlcov/
45
+ .tox/
46
+ .nox/
47
+ .coverage
48
+ .coverage.*
49
+ .cache
50
+ nosetests.xml
51
+ coverage.xml
52
+ *.cover
53
+ *.py.cover
54
+ .hypothesis/
55
+ .pytest_cache/
56
+ cover/
57
+
58
+ # Translations
59
+ *.mo
60
+ *.pot
61
+
62
+ # Django stuff:
63
+ *.log
64
+ local_settings.py
65
+ db.sqlite3
66
+ db.sqlite3-journal
67
+
68
+ # Flask stuff:
69
+ instance/
70
+ .webassets-cache
71
+
72
+ # Scrapy stuff:
73
+ .scrapy
74
+
75
+ # Sphinx documentation
76
+ docs/_build/
77
+
78
+ # PyBuilder
79
+ .pybuilder/
80
+ target/
81
+
82
+ # Jupyter Notebook
83
+ .ipynb_checkpoints
84
+
85
+ # IPython
86
+ profile_default/
87
+ ipython_config.py
88
+
89
+ # pyenv
90
+ # For a library or package, you might want to ignore these files since the code is
91
+ # intended to run in multiple environments; otherwise, check them in:
92
+ # .python-version
93
+
94
+ # pipenv
95
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
97
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
98
+ # install all needed dependencies.
99
+ # Pipfile.lock
100
+
101
+ # UV
102
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
103
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
104
+ # commonly ignored for libraries.
105
+ # uv.lock
106
+
107
+ # poetry
108
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
109
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
110
+ # commonly ignored for libraries.
111
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
112
+ # poetry.lock
113
+ # poetry.toml
114
+
115
+ # pdm
116
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
117
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
118
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
119
+ # pdm.lock
120
+ # pdm.toml
121
+ .pdm-python
122
+ .pdm-build/
123
+
124
+ # pixi
125
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
126
+ # pixi.lock
127
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
128
+ # in the .venv directory. It is recommended not to include this directory in version control.
129
+ .pixi
130
+
131
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
132
+ __pypackages__/
133
+
134
+ # Celery stuff
135
+ celerybeat-schedule
136
+ celerybeat.pid
137
+
138
+ # Redis
139
+ *.rdb
140
+ *.aof
141
+ *.pid
142
+
143
+ # RabbitMQ
144
+ mnesia/
145
+ rabbitmq/
146
+ rabbitmq-data/
147
+
148
+ # ActiveMQ
149
+ activemq-data/
150
+
151
+ # SageMath parsed files
152
+ *.sage.py
153
+
154
+ # Environments
155
+ .env
156
+ .envrc
157
+ .venv
158
+ env/
159
+ venv/
160
+ ENV/
161
+ env.bak/
162
+ venv.bak/
163
+
164
+ # Spyder project settings
165
+ .spyderproject
166
+ .spyproject
167
+
168
+ # Rope project settings
169
+ .ropeproject
170
+
171
+ # mkdocs documentation
172
+ /site
173
+
174
+ # mypy
175
+ .mypy_cache/
176
+ .dmypy.json
177
+ dmypy.json
178
+
179
+ # Pyre type checker
180
+ .pyre/
181
+
182
+ # pytype static type analyzer
183
+ .pytype/
184
+
185
+ # Cython debug symbols
186
+ cython_debug/
187
+
188
+ # PyCharm
189
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
190
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
191
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
192
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
193
+ # .idea/
194
+
195
+ # Abstra
196
+ # Abstra is an AI-powered process automation framework.
197
+ # Ignore directories containing user credentials, local state, and settings.
198
+ # Learn more at https://abstra.io/docs
199
+ .abstra/
200
+
201
+ # Visual Studio Code
202
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
203
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
204
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
205
+ # you could uncomment the following to ignore the entire vscode folder
206
+ # .vscode/
207
+ # Temporary file for partial code execution
208
+ tempCodeRunnerFile.py
209
+
210
+ # Ruff stuff:
211
+ .ruff_cache/
212
+
213
+ # PyPI configuration file
214
+ .pypirc
215
+
216
+ # Marimo
217
+ marimo/_static/
218
+ marimo/_lsp/
219
+ __marimo__/
220
+
221
+ # Streamlit
222
+ .streamlit/secrets.toml
@@ -0,0 +1,7 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.6.9
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0"
3
+ }
@@ -0,0 +1,35 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## 0.1.0 (2026-05-17)
9
+
10
+
11
+ ### Added
12
+
13
+ * implement configurable logger with correlation IDs ([7fffd15](https://github.com/shyinlim/toolkitsy/commit/7fffd1552dde67a043601d01f49bd2c3ed02d14f))
14
+ * implement configurable logger with correlation IDs ([4649dfc](https://github.com/shyinlim/toolkitsy/commit/4649dfc2547e8f21ae4a1026208a1a636ec152c7))
15
+ * setup packaging backend, release automation, and CI pipelines ([2806fb3](https://github.com/shyinlim/toolkitsy/commit/2806fb3fd478d930b260055260337c0dd99282a6))
16
+ * setup pre-commit hooks for ruff linting and formatting ([378bac2](https://github.com/shyinlim/toolkitsy/commit/378bac2c4016cc40b866b9e7d593288d3b88ca62))
17
+
18
+
19
+ ### Documentation
20
+
21
+ * clarify library purpose in documentation ([517d7e3](https://github.com/shyinlim/toolkitsy/commit/517d7e3e7fa4e7185e413c9df6128264cb4c0a93))
22
+ * create repository scaffolding and development planning files ([4be1bf0](https://github.com/shyinlim/toolkitsy/commit/4be1bf079201ebb07fd8f567ff87006e2162e30f))
23
+ * scaffold superpowers specs/plans for logger work ([c14e1cd](https://github.com/shyinlim/toolkitsy/commit/c14e1cd1e5534bb89e18ff66d2bdd8d8d850a520))
24
+
25
+ ## [Unreleased]
26
+
27
+ ### Added
28
+ - Project skeleton (`src/` layout, namespace package `toolkitsy`)
29
+ - Build backend: `hatchling` with `hatch-vcs` for git-tag-driven versioning
30
+ - `pyproject.toml` with PEP 621 metadata, dev extras (pytest, pytest-cov, ruff)
31
+ - Smoke tests verifying package importability and PEP 440 version string
32
+ - GitHub Actions CI workflow: ruff lint, ruff format check, pytest on Python 3.12 + 3.13
33
+ - GitHub Actions release workflow: verify → build → TestPyPI → PyPI via OIDC trusted publishing
34
+ - `VERSIONING.md` documenting the tag-driven release procedure
35
+ - `uv.lock` committed for reproducible dev installs
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shyin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.4
2
+ Name: toolkitsy
3
+ Version: 0.1.0
4
+ Summary: A shared Python toolkit library — one package, reused across multiple repos.
5
+ Project-URL: Homepage, https://github.com/shyinlim/toolkitsy
6
+ Project-URL: Repository, https://github.com/shyinlim/toolkitsy
7
+ Project-URL: Issues, https://github.com/shyinlim/toolkitsy/issues
8
+ Author: shyinlim
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Keywords: logger,toolkit,utility
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Requires-Python: >=3.12
18
+ Provides-Extra: dev
19
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
20
+ Requires-Dist: pytest>=8.0; extra == 'dev'
21
+ Requires-Dist: ruff>=0.6; extra == 'dev'
22
+ Description-Content-Type: text/markdown
23
+
24
+ # toolkitsy
25
+
26
+ A shared Python toolkit library — one package, reused across multiple repos.
27
+
28
+ ## Install
29
+
30
+ ```bash
31
+ pip install toolkitsy
32
+ ```
33
+
34
+ Pin to a specific version:
35
+
36
+ ```bash
37
+ pip install toolkitsy==0.1.0
38
+ ```
39
+
40
+ With uv:
41
+
42
+ ```bash
43
+ uv pip install toolkitsy
44
+ ```
45
+
46
+ Install an unreleased commit directly from GitHub (for pre-PyPI testing):
47
+
48
+ ```bash
49
+ pip install "toolkitsy @ git+https://github.com/shyinlim/toolkitsy.git@<tag-or-sha>"
50
+ ```
51
+
52
+ ## Modules
53
+
54
+ | Module | Status | Extras flag |
55
+ |--------------------|----------|-----------------------|
56
+ | `toolkitsy.logger` | planned | (none — stdlib only) |
57
+
58
+ Future modules will be opt-in via extras, e.g. `pip install "toolkitsy[db]"`.
59
+
60
+ ## Version
61
+
62
+ ```python
63
+ import toolkitsy
64
+ print(toolkitsy.__version__)
65
+ ```
66
+
67
+ Versioning policy: see [`VERSIONING.md`](VERSIONING.md).
68
+
69
+ ## Development
70
+
71
+ ```bash
72
+ git clone git@github.com:shyinlim/toolkitsy.git
73
+ cd toolkitsy
74
+ uv venv
75
+ uv pip install -e ".[dev]"
76
+ uv run pytest
77
+ uv run ruff check .
78
+ ```
79
+
80
+ ## License
81
+
82
+ MIT — see [`LICENSE`](LICENSE).
@@ -0,0 +1,59 @@
1
+ # toolkitsy
2
+
3
+ A shared Python toolkit library — one package, reused across multiple repos.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install toolkitsy
9
+ ```
10
+
11
+ Pin to a specific version:
12
+
13
+ ```bash
14
+ pip install toolkitsy==0.1.0
15
+ ```
16
+
17
+ With uv:
18
+
19
+ ```bash
20
+ uv pip install toolkitsy
21
+ ```
22
+
23
+ Install an unreleased commit directly from GitHub (for pre-PyPI testing):
24
+
25
+ ```bash
26
+ pip install "toolkitsy @ git+https://github.com/shyinlim/toolkitsy.git@<tag-or-sha>"
27
+ ```
28
+
29
+ ## Modules
30
+
31
+ | Module | Status | Extras flag |
32
+ |--------------------|----------|-----------------------|
33
+ | `toolkitsy.logger` | planned | (none — stdlib only) |
34
+
35
+ Future modules will be opt-in via extras, e.g. `pip install "toolkitsy[db]"`.
36
+
37
+ ## Version
38
+
39
+ ```python
40
+ import toolkitsy
41
+ print(toolkitsy.__version__)
42
+ ```
43
+
44
+ Versioning policy: see [`VERSIONING.md`](VERSIONING.md).
45
+
46
+ ## Development
47
+
48
+ ```bash
49
+ git clone git@github.com:shyinlim/toolkitsy.git
50
+ cd toolkitsy
51
+ uv venv
52
+ uv pip install -e ".[dev]"
53
+ uv run pytest
54
+ uv run ruff check .
55
+ ```
56
+
57
+ ## License
58
+
59
+ MIT — see [`LICENSE`](LICENSE).
@@ -0,0 +1,37 @@
1
+ # Versioning Policy
2
+
3
+ `toolkitsy` follows [semantic versioning](https://semver.org/): `MAJOR.MINOR.PATCH`.
4
+
5
+ ## Single source of truth: the git tag
6
+
7
+ The version is **derived from git tags** via [`hatch-vcs`](https://github.com/ofek/hatch-vcs). There is no version constant to bump manually.
8
+
9
+ - A tagged commit (e.g. `v0.1.0`) produces version `0.1.0`.
10
+ - An untagged commit after `v0.1.0` produces a dev version, e.g. `0.1.1.dev3+gabc1234`.
11
+ - Before the first tag exists, the fallback version `0.0.1` is used (configured in `pyproject.toml`).
12
+
13
+ `hatch-vcs` writes the resolved version into `src/toolkitsy/_version.py` at build/install time. That file is **generated** and gitignored — never edit or commit it.
14
+
15
+ ## Release procedure
16
+
17
+ ```bash
18
+ git tag -a vX.Y.Z -m "Release X.Y.Z"
19
+ git push && git push --tags
20
+ ```
21
+
22
+ That's it. The CI release workflow (`.github/workflows/release.yml`) picks up the `v*` tag, builds the sdist + wheel with version `X.Y.Z` baked in, and publishes to PyPI.
23
+
24
+ Downstream consumers can pin:
25
+
26
+ ```bash
27
+ pip install "toolkitsy==X.Y.Z"
28
+ # or, pre-PyPI:
29
+ pip install "toolkitsy @ git+https://github.com/shyinlim/toolkitsy.git@vX.Y.Z"
30
+ ```
31
+
32
+ ## Why not manual `_version.py` or date+hash?
33
+
34
+ - **Manual `_version.py`:** Footgun — you can tag `v0.1.0` but forget to bump the file, producing a wheel whose internal version disagrees with the tag.
35
+ - **Date+hash (`YYYY.MM.DD+sha`):** Convenient but unpinnable. PEP 440 ordering surprises consumers (`1.0.0 < 2026.05.16+abc1234`), and pip can't reliably resolve such versions.
36
+
37
+ `hatch-vcs` gives you the convenience of "tag = version" with the discipline of clean semver.