openslide-bin icon indicating copy to clipboard operation
openslide-bin copied to clipboard

Add PEP 639 license info to Python metadata

Open bgilbert opened this issue 8 months ago • 2 comments

Add SPDX license expression and license file paths to Python metadata per PEP 639. Include only the enabled projects in the SPDX expression for wheels, and all projects in the expression for the sdist. Add the licenses directory to the sdist, add the top-level COPYING.LESSER to the wheels (it governs __init__.py, so this is a bugfix), reparent the licenses directory within the wheel dist-info to match PEP 639, and bump the core metadata version to 2.4. Drop the legacy license field and deprecated license Trove classifier.

This should be a backward-compatible change, since the code installing a wheel doesn't need to understand the license fields and it's conventional to accept wheel metadata with an unrecognized minor version.

bgilbert avatar Apr 27 '25 08:04 bgilbert

DCO signed off :heavy_check_mark:

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.

openslide-bot avatar Apr 27 '25 08:04 openslide-bot

The sdist's SPDX expression is:

LGPL-2.1-only AND blessing AND BSD-1-Clause AND BSD-2-Clause AND BSD-3-Clause AND (BSD-3-Clause OR GPL-2.0-only) AND BSD-3-Clause WITH PCRE2-exception AND BSD-4.3TAHOE AND IJG AND LGPL-2.0-or-later AND (LGPL-2.1-only OR MPL-1.1) AND LGPL-2.1-or-later AND libpng-2.0 AND libtiff AND MIT AND Zlib

bgilbert avatar Apr 27 '25 08:04 bgilbert