Repository navigation
fix(packaging): declare the Apache 2.0 licence and use absolute README links - #255
Merged
Merged
Conversation
…E links The classifier said MIT while LICENSE and the README say Apache 2.0, so PyPI showed the wrong licence. The README is the PyPI long description, where relative links to examples/ and MIGRATION.md resolve to nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
The classifier alone left the wheel without a License-Expression, so licence scanners that read the metadata field report it as unknown. hatchling 1.27 is the first release that writes it. The last same-page README anchor becomes an absolute link, since PyPI does not render heading ids. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.examples/*.py,examples/,MIGRATION.mdheading "Tool arguments and headers").uv lock --checkclean (the classifier is not in the lock).Gates (head e66be80)
license = "Apache-2.0",license-files,hatchling>=1.27; the built wheel METADATA hasLicense-Expression: Apache-2.0), the last same-page anchor is absolute, and changed lines carry no dashes. Declined 3: links tomain(answered on the Aikido thread),[project.urls](added in #262), reference-style links (style only)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.
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.Written for commit 5718aab. Summary will update on new commits.