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
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
32 changes: 20 additions & 12 deletions PROJECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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

Expand Down
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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:

Expand Down
15 changes: 10 additions & 5 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down