From c48c428677da2f2cb5a89bd045b680b193c80685 Mon Sep 17 00:00:00 2001 From: David Zaslavsky Date: Wed, 29 Oct 2025 02:14:50 -0700 Subject: [PATCH] Switch to PEP-639 compliant expression of license metadata PEP 639, and core metadata version 2.4, introduced new ways of representing a package's license, and deprecated the old License field and license classifiers. The changes I'm making to the setuptools config in this commit cause wheels to be generated with the new format of license metadata. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 107de59..f8637ca 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,8 @@ def read(fname): author_email="basti@redtoad.de", maintainer="David Zaslavsky", maintainer_email="diazona@ellipsix.net", - license="MIT License", + license_files=["LICENSE"], + license_expression="MIT", description="pytest plugin to test server connections locally.", long_description=read("README.rst"), url="https://github.com/pytest-dev/pytest-localserver", @@ -37,7 +38,6 @@ def read(fname): "Operating System :: OS Independent", "Development Status :: 4 - Beta", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.7",