Source: python-lsp-black
Version: 2.0.0-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source
X-Debbugs-Cc: sylves...@debian.org

Hi,

python-lsp-black currently FTBFS in unstable. To track down the reason,
I ran debbisect:

DEBIAN_BISECT_SRCPKG=python-lsp-black debbisect --cache="$(pwd)/cache" 
2024-01-01 today /usr/share/doc/devscripts/examples/debbisect_buildsrc.sh
[...]
#6: trying 20240214T085951Z...
test script output: good
snapshot timestamp difference: 3.758796296296296 days
computation time left: 0:37:59.675485
approximately 4 steps left to test
#7: trying 20240215T151223Z...
test script output: bad
bisection finished successfully
  last good timestamp: 20240214T085951Z
  first bad timestamp: 20240215T151223Z
only one package differs: black 24.1.1-1 -> 24.2.0-1

I haven't investigated the failure yet.

I have put Sylvestre, who uploaded black 24.2.0-1 a few days ago in
X-Debbugs-Cc.

Sylvestre, do you have an idea what the cause for this error could be? From the
failing build log:

============================= test session starts ==============================
platform linux -- Python 3.11.8, pytest-7.4.4, pluggy-1.4.0
rootdir: /<<PKGBUILDDIR>>
collected 21 items / 2 deselected / 19 selected

tests/test_plugin.py ..............FF...                                 [100%]

=================================== FAILURES ===================================
__________________________ test_load_config_defaults ___________________________

config = {'fast': False, 'line_length': 88, 'preview': False, 'pyi': False, ...}

    def test_load_config_defaults(config):
        config = load_config(str(fixtures_dir / "example.py"), config)
    
>       assert config == {
            "line_length": 88,
            "target_version": set(),
            "pyi": False,
            "fast": False,
            "skip_magic_trailing_comma": False,
            "skip_string_normalization": False,
            "preview": False,
        }
E       AssertionError: assert {'fast': Fals...': False, ...} == {'fast': 
Fals...': False, ...}
E         Omitting 6 identical items, use -vv to show
E         Differing items:
E         {'target_version': {<TargetVersion.PY310: 10>, <TargetVersion.PY38: 
8>, <TargetVersion.PY311: 11>, <TargetVersion.PY39: 9>}} != {'target_version': 
set()}
E         Use -v to get more diff

It seems that the target_version member is now somehow empty?

Thanks!

cheers, josch

Reply via email to