fix(packaging): declare the Apache 2.0 licence and use absolute README links
Merged
GL
8d ago+15+15+01234567890123456789-14-14-01234567890123456789
What
pyproject.toml: the licence classifier saidMIT License, butLICENSEis Apache 2.0 and the README says "Apache 2.0 License". PyPI shows the classifier, so the package page advertised the wrong licence. The MIT classifier is removed and the licence is now declared as a PEP 639 expression:license = "Apache-2.0"withlicense-files = ["LICENSE"].README.mdis the PyPI long description (readme = "README.md"). Its relative links toexamples/andMIGRATION.md#...resolve to nothing on PyPI. They now point atgithub.com/StackOneHQ/stackone-ai-python/blob/main/..., the same form README line 13 already uses.
How verified
uv build: the wheel METADATA now carriesLicense-Expression: Apache-2.0and no licence classifier.- Every rewritten link target exists in the tree (
examples/*.py,examples/,MIGRATION.mdheading "Tool arguments and headers"). uv lock --checkclean (the classifier is not in the lock).
Gates (head e66be80)
| Gate | Result |
|---|---|
| Repo skills | none in repo |
| /forge:forge | ran on 5718aab: meter 0/0, no change; re-run on e66be80: 0 comment lines, 0 copies |
| Security scan | security-reviewer agent: no finding at confidence 70 or above. Aikido: 31 open issues on main (lockfile CVEs, workflow SAST, one old test-fixture secret), none on lines this PR changes |
| Codex security | clean on e66be80 (job b2f55e81) |
| /security-review | ran: secrets, input validation, transport and DoS items clean; the server-side items do not apply to an SDK |
| /code-review | medium on 5718aab, 6 candidates. Fixed 3: the licence is now a PEP 639 expression (license = "Apache-2.0", license-files, hatchling>=1.27; the built wheel METADATA has License-Expression: Apache-2.0), the last same-page anchor is absolute, and changed lines carry no dashes. Declined 3: links to main (answered on the Aikido thread), [project.urls] (added in #262), reference-style links (style only) |
| CI | green on e66be80: 10 pass, 3 skipped |
| Unresolved review threads | 0 |
Requested by guillaume@stackone.com in Slack (repo audit thread).
š¤ Generated with Claude Code
Summary by cubic
Fixes PyPI metadata so the package page shows the correct licence and working links.
- The licence classifier in
pyproject.tomlsaid MIT whileLICENSEand the README say Apache 2.0; it now declaresApache Software License. README.mdis the PyPI long description, so relative links toexamples/andMIGRATION.mdresolved to nothing on PyPI; they now point togithub.com/StackOneHQ/stackone-ai-python.