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>
This commit is contained in:
1 parent
0785e444d8
commit
d2799bd05f
2 files changed
+25
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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}
|
||||
)
|
||||
Reference in new issue
Block a user