From 4f701f7fb96d4ed9a9c486781fae9921bc7030bb Mon Sep 17 00:00:00 2001 From: Hasko7 Date: Thu, 26 Nov 2026 16:18:07 +0300 Subject: [PATCH] docs: record PyPI 0.1.0 release --- CHANGELOG.md | 9 +++++++-- PROJECT.md | 32 ++++++++++++++++++++------------ README.md | 21 ++++++++++++++------- TODO.md | 15 ++++++++++----- docs/releases.md | 14 +++++++------- 5 files changed, 58 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5352b01..34fb381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ # Changelog This file records notable user-facing changes. Entries under `Unreleased` are -development work, not a claim that a public release has been published. +development work after the latest published version. ## Unreleased +No changes yet. + +## 0.1.0 + ### Added - Repository safeguards requiring CI before merging into `main`, protecting @@ -36,4 +40,5 @@ development work, not a claim that a public release has been published. - Suppressed the PDFium foreign-bitmap close warning in the scan fast path after verifying that OCR uses an independent pixel copy. -Public PyPI releases and packaged Windows releases are still planned. +Version 0.1.0 was published to PyPI through GitHub Actions Trusted Publishing. +Packaged Windows releases are still planned. diff --git a/PROJECT.md b/PROJECT.md index a287c72..540bd4b 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -735,11 +735,20 @@ matnocr = "matnocr.cli:app" The console entry point launches `matnocr`; `python -m matnocr` is also available. Local wheel/sdist builds, archive checks, fresh wheel installation, and CLI smoke checks have passed locally on Python 3.13 and on GitHub's -`windows-2025` runner across Python 3.11–3.14. Publishing remains planned work. +`windows-2025` runner across Python 3.11–3.14. Version 0.1.0 is published on +PyPI through GitHub Actions Trusted Publishing. ## 16. Installation for Users -Users can install directly from the public GitHub repository with uv and Git: +Users can install version 0.1.0 from PyPI with uv: + +```powershell +uv tool install --python 3.13 matnocr +matnocr doctor +``` + +Installation directly from the public GitHub repository remains available with +uv and Git: ```powershell uv tool install --python 3.13 "git+https://github.com/Hasko7/matnocr.git" @@ -763,9 +772,10 @@ uv tool install . After changes to the checkout, this kind of tool installation must be updated. Development changes can be tested directly with `uv run matnocr`. -After a future PyPI publication, `uv tool install matnocr`, `pipx install matnocr`, -and `pip install matnocr` are planned. According to the roadmap, PyPI publishing -and public GitHub releases have not been configured yet. +The published PyPI wheel and its current dependencies have been installed in a +fresh Python 3.13 environment with `uv pip`; the complete CLI smoke test passed. +Separate checks of `uv tool`, pipx, and pip installation remain on the roadmap. +Public GitHub releases and packaged Windows binaries are still planned. ## 17. Windows Binary / GitHub Release @@ -953,14 +963,13 @@ 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. 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. +Python-package workflows are present. Version 0.1.0 was published to TestPyPI +and PyPI through GitHub Actions Trusted Publishing. Windows binaries and GitHub +Release automation remain planned. ## 22. PyPI -The project is intended to be published on PyPI later. +Version 0.1.0 is published on PyPI. Example: @@ -1014,8 +1023,7 @@ Executable: matnocr.exe ``` The collision checks are recorded as completed in Phase 0 of `TODO.md`. -Selecting the name does not mean publication on GitHub or PyPI has already -happened. +The name is used by the public GitHub repository and PyPI project. ## 26. Positioning diff --git a/README.md b/README.md index 3aca53e..bdfba24 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ Fast, offline OCR for scanned PDFs on Windows. Built for Arabic books, with support for the OCR languages installed on your system. No cloud service or GPU required. -**Status:** Development preview. Install directly from GitHub today; PyPI -publishing and packaged Windows releases are planned. +**Status:** Version 0.1.0 is available on PyPI. Packaged Windows releases are +planned. ![MatnOCR processing a PDF in Windows Terminal](docs/images/terminal.png) @@ -23,16 +23,23 @@ publishing and packaged Windows releases are planned. Requires Windows with `Windows.Media.Ocr` and an OCR language pack for your text. Python 3.11–3.14 is tested in CI. -Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and -[Git for Windows](https://git-scm.com/downloads/win), then open PowerShell: +Install [uv](https://docs.astral.sh/uv/getting-started/installation/), then +open PowerShell: ```powershell -uv tool install --python 3.13 "git+https://github.com/Hasko7/matnocr.git" +uv tool install --python 3.13 matnocr matnocr doctor ``` -uv downloads Python 3.13 if needed. No GitHub account or SSH setup is required. -If `matnocr` is not found, run `uv tool update-shell` and reopen PowerShell. +uv downloads Python 3.13 if needed. If `matnocr` is not found, run +`uv tool update-shell` and reopen PowerShell. + +To install directly from GitHub instead, install +[Git for Windows](https://git-scm.com/downloads/win) and run: + +```powershell +uv tool install --python 3.13 "git+https://github.com/Hasko7/matnocr.git" +``` Alternatively, clone the repository and install locally: diff --git a/TODO.md b/TODO.md index 8c8eb96..8ed54f6 100644 --- a/TODO.md +++ b/TODO.md @@ -546,17 +546,18 @@ and `matnocr doctor` passed. ### 35. PyPI Trusted Publishing -- [ ] Create the PyPI project +- [x] Create the PyPI project - [x] Configure GitHub Trusted Publishing -- [ ] Use OIDC instead of a long-lived API token +- [x] 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`. The user confirmed the `pypi` GitHub environment -and pending Trusted Publisher configuration. The PyPI project and production -publication are still pending. +the tagged commit is on `main`. The `v0.1.0` GitHub Actions run succeeded and +published a wheel and sdist through OIDC. A fresh Python 3.13 environment +installed `matnocr==0.1.0` from PyPI with current dependencies, and the full +synthetic-PDF CLI smoke test passed, including real Windows OCR. ### 36. Test PyPI installation @@ -576,6 +577,10 @@ pipx install matnocr - [ ] pipx - [ ] pip +A fresh-environment installation with `uv pip install` from the public PyPI +index and a complete CLI smoke test passed on Python 3.13. The three listed +installation methods remain to be checked separately. + ## Phase 8 – GitHub Releases / Windows Distribution ### 37. Evaluate PyInstaller diff --git a/docs/releases.md b/docs/releases.md index f652462..55d45ea 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -31,13 +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. 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`. +separate job publishes them through OIDC. Version `0.1.0` was uploaded to +TestPyPI and PyPI. The PyPI workflow completed successfully from tag `v0.1.0`, +and the published wheel and sdist were confirmed through PyPI's API. A fresh +PyPI installation passed the full synthetic-PDF CLI smoke test on Python 3.13. +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