From 43049b6e5dc5d567472247ff665c53936c5e331c Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Fri, 25 Apr 2025 23:44:20 -0500 Subject: [PATCH] pyproject: switch to PEP 639 license metadata Conform with PEP 639 by adding links to our license files, using a SPDX license expression to declare our licenses, and dropping the deprecated Trove license classifier. Without this change, setuptools shows a large deprecation warning saying that support for the old project.license syntax will be removed on 2026-Feb-18. However, the new syntax requires setuptools >= 77, so this change breaks compatibility with setuptools 61-76. Users installing from source will be unaffected because the build frontend automatically updates setuptools if required, but Linux distro packaging disallows such updates, so this change will break package builds for many still-supported distro releases. To build with setuptools 61 through 76, distros will need to patch out the project.license field and reduce the build-system.requires dependency. Signed-off-by: Benjamin Gilbert --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fe649f6..a76799d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,14 +5,14 @@ maintainers = [ ] description = "Python interface to OpenSlide" readme = "README.md" -license = {text = "GNU Lesser General Public License, version 2.1"} +license = "LGPL-2.1-only AND BSD-3-Clause AND MIT AND LicenseRef-Public-Domain" +license-files = ["COPYING.LESSER", "**/LICENSE.*"] keywords = ["OpenSlide", "whole-slide image", "virtual slide", "library"] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Healthcare Industry", "Intended Audience :: Science/Research", - "License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", @@ -87,5 +87,5 @@ pythonpath = "tests" ignore_messages = "(Hyperlink target \".*\" is not referenced\\.$)" [build-system] -requires = ["setuptools >= 61.0.0"] +requires = ["setuptools >= 77.0.0"] build-backend = "setuptools.build_meta" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy