Your message dated Thu, 16 Dec 2021 17:04:49 +0000
with message-id <[email protected]>
and subject line Bug#1001799: fixed in dh-python 5.20211216
has caused the Debian Bug report #1001799,
regarding dh-python: python_version marker parsed incorrectly, adds a 
dependency that should be skipped
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1001799: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001799
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-python
Version: 5.20211214
Severity: serious
Justification: causes FTBFS in reverse deps

Hi,

With the following in setup.py's install_requires:

"pathlib2;python_version<'3.0'",

dh-python does not skip the line, but tries to find the python3 module
providing path2lib, which of course does not exist, and thus fails the
build:

I: dh_python3 pydist:304: Cannot find package that provides pathlib2.
Please add package that provides it to Build-Depends or add "pathlib2
python3-pathlib2" line to debian/py3dist-overrides or add proper
dependency to Depends by hand and ignore this info.
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 496, in
parse_pydep
    for part in dependency.split(','))
AttributeError: 'NoneType' object has no attribute 'split'
make: *** [debian/rules:8: binary] Error 1

This does not happen on previous versions of dh-python, so I imagine it
could be a regression from:

https://salsa.debian.org/python-team/tools/dh-python/-/commit/832f01c9c7da22a1d00887d8ce0e6be9893bdf3e

Found while rebuilding:

https://salsa.debian.org/python-team/packages/microsoft-authentication-extensions-for-python/-/jobs/2284212

As far as I understand the usage of python_version in this format is
legitimate, and the change causes reverse deps to FTBFS, hence the
severity. Feel free to downgrade if that's not the case.

-- 
Kind regards,
Luca Boccassi

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Source: dh-python
Source-Version: 5.20211216
Done: Stefano Rivera <[email protected]>

We believe that the bug you reported is fixed in the latest version of
dh-python, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <[email protected]> (supplier of updated dh-python package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 16 Dec 2021 12:39:55 -0400
Source: dh-python
Architecture: source
Version: 5.20211216
Distribution: unstable
Urgency: medium
Maintainer: Piotr Ożarowski <[email protected]>
Changed-By: Stefano Rivera <[email protected]>
Closes: 1001799
Changes:
 dh-python (5.20211216) unstable; urgency=medium
 .
   * Use a consistent distribution name regexp to handle dashed names
     correctly, thanks Nicolas Dandrimont.
   * Un-constrain python_version constraints where the minimum version is < 3.
   * Ignore python_version constraints where the maximum version is < 3.
     (closes: 1001799)
Checksums-Sha1:
 e5bd1928986b4f83d9c844cca4ce02ca85417c6b 1515 dh-python_5.20211216.dsc
 ade62de6d64af05e13df32a63d0669a1dd4d795f 110344 dh-python_5.20211216.tar.xz
 2fd16133f0731e39223d31c83871154a4976b32d 6419 
dh-python_5.20211216_source.buildinfo
Checksums-Sha256:
 a0f295fc4de1cd4bda2785d30cafaea0c9fef53cc1fc887d301c5ea88bc393bf 1515 
dh-python_5.20211216.dsc
 733e9d60e208a0d5bde93bffcc2d36dc05465212f18eb1942640a0f80444db9e 110344 
dh-python_5.20211216.tar.xz
 540a75fd26fc822e9f5e38bc417dac10633e8f78071f9b0278e5bec1a9aeec04 6419 
dh-python_5.20211216_source.buildinfo
Files:
 ffe51f67d0df0c7ae964d9e20419fb8e 1515 python optional dh-python_5.20211216.dsc
 f6f5b4e5ccfd88f33a5396e20fae1816 110344 python optional 
dh-python_5.20211216.tar.xz
 0d460d0cf9ec53cdce845509ec42a990 6419 python optional 
dh-python_5.20211216_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCYbtsTBQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2DQYAQDWWqXee4qK42ZehYOm7FYDLAqQi48v
i33b6DPSLhhlcQEA7zGU15EYCZ7nj597ACEImOF2Buv+h4NKnr6nZq1zQgA=
=I+aY
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to