Bug#1028704: distro-info: FTBFS: ModuleNotFoundError: No module named 'tomli'

2023-01-14 Thread Stefano Rivera
Control: reassign -1 pylint
Control: affects -1 src:distro-info

This is the same class of issue as #1027947. As long as Python 3.10 is a
supported release, please provide an explicit dependency on
python3-tomli.

The same thing could apply to any other dependencies that are generated
as "foo | python3 (>> 3.11)".

Thanks,

Stefano

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#1028704: distro-info: FTBFS: ModuleNotFoundError: No module named 'tomli'

2023-01-14 Thread Lucas Nussbaum
Source: distro-info
Version: 1.2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230113 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> ./test-debian-distro-info
> cd perl && ./test.pl
> testAlias
> testAll
> testDevel
> testOldstable
> py3versions: no X-Python3-Version in control file, using supported versions
> cd python && python3.10 setup.py test
> 1..35
> ok 1 - unique: Matching lists
> ok 2 - symmetric_difference: Matching lists
> ok 3 - unique: 1 Unique Item
> ok 4 - unique: 1 Unique Item in the haystack
> ok 5 - symmetric_difference: 1 Unique Item
> ok 6 - Debian all
> ok 7 - Debian devel
> ok 8 - Debian oldstable
> ok 9 - Debian stable
> ok 10 - Debian testing
> ok 11 - Debian valid
> ok 12 - Debian valid
> ok 13 - Debian invalid
> ok 14 - Debian supported
> ok 15 - Debian LTS
> ok 16 - Debian ELTS
> ok 17 - Debian unsupported
> ok 18 - Debian codename, invalid
> ok 19 - Debian codename
> ok 20 - Debian version, invalid
> ok 21 - Debian version
> ok 22 - Ubuntu all
> ok 23 - Ubuntu version
> ok 24 - Ubuntu LTS version
> ok 25 - Ubuntu devel
> ok 26 - Ubuntu LTS
> ok 27 - Ubuntu stable
> ok 28 - Ubuntu valid
> ok 29 - Ubuntu invalid
> ok 30 - Ubuntu is_lts
> ok 31 - Ubuntu !is_lts
> ok 32 - Ubuntu !is_lts
> ok 33 - Ubuntu supported
> ok 34 - Ubuntu ESM
> ok 35 - Ubuntu unsupported
> testStable
> testSupported
> testLTS
> testELTS
> testUnsupported
> testTesting
> testFullname
> running test
> WARNING: Testing via this command is deprecated and will be removed in a 
> future version. Users looking for a generic test entry point independent of 
> test runner are encouraged to use tox.
> running egg_info
> creating distro_info.egg-info
> writing distro_info.egg-info/PKG-INFO
> writing dependency_links to distro_info.egg-info/dependency_links.txt
> writing top-level names to distro_info.egg-info/top_level.txt
> writing manifest file 'distro_info.egg-info/SOURCES.txt'
> reading manifest file 'distro_info.egg-info/SOURCES.txt'
> writing manifest file 'distro_info.egg-info/SOURCES.txt'
> testRelease
> running build_ext
> testSeries
> test_black (distro_info_test.test_black.BlackTestCase)
> Test: Run black code formatter on Python source code. ... Running following 
> command:
> black --check --diff -l 99 debian-distro-info ubuntu-distro-info 
> distro_info_test distro_info.py setup.py
> testCombinedShortform
> testReleaseDate
> testHelp
> testExactlyOne
> testUnrecognizedOption
> testUnrecognizedArguments
> testMissingArgumentAlias
> testMissingArgumentDate
> testMissingArgumentSeries
> ok
> test_flake8 (distro_info_test.test_flake8.Flake8TestCase)
> Test: Run flake8 on Python source code. ... Running following command:
> /usr/bin/python3.10 -m flake8 --max-line-length=99 debian-distro-info 
> ubuntu-distro-info distro_info_test distro_info.py setup.py
> testInvalidAlias
> testInvalidDate
> testInvalidSeries
> testMultipleAlias
> testMultipleDates
> testMultipleSeries
> testUnknownSeries
> testDays
> ok
> test_all (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: List all known Debian distributions. ... ok
> test_codename (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: Codename decoding ... ok
> test_codename_result 
> (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: Check result set to codename. ... ok
> test_devel (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: Get latest development Debian distribution. ... ok
> test_elts_supported 
> (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: List all ELTS supported Debian distribution. ... ok
> test_fullname (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: Check result set to fullname. ... ok
> test_lts_supported 
> (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: List all LTS supported Debian distribution. ... ok
> test_old (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: Get old (stable) Debian distribution. ... ok
> test_release (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: Check result set to release. ... ok
> test_stable (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: Get latest stable Debian distribution. ... ok
> test_supported (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: List all supported Debian distribution. ... ok
> test_testing (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: Get latest testing Debian distribution. ... ok
> test_unsupported (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: List all unsupported Debian distribution. ... ok
> test_valid (distro_info_test.test_distro_info.DebianDistroInfoTestCase)
> Test: Check for valid Debian distribution. ... ok
> test_version