Files
gentoo-zh/dev-python/daff/files/daff-1.4.2-setuptools.patch
Zakk d2799bd05f 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 <zakk@gentoozh.org>
2026-10-21 13:02:26 +11:00

22 lines
541 B
Diff

--- 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}
)