feat: daedalus publish - guarded PyPI release (v0.12.0)

- new script python/src/publish/publish.py: guards (clean tree,
  HEAD exactly tagged v<version>, version not yet on PyPI,
  build+twine present), then the chained python -m build (the
  sdist must rebuild the wheel, SPEC 9.2.1) and twine check;
  --upload sends exactly this version's sdist+wheel, credentials
  stay with twine (~/.pypirc or prompt, __token__)
- spec python/src/publish/spec.md (sections 1-7) first, then
  tests (13) in python/tests/test_publish.py, then code
  (SPEC 6.12)
- fix release-blocking sdist defect (SPEC 9.2.1): empty
  powershell/ and batch/ folders now carry README placeholders
  and MANIFEST.in ships them, so an sdist installs again
- release tooling in requirements.txt; registry entry, README
  row + section, CHANGELOG 0.12.0, version pins

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
nvaldez
2026-11-19 10:27:57 +01:00
parent 41c8b99bd6
commit 7ebce2109e
14 changed files with 634 additions and 3 deletions
+25
View File
@@ -10,6 +10,31 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
- Nothing yet.
## [0.12.0] - 2026-11-19
### Added in 0.12.0
- `daedalus publish`: a guarded one-command PyPI release. Checks the
working tree is clean, HEAD exactly tagged `v<version>`, the version
not yet on PyPI (immutable once published), and `build` + `twine`
present in the running interpreter — then runs the **chained**
`python -m build` (the sdist must rebuild the wheel) and
`twine check`. `--upload` hands exactly this version's sdist and
wheel to twine; credentials stay with twine (`~/.pypirc` or the
prompt, `__token__`). Spec `python/src/publish/spec.md` first, then
tests, then code (SPEC 6.12).
- Release tooling (`build`, `twine`) added to `requirements.txt`.
### Fixed in 0.12.0
- **Release-blocking sdist defect:** the sdist could not rebuild its
wheel (`package directory 'powershell' does not exist`) — the empty
`powershell/`/`batch/` folders were declared in packaging but never
shipped, so installing from an sdist of 0.11.0 failed. Empty script
folders now carry a `README.md` placeholder and `MANIFEST.in` ships
them (SPEC item 9.2.1). The chained build in `publish` keeps this
from recurring.
## [0.11.0] - 2026-11-19
### Added in 0.11.0