From e85e9c7a5af30495df2d089f75c3efcdf2504298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Wed, 27 Aug 2025 08:32:58 +0200 Subject: [PATCH] BLD: PEP 639 compliance (declare license-files) --- MANIFEST.in | 2 +- pyproject.toml | 2 +- setup.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 91e050294..e97293840 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ -include CHANGES README LICENSE Makefile pyproject.toml setup.py +include CHANGES README Makefile pyproject.toml setup.py recursive-include lib/yaml *.py recursive-include lib/_yaml *.py recursive-include packaging * diff --git a/pyproject.toml b/pyproject.toml index d8e5b9695..eda44f390 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools", # FIXME: declare min/max setuptools versions? + "setuptools>=77.0.0", "wheel", "Cython; python_version < '3.13'", "Cython>=3.0; python_version >= '3.13'" diff --git a/setup.py b/setup.py index 8040320fe..192def448 100644 --- a/setup.py +++ b/setup.py @@ -17,13 +17,13 @@ AUTHOR = "Kirill Simonov" AUTHOR_EMAIL = 'xi@resolvent.net' LICENSE = "MIT" +LICENSE_FILES = ["LICENSE"] PLATFORMS = "Any" URL = "https://pyyaml.org/" DOWNLOAD_URL = "https://pypi.org/project/PyYAML/" CLASSIFIERS = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Cython", "Programming Language :: Python", @@ -339,6 +339,7 @@ def run(self): author=AUTHOR, author_email=AUTHOR_EMAIL, license=LICENSE, + license_files=LICENSE_FILES, platforms=PLATFORMS, url=URL, download_url=DOWNLOAD_URL,