From 0c101714e35c8869129b6fb0e6afd8bf867fa956 Mon Sep 17 00:00:00 2001 From: Jonathan Yoder Date: Tue, 4 Aug 2026 17:58:37 -0400 Subject: [PATCH] docs: credit pkginfo and twine, and delete a false NOTICE claim An attribution audit found three MUST-FIX defects that make this module not redistributable as published. All three verified independently before fixing. 1. distribution/ ports the Python `pkginfo` package (MIT, Copyright (c) 2009 Agendaless Consulting, Inc.) with NO attribution anywhere. The fingerprint is not circumstantial: an idiosyncratic non-functional comment is reproduced character-for-character INCLUDING its missing space -- `HEADER_ATTRS_2_0 = HEADER_ATTRS_1_2 #XXX PEP 426?` becomes `var HeaderAttrs2_0 = HeaderAttrs1_2 //XXX PEP 426?` at distribution/internal/distributions/distribution.go:113. That comment exists in no other project. Around it, all eight header tables carry over element-for-element, and the whitespace-collapsing logic comes with its original comment. `grep -irE "pkginfo|Agendaless"` matched nothing. 2. distribution/ ports pypa/twine (Apache-2.0, Copyright (c) 2013 Donald Stufft and contributors, Copyright (c) 2015 Ian Cordasco), also unattributed -- twine's issue link survives verbatim at distribution.go:346, and its wheel filename pattern is character-identical. Worse, UPSTREAM CREDITED TWINE and the port dropped it: rstudio/python-distribution-parser's README names twine with a source link. Both omissions originated at the earlier hop and were carried forward, which is how attribution debt usually travels. 3. "No source from those projects is incorporated at this time" was FALSE. `git log -S` shows the sentence entered in the bootstrap skeleton commit (2026-07-07) when the NOTICE was 11 lines and no package code existed; tags/ landed the next day, and all thirteen later NOTICE commits appended at EOF without revisiting the top. So it is stale rather than a considered distinction between adapting an algorithm and incorporating source -- and staleness does not rescue it, because uv's material is in the tree: tags/generate.go:159-187 carries uv's per-arch glibc floor table and says so in its own comment, including riscv64 {2,31} and loongarch64 {2,36}, values pypa/packaging does not have. You cannot independently reimplement a number somebody else chose. Deleted rather than softened. The obligation is already discharged correctly four paragraphs down; what remained was a self-contradiction that cost the file authority over the claims that ARE right. Also corrects the licensing of pypa/packaging, cited nine times as Apache-2.0 when it is dual-licensed Apache-2.0 OR two-clause BSD. Stated once before the first citation rather than editing nine sites. This is the change that most improves the module's compliance footing: under the BSD arm the material sublicenses cleanly, whereas Apache-only material offered onward under MIT raises a question about Apache sections 3 and 4. NOT fixed here, because they need a lawyer rather than me: * Whether the MIT arm is sound over version/, which derives from an Apache-2.0-ONLY ancestor (aquasecurity). Plausibly fine given the Posit-owned intermediate fork and substantial rewrite, but that is a legal call. Note this does NOT arise for the pypa/packaging-derived packages once the dual license above is recognized. * Whether rstudio/go-version's Apache-2.0 label is correct: it is an aquasecurity fork and MPL-2.0-derived material entered that lineage. Moot here -- only pkg/part compiles, which is aquasecurity-original and stdlib-only -- but it deserves an issue on that repo. * Whether distribution/.snapshots/'s 48 embedded third-party READMEs are an acceptable test-fixture posture. Inherited from the port and covered by its attribution, but it should be a decision rather than an accident. Refs the attribution audit at ~/Dev/attribution-audit-2026-08-04.md Co-Authored-By: Claude Opus 5 --- NOTICE | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/NOTICE b/NOTICE index 1baf292..cb5afb9 100644 --- a/NOTICE +++ b/NOTICE @@ -4,25 +4,39 @@ Copyright 2026 Posit Software, PBC This product is licensed under the Apache License, Version 2.0, or the MIT license, at your option. See LICENSE-APACHE and LICENSE-MIT. -This product's design is informed by the Astral `uv` project -(https://github.com/astral-sh/uv) and by konstin's Rust implementations of -PEP 440 and PEP 508. No source from those projects is incorporated at this -time; attribution for any incorporated material is added when that material -lands. - The version/ package is derived from rstudio/go-pep440-version, itself a fork of aquasecurity/go-pep440-version (https://github.com/aquasecurity/go-pep440-version), licensed under the Apache License, Version 2.0. The distribution/ package is ported from rstudio/python-distribution-parser (https://github.com/rstudio/python-distribution-parser), Copyright (c) 2024 -Posit Software, PBC, originally MIT-licensed. +Posit Software, PBC, originally MIT-licensed. That project in turn incorporates +material from two upstream projects, credited here because the credit was not +carried through either port: + + - The Python `pkginfo` package, Copyright (c) 2009 Agendaless Consulting, Inc. + and Contributors, licensed under the MIT license. The METADATA header + tables and the header parsing and leading-whitespace handling in + distribution/internal/distributions/ derive from pkginfo's + pkginfo/distribution.py. + - pypa/twine (https://github.com/pypa/twine), Copyright (c) 2013 Donald + Stufft and individual contributors and Copyright (c) 2015 Ian Cordasco, + licensed under the Apache License, Version 2.0. The distribution-name + sanitization, the wheel filename pattern, the package-file metadata + dictionary, and the hash manager in distribution/ derive from twine. + +Several packages below adapt material from pypa/packaging +(https://github.com/pypa/packaging), Copyright (c) Donald Stufft and individual +contributors. That project is dual-licensed: its LICENSE offers the terms of +EITHER the Apache License, Version 2.0, or the two-clause BSD license. Where a +paragraph below cites it as Apache-2.0, read that as shorthand for the dual +offer; material from it is taken under whichever arm applies. The tags/ package adapts platform-compatibility-tag algorithms (manylinux and musllinux glibc/musl floor tables, macOS format lists, tag ordering) from pypa/packaging (https://github.com/pypa/packaging), specifically -packaging/tags.py, packaging/_manylinux.py, and packaging/_musllinux.py, -licensed under the Apache License, Version 2.0; and from Astral's uv +packaging/tags.py, packaging/_manylinux.py, and packaging/_musllinux.py; and +from Astral's uv (https://github.com/astral-sh/uv), specifically the uv-platform-tags crate, dual-licensed under the Apache License, Version 2.0, or the MIT license.