fix(packaging): declare the Apache 2.0 licence and use absolute README links

Merged
GL
8d ago
+15-14

What

  • pyproject.toml: the licence classifier said MIT License, but LICENSE is 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" with license-files = ["LICENSE"].
  • README.md is the PyPI long description (readme = "README.md"). Its relative links to examples/ and MIGRATION.md#... resolve to nothing on PyPI. They now point at github.com/StackOneHQ/stackone-ai-python/blob/main/..., the same form README line 13 already uses.

How verified

  • uv build: the wheel METADATA now carries License-Expression: Apache-2.0 and no licence classifier.
  • Every rewritten link target exists in the tree (examples/*.py, examples/, MIGRATION.md heading "Tool arguments and headers").
  • uv lock --check clean (the classifier is not in the lock).

Gates (head e66be80)

GateResult
Repo skillsnone in repo
/forge:forgeran on 5718aab: meter 0/0, no change; re-run on e66be80: 0 comment lines, 0 copies
Security scansecurity-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 securityclean on e66be80 (job b2f55e81)
/security-reviewran: secrets, input validation, transport and DoS items clean; the server-side items do not apply to an SDK
/code-reviewmedium 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)
CIgreen on e66be80: 10 pass, 3 skipped
Unresolved review threads0

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.toml said MIT while LICENSE and the README say Apache 2.0; it now declares Apache Software License.
  • README.md is the PyPI long description, so relative links to examples/ and MIGRATION.md resolved to nothing on PyPI; they now point to github.com/StackOneHQ/stackone-ai-python.