Package: dh-python Version: 5.20211216 Severity: normal Affects: jenkins-job-builder
I have no idea if this is a bug in dh-python or elsewhere, but it's showing up here. jenkins-job-builder has this requirement.txt: # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. six>=1.9.0 # MIT PyYAML>=3.10.0,<6 # MIT pbr>=1.8 # Apache-2.0 stevedore>=1.17.1,<2; python_version < '3.0' # Apache-2.0 stevedore>=1.17.1; python_version >= '3.0' # Apache-2.0 python-jenkins>=0.4.15 fasteners Jinja2 The < '3.0' line shows up like this in the built package: $ cat debian/python3-jenkins-job-builder/usr/lib/python3/dist-packages/jenkins_job_builder-3.11.0.egg-info/requires.txt Jinja2 PyYAML<6,>=3.10.0 fasteners pbr>=1.8 python-jenkins>=0.4.15 six>=1.9.0 stevedore>=1.17.1 [:(python_version < '3.0')] stevedore<2,>=1.17.1 This in turn leads to this dh_python3 output (with one debugging line "Looking at" added): $ dh_python3 -i -O--buildsystem=pybuild W: dh_python3 fs:134: Paths differ: debian/python3-jenkins-job-builder/usr/lib/python3.10/dist-packages/jenkins_job_builder-3.11.0.egg-info/PKG-INFO and debian/python3-jenkins-job-builder/usr/lib/python3/dist-packages/jenkins_job_builder-3.11.0.egg-info/PKG-INFO Looking at debian/python3-jenkins-job-builder/usr/lib/python3/dist-packages/jenkins_job_builder-3.11.0.egg-info/requires.txt [:(python_version < '3.0')] Traceback (most recent call last): File "/usr/bin/dh_python3", line 280, in <module> main() File "/usr/bin/dh_python3", line 201, in main dependencies.parse(stats, options) File "/usr/share/dh-python/dhpython/depends.py", line 242, in parse deps = parse_pydep(self.impl, fn, bdep=self.bdep, **section_options) File "/usr/share/dh-python/dhpython/pydist.py", line 474, in parse_pydep section = m.group('section') AttributeError: 'NoneType' object has no attribute 'group' Christoph