[Git][reproducible-builds/reprotest][master] Set the diffoscope "optional dependency" the Python way

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Fri Jul 16 14:01:48 UTC 2021



Mattia Rizzolo pushed to branch master at Reproducible Builds / reprotest


Commits:
8dc57d4f by Mattia Rizzolo at 2021-07-16T16:01:13+02:00
Set the diffoscope "optional dependency" the Python way

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


3 changed files:

- debian/control
- debian/rules
- setup.py


Changes:

=====================================
debian/control
=====================================
@@ -42,7 +42,7 @@ Depends: ${python3:Depends},
  python3-distro,
  ${misc:Depends}
 Recommends:
- diffoscope (>= 112~),
+ ${python3:Recommends},
  disorderfs,
  faketime,
  locales-all,


=====================================
debian/rules
=====================================
@@ -49,3 +49,6 @@ autopkgtest-pytest:
 override_dh_auto_clean:
 	dh_auto_clean
 	$(MAKE) -C doc clean
+
+override_dh_python3:
+	dh_python3 -p reprotest --recommends-section=compare


=====================================
setup.py
=====================================
@@ -23,6 +23,9 @@ setup(name='reprotest',
           'rstr',
           'distro',
           ],
+      extras_require={
+          'compare': ['diffoscope>=112'],
+          },
       classifiers=[
           'Development Status :: 3 - Alpha',
           'Intended Audience :: Developers',



View it on GitLab: https://salsa.debian.org/reproducible-builds/reprotest/-/commit/8dc57d4f56de68280d1fc85a43bc8ddc677c0f9e

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reprotest/-/commit/8dc57d4f56de68280d1fc85a43bc8ddc677c0f9e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20210716/08b0d505/attachment.htm>


More information about the rb-commits mailing list