Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions PROJECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,10 @@ immutability is enabled for future GitHub releases. Prepare a draft with all
assets and checksums before publishing it, since published assets and the
associated tag become immutable. Corrections require a new version. See
[the release protection guide](docs/releases.md). Separate TestPyPI and PyPI
Python-package workflows are present but await account configuration and a
hosted publication check. Windows binary and GitHub Release automation remain
planned work.
Python-package workflows are present. The user confirmed a TestPyPI `0.1.0`
upload and installation, as well as the pending PyPI Trusted Publisher setup.
Production PyPI publication, Windows binaries, and GitHub Release automation
remain planned.

## 22. PyPI

Expand Down
17 changes: 11 additions & 6 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,22 +536,27 @@ the scope of this local CLI test.

### 34. TestPyPI

- [ ] Prepare a TestPyPI account and project
- [ ] Upload the first test release
- [ ] Test installation from TestPyPI
- [x] Prepare a TestPyPI account and project
- [x] Upload the first test release
- [x] Test installation from TestPyPI

The user confirmed that version `0.1.0` was published to TestPyPI through the
workflow and installed successfully in a fresh environment; `matnocr --version`
and `matnocr doctor` passed.

### 35. PyPI Trusted Publishing

- [ ] Create the PyPI project
- [ ] Configure GitHub Trusted Publishing
- [x] Configure GitHub Trusted Publishing
- [ ] Use OIDC instead of a long-lived API token
- [x] Create a separate release workflow

The separate `testpypi.yml` and `release.yml` workflows build and test on
Windows, then publish the same wheel and sdist through OIDC in a restricted job.
The PyPI workflow also checks that the tag matches the package version and that
the tagged commit is on `main`. Account setup, Trusted Publisher registration,
and a successful hosted publication are still pending.
the tagged commit is on `main`. The user confirmed the `pypi` GitHub environment
and pending Trusted Publisher configuration. The PyPI project and production
publication are still pending.

### 36. Test PyPI installation

Expand Down
12 changes: 7 additions & 5 deletions docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ The repository has separate Python-package workflows:
`pyproject.toml` and that the tagged commit is on `main`.

Both workflows run checks and build the wheel and sdist on Windows before a
separate job publishes them through OIDC. They require matching pending Trusted
Publishers on TestPyPI and PyPI; neither has been used for a hosted upload yet.
The `pypi` environment can require a reviewer before publication. These
workflows publish Python packages only. Windows binary builds and the complete
GitHub Release pipeline remain planned work in `TODO.md`.
separate job publishes them through OIDC. The user confirmed a successful
TestPyPI upload and fresh-environment installation of version `0.1.0`. The user
also confirmed configuration of the `pypi` GitHub environment and pending PyPI
Trusted Publisher. The PyPI project will be created on first publication. The
`pypi` environment can require a reviewer before publication. These workflows
publish Python packages only. Windows binary builds and the complete GitHub
Release pipeline remain planned work in `TODO.md`.

## Publishing Order for a Complete Release

Expand Down