Package: src:black
Version: 25.1.0-2
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild --with bash-completion
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild --with bash-completion
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" 
module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13  --verbose
* Building wheel...
Building `wheel` version `standard`
Successfully built black-25.1.0-cp313-cp313-linux_x86_64.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with 
"installer" module
   debian/rules execute_after_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make -C docs/ html PYTHONPATH="..:../src/" 
SPHINXBUILD="/usr/share/sphinx/scripts/python3/sphinx-build" SPHINXOPTS="-j 4 
-D today=\"February 27, 2025\""
make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
Running Sphinx v8.1.3
loading translations [en]... done
making output directory... done
Converting `source_suffix = ['.rst', '.md']` to `source_suffix = {'.rst': 
'restructuredtext', '.md': 'restructuredtext'}`.
loading intersphinx inventory '<name>' from 
/usr/share/doc/python3/html/objects.inv ...
myst v4.0.1: MdParserConfig(commonmark_only=False, gfm_only=False, 
enable_extensions=set(), disable_syntax=['colon_fence', 'myst_block_break', 
'myst_line_comment', 'math_block'], all_links_external=False, 
links_external_new_tab=False, url_schemes=('http', 'https', 'mailto', 'ftp'), 
ref_domains=None, fence_as_directive=set(), number_code_blocks=[], 
title_to_header=False, heading_anchors=3, heading_slug_func=None, html_meta={}, 
footnote_sort=True, footnote_transition=True, words_per_minute=200, 
substitutions={}, linkify_fuzzy_links=True, dmath_allow_labels=True, 
dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, 
update_mathjax=True, 
mathjax_classes='tex2jax_process|mathjax_process|math|output_area', 
enable_checkboxes=False, suppress_warnings=[], highlight_code_blocks=True)
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 26 source files that are out of date
updating environment: [new config] 26 added, 0 changed, 0 removed
reading sources... [ 20%] authors .. contributing/release_process
reading sources... [ 40%] contributing/the_basics .. 
guides/using_black_with_other_tools
reading sources... [ 60%] index .. license
reading sources... [ 80%] the_black_code_style/current_style .. 
usage_and_configuration/file_collection_and_discovery
reading sources... [100%] usage_and_configuration/index .. 
usage_and_configuration/the_basics

/<<PKGBUILDDIR>>/docs/usage_and_configuration/black_as_a_server.md:26: ERROR: 
Command ['blackd', '--help'] failed: [Errno 2] No such file or directory: 
'blackd' [docutils]
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... 
copying static files... 
Writing evaluated template result to 
/<<PKGBUILDDIR>>/docs/_build/html/_static/language_data.js
Writing evaluated template result to 
/<<PKGBUILDDIR>>/docs/_build/html/_static/basic.css
Writing evaluated template result to 
/<<PKGBUILDDIR>>/docs/_build/html/_static/documentation_options.js
Writing evaluated template result to 
/<<PKGBUILDDIR>>/docs/_build/html/_static/copybutton.js
copying static files: done
copying extra files... 
copying extra files: done
copying assets: done
writing output... [ 25%] change_log .. getting_started
writing output... [ 50%] guides/index .. integrations/source_version_control
writing output... [ 75%] license .. usage_and_configuration/index
writing output... [100%] usage_and_configuration/the_basics

generating indices... genindex done
writing additional pages... search done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 1 warning.

The HTML pages are in _build/html.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/docs'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; 
python3.13 -m pytest --run-optional no_jupyter,no_blackd -k "not 
(incompatible_with_mypyc)"
============================= test session starts ==============================
platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
configfile: pyproject.toml
plugins: typeguard-4.4.2
collected 386 items / 16 deselected / 1 skipped / 370 selected

tests/test_black.py .................................................... [ 14%]
........................................................................ [ 33%]
.....                                                                    [ 34%]
tests/test_blackd.py ssssssssssssssssssss                                [ 40%]
tests/test_docs.py s                                                     [ 40%]
tests/test_format.py ................................................... [ 54%]
..........F............................................................. [ 73%]
............................................................             [ 90%]
tests/test_no_ipynb.py ..                                                [ 90%]
tests/test_ranges.py ...............................                     [ 98%]
tests/test_schema.py .                                                   [ 99%]
tests/test_tokenize.py ..                                                [ 99%]
tests/test_trans.py .                                                    [100%]

=================================== FAILURES ===================================
_________________________ test_simple_format[pep_701] __________________________

>   src_ast = parse_ast(src)

src/black/__init__.py:1517: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   raise SyntaxError(first_error)
E   SyntaxError: f-string: newlines are not allowed in format specifiers for 
single quoted f-strings (<unknown>, line 77)

src/black/parsing.py:156: SyntaxError

During handling of the above exception, another exception occurred:

filename = 'pep_701'

    @pytest.mark.filterwarnings("ignore:invalid escape 
sequence.*:DeprecationWarning")
    @pytest.mark.parametrize("filename", all_data_cases("cases"))
    def test_simple_format(filename: str) -> None:
>       check_file("cases", filename)

tests/test_format.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_format.py:27: in check_file
    assert_format(
tests/util.py:109: in assert_format
    _assert_format_inner(
tests/util.py:182: in _assert_format_inner
    black.assert_equivalent(source, actual)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   raise ASTSafetyError(
        "cannot use --safe with this file; failed to parse source file AST: "
        f"{exc}\n"
        "This could be caused by running Black with an older Python version "
        "that does not support new syntax used in your source file."
    ) from exc
E   black.parsing.ASTSafetyError: cannot use --safe with this file; failed to 
parse source file AST: f-string: newlines are not allowed in format specifiers 
for single quoted f-strings (<unknown>, line 77)
E   This could be caused by running Black with an older Python version that 
does not support new syntax used in your source file.

src/black/__init__.py:1519: ASTSafetyError
=========================== short test summary info ============================
FAILED tests/test_format.py::test_simple_format[pep_701] - black.parsing.ASTS...
========== 1 failed, 348 passed, 22 skipped, 16 deselected in 23.92s ===========
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest 
--run-optional no_jupyter,no_blackd -k "not (incompatible_with_mypyc)"
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202505/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:black, so that this is still
visible in the BTS web page for this package.

Thanks.

Reply via email to