Skip to content

docs: state the Python version requirements in the README - #1634

Open
volt69506-eng wants to merge 2 commits into
google:mainfrom
volt69506-eng:docs/python-requirements
Open

volt69506-eng wants to merge 2 commits into
google:mainfrom
volt69506-eng:docs/python-requirements

Conversation

@volt69506-eng

Copy link
Copy Markdown

What

The README explains how to install Magika but never says which Python versions it supports. A reader currently has to open python/pyproject.toml or the CI workflow to find out — which is exactly the question in #1438.

The change

Add a Requirements section before Installation, with a Table of Contents entry:

  • Python: 3.10+ is the supported range. 3.8 and 3.9 are still accepted by the build (requires-python = ">=3.8") but are only exercised in the separate legacy CI job; the main matrix tests 3.10–3.14.
  • CLI: no Python requirement — it ships as a prebuilt Rust binary.
  • JavaScript: deferred to the npm page rather than guessing at Node versions.

Why these numbers

Every claim is checkable in-tree, and I verified each one:

Claim Source
Build accepts 3.8+ python/pyproject.toml:9 — requires-python = ">=3.8"
Main CI matrix is 3.10–3.14 .github/workflows/python-build-test-and-release-package.yml:232
3.8–3.9 are a legacy job same file, line 414

I did not state a Node version range because I could not verify it from the repository; pointing at the npm page is more honest than guessing.

Test plan

  • grep confirms each cited line says what the README claims.
  • Table of Contents anchor #requirements matches the new heading.
  • Rendered the README locally — not done; the diff is plain Markdown with no new syntax beyond a heading, a list and a link.

Closes #1438.

🤖 Generated with Claude Code

@google-cla

google-cla Bot commented Nov 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@volt69506-eng
volt69506-eng force-pushed the docs/python-requirements branch from 3a40771 to 0a6cf91 Compare November 24, 2026 00:04
@volt69506-eng

Copy link
Copy Markdown
Author

Rebased onto current main (9f2f528); the Requirements section and its table-of-contents entry now apply to the rewritten Getting Started layout. No content change beyond the rebase.

The README documented how to install Magika but never which Python
versions it supports. A reader had to open python/pyproject.toml or the
CI workflow to find out (see google#1438).

Add a Requirements section before Installation, with the supported matrix
sourced from the repo itself:

- Python 3.10+ is the supported range; 3.8 and 3.9 are still accepted by
  the build (requires-python = ">=3.8") but are only exercised in the
  legacy CI job, while the main matrix tests 3.10-3.14.
- The Rust CLI has no Python requirement.
- The npm package's Node versions are deferred to its npm page.

Every claim is checkable in-tree: python/pyproject.toml line 9, and the
CI matrices at .github/workflows/python-build-test-and-release-package.yml
lines 232 and 414.

Closes google#1438.
The cla/google check ran 73 seconds after the commit and before the CLA was
signed, so it reported a missing signature. No code change.
@volt69506-eng
volt69506-eng force-pushed the docs/python-requirements branch from 0a6cf91 to b0226ad Compare November 27, 2026 18:11

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

where is sys.requirements?

1 participant