From 88f30ed500f3a07a5d6858ba8ba9749fbeeb2f5b Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Fri, 24 Jul 2026 15:57:38 +0000 Subject: [PATCH] Remove license specifier from setup.py in favor of license & license_files in setup.cfg Fixes setuptools SetuptoolsDeprecationWarning about deprecated license classifiers. --- setup.cfg | 4 ++++ setup.py | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 4b2d6da..78ead29 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,7 @@ +[metadata] +license = GPLv2 +license_files = LICENSE + [flake8] max-line-length = 102 extend-ignore = E203 diff --git a/setup.py b/setup.py index 8bc9db4..2aab480 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,6 @@ def get_long_description(): author="Kiwi TCMS", author_email="info@kiwitcms.org", url="https://github.com/kiwitcms/python-social-auth-kerberos/", - license="GPLv2", keywords="social auth, kerberos", install_requires=["social-auth-core", "gssapi"], packages=["social_auth_kerberos"], @@ -24,7 +23,6 @@ def get_long_description(): "Topic :: Internet", "Environment :: Web Environment", "Intended Audience :: Developers", - "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.12", ],