Hi,

Florian Bruhin wrote:
> On Tue, Dec 21, 2021 at 05:15:47PM +0100, Lucas Nussbaum wrote:
> > > I: dh_python3 pydist:313: Cannot find package that provides
> > > dataclasses. Please add package that provides it to
> > > Build-Depends or add "dataclasses python3-dataclasses" line to
> > > debian/py3dist-overrides or add proper dependency to Depends by
> > > hand and ignore this info.

Can reproduce this issue.

> That seems like a false-positive: The dataclasses backport is only
> required for Python 3.6, but Debian sets "Depends: python3 (>= 3.7)"
> already. 
[…]
> That smells like a bug in dh-python.

I tried downgrading dh-python until it no more FTBFS. It doesn't FTBFS
with dh-python 5.20211114 and the first version it FTBFS is 5.20211213.

The changelog entry of 5.20211213 contains these potential causes, at
least from my point of view:

   * Handle dist-info extra sections the same way we do for requirements.txt.
     (closes: 998374)

   * Add new pep517 plugin that uses python3-build + python3-installer to build
     Python modules as wheels and then unpack the wheel. This is the new
     interface used by modern Python packaging tools. (Closes: #984824)

Full entry (in cases something didn't look suspicious to me) at
https://packages.qa.debian.org/d/dh-python/news/20211214T010008Z.html

Florian: Any idea which of these might have broken this?

And is the suggestion to add "dataclasses python3-dataclasses" line to
debian/py3dist-overrides something we should simply do or is this an
issue which we should make the dh-python maintainers aware of? I must
admit, I still don't understand what this is dh-python argues about.
Maybe someone has some more Python insight for a non-pythonista?

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE

Reply via email to