Repository navigation
chore(license): the license file is named LICENSE, and a test holds the package manifest to files that exist - #94
Merged
Conversation
…he package manifest to files that exist LICENSE.txt at the project root is renamed LICENSE, the name the other repositories of the Mercury family use. pyproject.toml names it in license-files and in the source distribution's list, and the README links to it. The rename and those edits are the maintainer's. The build does not fail when the manifest names a file that does not exist: built with the file renamed and the manifest unchanged, both distributions came out without the license text and without a License-File line in their metadata. CI does not build the package, so tests/test_packaging.py now fails in that case: every license-files pattern matches a file, and every entry of the source distribution's list exists. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
acn-ericlaw
added a commit
that referenced
this pull request
Dec 1, 2026
…name does without the manifest, and the test that holds the manifest to files that exist; the stack fact gains the file's name The session log of the rename: with the file renamed and the manifest unchanged, the build ended without an error and both distributions came out without the license text; tests/test_packaging.py now fails in that case. The fact that names the build backend records the file's name and that behaviour. The earlier log of the day follows the rename in its title and says when the file was renamed. Footers refreshed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.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
LICENSE.txtat the project root is renamedLICENSE, the name the other four repositories of the Mercury family use. The rename is the maintainer's.pyproject.tomlnames the file inlicense-filesand in the source distribution's list, and the README's License section links to it. Those edits are the maintainer's too.tests/test_packaging.py, two tests: everylicense-filespattern matches a file, and every entry of the source distribution's list exists.Why
The rename is for consistency across the family.
The test is there because of what the rename does without the manifest. The build does not fail when the manifest names a file that does not exist. Built from the tree with the file renamed and
pyproject.tomlunchanged, both distributions came out without the license text and without aLicense-Fileline in their metadata, with exit code 0. CI does not build the package, so nothing would have reported it before a release.How it was checked
Three builds with
uv build --offline, from the local cache, nothing downloaded:mainLICENSE.txtdist-info/licenses/LICENSE.txtLicense-File: LICENSE.txtLicense-FilelineLICENSEdist-info/licenses/LICENSELicense-File: LICENSELICENSE.txt, and pass on this branch.ruff check .: clean.pytest -q: 3,016 passed, 76 skipped.basedpyright, which is not installed in this checkout. CI runs it.memory/namesLICENSE.txt, here or in the other four repositories.v4.12.30.Memory is not part of this pull request.
Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com
🤖 Generated with Claude Code