From c2dd7d1cec355b59eee45562f31b3bec6455477b Mon Sep 17 00:00:00 2001 From: chala2001 Date: Thu, 27 Aug 2026 17:29:27 +0530 Subject: [PATCH] Use SPDX license identifier in package metadata Sets license to "Apache-2.0" instead of "Apache License Version 2.0", and drops the deprecated "License :: OSI Approved :: Apache Software License" classifier, per PEP 639. Does the same in setup-asyncio.py and setup-release.py, which carried the same values as setup.py. --- setup-asyncio.py | 3 +-- setup-release.py | 3 +-- setup.py | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/setup-asyncio.py b/setup-asyncio.py index d5ea07a9fc..c558825582 100644 --- a/setup-asyncio.py +++ b/setup-asyncio.py @@ -39,7 +39,7 @@ description="Kubernetes asynchronous python client", author_email="", author="Kubernetes", - license="Apache License Version 2.0", + license="Apache-2.0", url="https://github.com/kubernetes-client/kubernetes/aio", keywords=["Swagger", "OpenAPI", "Kubernetes"], install_requires=REQUIRES, @@ -64,7 +64,6 @@ "Topic :: Utilities", "Intended Audience :: Developers", "Intended Audience :: Information Technology", - "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", diff --git a/setup-release.py b/setup-release.py index 11dd55d7c4..e54b7825c5 100644 --- a/setup-release.py +++ b/setup-release.py @@ -60,7 +60,7 @@ description="Kubernetes python client", author_email="", author="Kubernetes", - license="Apache License Version 2.0", + license="Apache-2.0", url="https://github.com/kubernetes-client/python", keywords=["Swagger", "OpenAPI", "Kubernetes"], install_requires=REQUIRES+REQUIRES_ASYNCIO, @@ -92,7 +92,6 @@ "Topic :: Utilities", "Intended Audience :: Developers", "Intended Audience :: Information Technology", - "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", diff --git a/setup.py b/setup.py index 892dfa8ff2..9afac786e3 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ description="Kubernetes python client", author_email="", author="Kubernetes", - license="Apache License Version 2.0", + license="Apache-2.0", url="https://github.com/kubernetes-client/python", keywords=["Swagger", "OpenAPI", "Kubernetes"], install_requires=REQUIRES, @@ -79,7 +79,6 @@ "Topic :: Utilities", "Intended Audience :: Developers", "Intended Audience :: Information Technology", - "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3",