From 93ac157d72133cfbaa77ebc67bac7ac9a05967cd Mon Sep 17 00:00:00 2001 From: "Gedminas, Marius" Date: Thu, 14 May 2026 16:11:24 +0300 Subject: [PATCH 1/2] Use underscore names in setup.cfg Fixes two build-time warnings from setuptools, each repeated twice: /tmp/build-env-7f8vloah/lib/python3.12/site-packages/setuptools/dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'install-script' in 'bdist_rpm' (setup.cfg), please use the underscore name 'install_script' instead. !! ******************************************************************************** Usage of dash-separated 'install-script' will not be supported in future versions. Please use the underscore name 'install_script' instead. Available configuration options are listed in: https://setuptools.pypa.io/en/latest/userguide/declarative_config.html This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://github.com/pypa/setuptools/discussions/5011 for details. ******************************************************************************** !! opt = self._enforce_underscore(opt, section) /tmp/build-env-7f8vloah/lib/python3.12/site-packages/setuptools/dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'post-install' in 'bdist_rpm' (setup.cfg), please use the underscore name 'post_install' instead. !! ******************************************************************************** Usage of dash-separated 'post-install' will not be supported in future versions. Please use the underscore name 'post_install' instead. Available configuration options are listed in: https://setuptools.pypa.io/en/latest/userguide/declarative_config.html This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://github.com/pypa/setuptools/discussions/5011 for details. ******************************************************************************** !! opt = self._enforce_underscore(opt, section) --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 48415b86..8797ec89 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ [bdist_rpm] doc_files = README.md AUTHORS COPYING INSTALL.md -install-script = scripts/rpm-install.sh -post-install = scripts/rpm-post-install.sh +install_script = scripts/rpm-install.sh +post_install = scripts/rpm-post-install.sh requires = /usr/bin/python3 python3-django >= 4.2.20 python3-django-taggit From 1425e64b794f11ab424f372d743e2b91bd10b7e5 Mon Sep 17 00:00:00 2001 From: "Gedminas, Marius" Date: Thu, 14 May 2026 16:13:29 +0300 Subject: [PATCH 2/2] Use SPDX license expression in setup.py Fixes a build-time warning from setuptools: /tmp/build-env-7cm02e4g/lib/python3.12/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU General Public License v3 (GPLv3) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a7dbfc68..82074ece 100755 --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ author='Marcus Furlong', author_email='furlongm@gmail.com', description='Django based patch status monitoring tool for linux systems', - license='GPLv3', + license='GPL-3.0-only', keywords='django patch status monitoring linux spacewalk patchman', packages=find_packages(), install_requires=install_requires, @@ -84,6 +84,5 @@ 'Environment :: Web Environment', 'Framework :: Django', 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', - 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', ], )