Skip to content

Commit c48c428

Browse files
committed
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.
1 parent a494a1b commit c48c428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def read(fname):
1515
author_email="[email protected]",
1616
maintainer="David Zaslavsky",
1717
maintainer_email="[email protected]",
18-
license="MIT License",
18+
license_files=["LICENSE"],
19+
license_expression="MIT",
1920
description="pytest plugin to test server connections locally.",
2021
long_description=read("README.rst"),
2122
url="https://github.com/pytest-dev/pytest-localserver",
@@ -37,7 +38,6 @@ def read(fname):
3738
"Operating System :: OS Independent",
3839
"Development Status :: 4 - Beta",
3940
"Intended Audience :: Developers",
40-
"License :: OSI Approved :: MIT License",
4141
"Programming Language :: Python :: 3",
4242
"Programming Language :: Python :: 3 :: Only",
4343
"Programming Language :: Python :: 3.7",

0 commit comments

Comments
 (0)