Your message dated Tue, 27 May 2025 15:49:13 +0000
with message-id <e1ujwyd-00ehdc...@fasolo.debian.org>
and subject line Bug#1106422: fixed in black 25.1.0-3
has caused the Debian Bug report #1106422,
regarding black: FTBFS: E SyntaxError: f-string: newlines are not allowed in 
format specifiers for single quoted f-strings
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1106422: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106422
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
Source: black
Source-Version: 25.1.0-3
Done: Bastian Germann <b...@debian.org>

We believe that the bug you reported is fixed in the latest version of
black, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1106...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <b...@debian.org> (supplier of updated black package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 27 May 2025 15:45:03 +0200
Source: black
Architecture: source
Version: 25.1.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Bastian Germann <b...@debian.org>
Closes: 1106422
Changes:
 black (25.1.0-3) unstable; urgency=medium
 .
   * Team upload
   * Ignore test_simple_format (regression with pep_701.py, Closes: #1106422)
 .
   [ Alexandre Detiste ]
   * remove build-dep on python3-tomli
Checksums-Sha1:
 cca29e93ee0f0e08dcd3fc34a48210ed29a6007a 2549 black_25.1.0-3.dsc
 f87a05f9794d969b60d97e07e12a30f3946feaac 12704 black_25.1.0-3.debian.tar.xz
 0430248af07ca7673045d2b042a41fdb6cedaf7e 8907 black_25.1.0-3_source.buildinfo
Checksums-Sha256:
 ce7e718557f71abc45bb93abf3b4ae929e86c0ad83c5ea3eef131ccdc92006eb 2549 
black_25.1.0-3.dsc
 228543fa319354932b59ffd0b23cadc0375a168479b224193401a8427f217657 12704 
black_25.1.0-3.debian.tar.xz
 8e385ed2f8ae9bceafbce6841c7d59a861e209f7cd008e31660ab0716dfd5a03 8907 
black_25.1.0-3_source.buildinfo
Files:
 7710d59f66c3cef7a83824f9e5639376 2549 python optional black_25.1.0-3.dsc
 b251e3afcef0b60b56f71d1e71dadc19 12704 python optional 
black_25.1.0-3.debian.tar.xz
 c0e9df324998c46c3fbfbb15be0f693d 8907 python optional 
black_25.1.0-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmg12bIQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFPleC/93PIdqFXKD71KRLxahPQtdNU9LdR/XigV9
vW3YoXaRQWyK5mMOimhFLhqheoH4T8uVY5ucvBx7IkOPzi7VT4ru3tMT+9FE2ftB
kWOZu39yAk9PYfNEhuXknUUBq46F7KKRtZaPJxOH2bqsXmqt9vCYZjhHXOlRYuPl
B1ogVSiYPxCtOa/r7Ea3Fu0Z4lpeYJrf7XoZtlPGvXWzgqvwMcWaPVmJHX8w6GUM
yIMHmk8b9+VsQJsuv7PyutcM5aKWWxDFn2WHDuo8oo6n+/NROrryTSrDKAoakgRF
AWjdTCHr+22tkQ1DHuEDf7BX7Zwzsr0GOH4vNR6qRN3JWlooDEBAMYpeBWJeGroV
VZ2zQmsLrShR7ijfu6UvwmIpat400divF0U2l8zmJnyJlJJyJcRHuunhexdD5R8z
IqHiZslEIw/cWnChQtPT4HtXhhL0HWoQ04/HZJydDhJNN6ABkqL+bVFpq/mfqqFH
OVXepEqhVz+GWAMMYEVBD8SouZ/nLgI=
=Td0l
-----END PGP SIGNATURE-----

Attachment: pgpLUmtwPzB7e.pgp
Description: PGP signature


--- End Message ---

Reply via email to