From d2799bd05ffcd6f384133a575effcfb4117158eb Mon Sep 17 00:00:00 2001 From: Zakk Date: Wed, 21 Oct 2026 11:35:43 +1100 Subject: [PATCH] dev-python/daff: fix setuptools warnings setup.py imports build_py from distutils and still lists the deprecated License classifier, so setuptools warns about both and the install leaves a QA notice. Import build_py from setuptools and drop the classifier; LICENSE already states MIT. Signed-off-by: Zakk --- dev-python/daff/daff-1.4.2.ebuild | 4 ++++ .../daff/files/daff-1.4.2-setuptools.patch | 21 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 dev-python/daff/files/daff-1.4.2-setuptools.patch diff --git a/dev-python/daff/daff-1.4.2.ebuild b/dev-python/daff/daff-1.4.2.ebuild index 2ac002b49d..0d23175d10 100644 --- a/dev-python/daff/daff-1.4.2.ebuild +++ b/dev-python/daff/daff-1.4.2.ebuild @@ -17,6 +17,10 @@ KEYWORDS="~amd64 ~arm64 ~riscv ~sparc ~x86" IUSE="test" RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}"/${P}-setuptools.patch +) + BDEPEND=" test? ( $(python_gen_impl_dep sqlite) diff --git a/dev-python/daff/files/daff-1.4.2-setuptools.patch b/dev-python/daff/files/daff-1.4.2-setuptools.patch new file mode 100644 index 0000000000..d795fb7b3b --- /dev/null +++ b/dev-python/daff/files/daff-1.4.2-setuptools.patch @@ -0,0 +1,21 @@ +--- a/setup.py ++++ b/setup.py +@@ -2,7 +2,7 @@ + + import os + from setuptools import setup +-from distutils.command.build_py import build_py ++from setuptools.command.build_py import build_py + from subprocess import call + import json + import os.path +@@ -44,8 +44,7 @@ + long_description_content_type='text/markdown', + classifiers=[ + "Development Status :: 3 - Alpha", +- "Topic :: Utilities", +- "License :: OSI Approved :: MIT License" ++ "Topic :: Utilities" + ], + cmdclass={'build_py': my_build_py} + )