Unverified Commit 1e109bc0 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

Move the list of optional python packages into setup.py, and have dh_python3...


Move the list of optional python packages into setup.py, and have dh_python3 check the generated requires.txt

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent dc3634e5
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
@@ -46,17 +46,9 @@ override_dh_auto_build: debian/diffoscope.bash-completion

override_dh_python3:
	dh_python3 -p diffoscope \
		--depends=distro \
		--recommends=argcomplete \
		--recommends=binwalk \
		--recommends=defusedxml \
		--recommends=guestfs \
		--recommends=jsondiff \
		--recommends=progressbar \
		--recommends=python-debian \
		--recommends=pyxattr \
		--recommends=rpm-python \
		--recommends=tlsh \
		--depends-section=distro_detection \
		--recommends-section=cmdline \
		--recommends-section=comparators \

override_dh_gencontrol:
	bin/diffoscope --list-debian-substvars >> debian/diffoscope.substvars
+11 −0
Original line number Diff line number Diff line
@@ -54,6 +54,17 @@ setup(
    ],
    extras_require={
        'distro_detection': ['distro'],
        'cmdline': ['argcomplete', 'progressbar'],
        'comparators': [
            'binwalk',
            'defusedxml',
            'guestfs',
            'jsondiff',
            'python-debian',
            'pyxattr',
            'rpm-python',
            'tlsh',
        ],
    },
    classifiers=[
        'Development Status :: 3 - Alpha',