#1151455 python-barcode: FTBFS with dh-python 7.20261019

#1151455#5
Date:
2026-10-20 19:06:42 UTC
From:
To:
Package: src:python-barcode
Version: 0.16.1-2
User: debian-python@lists.debian.org
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: serious

Hi!

While preparing the Python 3.15 migration we realized that some Python
packages were shipping broken metadata directories, which leads to
errors when trying to import these directories with code running on
Python 3.15.

To avoid shipping any additional broken directories, dh-python
7.20261019 now throws an error at build-time.

Unfortunately, python-barcode is one of the affected packages and fails
to build with the latest dh-python [1].

Most of these errors can be fixed by being more strict with the files
considered for installation. I'll try to submit a patch for this ASAP.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/5118895/

#1151455#10
Date:
2026-10-21 18:07:16 UTC
From:
To:
Control: tags -1 patch
Control: severity -1 important

Hi,

One thing that I didn't explain correctly in the previous message is
that this issue in particular happens when building for 2 different
Python versions (in this case, 3.14 and 3.15), so it won't happen if you
build against sid.

Anyway, here is a patch that solves this problem by avoiding the
installation of docs and tests.

Happy hacking,

#1151455#17
Date:
2026-10-21 18:40:51 UTC
From:
To:
Hello,

Bug #1151455 in python-barcode reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/tryton-team/python-barcode/-/commit/8233c2c5329d0fbb6db3db1e3627997e119cceec
Thanks to Maximiliano Curia.
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1151455