Skip to content

chore(license): the license file is named LICENSE, and a test holds the package manifest to files that exist - #94

Merged
acn-ericlaw merged 1 commit into
mainfrom
chore/license-file-name
Dec 1, 2026
Merged

acn-ericlaw merged 1 commit into
mainfrom
chore/license-file-name

Conversation

@acn-ericlaw

Copy link
Copy Markdown
Collaborator

What

  • LICENSE.txt at the project root is renamed LICENSE, the name the other four repositories of the Mercury family use. The rename is the maintainer's.
  • pyproject.toml names the file in license-files and 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: every license-files pattern matches a file, and every entry of the source distribution's list exists.
  • CHANGELOG: Unreleased, Changed 12.

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.toml unchanged, both distributions came out without the license text and without a License-File line 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:

Tree Source distribution Wheel Metadata
main LICENSE.txt dist-info/licenses/LICENSE.txt License-File: LICENSE.txt
renamed, manifest unchanged no license file no license file no License-File line
this branch LICENSE dist-info/licenses/LICENSE License-File: LICENSE
  • The license in the wheel has the root file's checksum.
  • The two new tests failed on the rename alone, each naming LICENSE.txt, and pass on this branch.
  • ruff check .: clean. pytest -q: 3,016 passed, 76 skipped.
  • Not run locally: basedpyright, which is not installed in this checkout. CI runs it.
  • No other tracked file outside memory/ names LICENSE.txt, here or in the other four repositories.
  • The released sections of the CHANGELOG are identical to tag 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

…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
acn-ericlaw merged commit d1d01ff into main Dec 1, 2026
6 checks passed
@acn-ericlaw
acn-ericlaw deleted the chore/license-file-name branch December 1, 2026 01:47
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>
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.

1 participant