#1146085 twine: FTBFS: E AssertionError: assert [('twine.comm...e document.')] == [('twine.comm...transition.')]

Package:
src:twine
Source:
src:twine
Submitter:
Santiago Vila
Date:
2026-09-10 04:39:03 UTC
Severity:
normal
Tags:
#1146085#5
Date:
2026-08-29 16:11:26 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

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

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 cannot 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:twine, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
=================================== FAILURES ===================================

            (
                "twine.commands.check",
                logging.ERROR,
                "`long_description` has syntax errors in markup "
                "and would not be rendered on PyPI.\n"
                "line 2: Warning: Document or section may not begin with a transition.",
            ),
        ]
E       AssertionError: assert [('twine.comm...e document.')] == [('twine.comm...transition.')]
E
E         At index 0 diff: ('twine.commands.check', 40, '`long_description` has syntax errors in markup and would not be rendered on PyPI.\nline 2: Warning: Transition at the end of the document.') != ('twine.commands.check', 40, '`long_description` has syntax errors in markup and would not be rendered on PyPI.\nline 2: Warning: Document or section may not begin with a transition.')
E         Use -v to get more diff

tests/test_check.py:116: AssertionError
----------------------------- Captured stderr call -----------------------------
`long_description` has syntax errors in markup and would not be rendered on PyPI.
line 2: Warning: Transition at the end of the document.
------------------------------ Captured log call -------------------------------
ERROR    twine.commands.check:check.py:147 `long_description` has syntax errors in markup and would not be rendered on PyPI.
line 2: Warning: Transition at the end of the document.
=========================== short test summary info ============================
FAILED tests/test_check.py::test_fails_rst_syntax_error - AssertionError: ass...
=================== 1 failed, 225 passed, 3 skipped in 0.54s ===================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_twine/build; python3.14 -m pytest --ignore tests/test_integration.py
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 --test-pytest --test-args "--ignore tests/test_integration.py" --parallel=2 returned exit code 13
make[1]: *** [debian/rules:22: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:5: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1146085#8
Date:
2026-09-10 04:09:45 UTC
From:
To:
Hello,

Bug #1146085 in twine 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/python-team/packages/twine/-/commit/814aeea34b4e42cb4856874f16e0f541a7611526
------------------------------------------------------------------------
Add upstream patch for docutils 0.23

With thanks to Maximiliano Curia for forwarding the upstream patch.

Closes: #1146085, #1146430
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1146085

#1146085#15
Date:
2026-09-10 04:36:47 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
twine, 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 1146085@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stuart Prescott <stuart@debian.org> (supplier of updated twine 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 10 Sep 2026 14:03:57 +1000
Source: twine
Architecture: source
Version: 6.2.0-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Stuart Prescott <stuart@debian.org>
Closes: 1146085 1146430
Changes:
 twine (6.2.0-6) unstable; urgency=medium
 .
   * Team upload.
   * Fix FTBFS with python-docutils 0.23, with thanks to Maximiliano Curia for
     forwarding the upstream patch (Closes: #1146085, #1146430).
Checksums-Sha1:
 6f7be5acfd0a602e3fa37d2b712c2f296615282d 3076 twine_6.2.0-6.dsc
 969d6d2c184debad5c9aec8a1c62b9e726e3756a 11224 twine_6.2.0-6.debian.tar.xz
 c0a804ef8b59afaa80eb83360fc7287110d1647f 314300 twine_6.2.0-6.git.tar.xz
 2693364d33006dc0f2ed76d02e7af32cfff741d0 17660 twine_6.2.0-6_source.buildinfo
Checksums-Sha256:
 1eb89eb3e6cebe736a7a05a2454545174846627f70d5e44cf7f10b843462c949 3076 twine_6.2.0-6.dsc
 024857b88fd65d46629419d239cc8354eae31d6839197855011e94f74724f314 11224 twine_6.2.0-6.debian.tar.xz
 fbdc89e9c2dca526e48edd53393893a83c7be8edca10d3cc83a69468bbc7cfd1 314300 twine_6.2.0-6.git.tar.xz
 8189b41f239a1926b88982a2b79fb483ef58f555dd35c51f1da55e3f4925a670 17660 twine_6.2.0-6_source.buildinfo
Files:
 9c322d71a8057e687d7a89863f578803 3076 utils optional twine_6.2.0-6.dsc
 abaa652464b89c9bd7302657e5e0ff12 11224 utils optional twine_6.2.0-6.debian.tar.xz
 6e77b82811ea902f249cdf8753086ee6 314300 utils None twine_6.2.0-6.git.tar.xz
 429e1fb1adb5d0bd936fc3ebe7b67973 17660 utils optional twine_6.2.0-6_source.buildinfo
Git-Tag-Info: tag=11ce859f4038b8a0ecbce7c39f01f4eb26397256 fp=90e2d2c1ad146a1b7ebb891dbbc17ebb1396f2f7
Git-Tag-Tagger: Stuart Prescott <stuart@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmqiLckACgkQYG0ITkaD
wHkwVg/+KnJQxT1WDBCEh7RIy/FWnRwN8D6n4hP8Vlv7odnQGnxQ12eZefn8Ytqh
jGhVTFmjoYPRGQq/9KnooSPMZz8q1VETByoRvCFLI67moNkgx2vY7TiXv+Vr1nbK
7bZdff/EAbhDFdk6L6lA0Xo0lPdcIH3bXrvOggEN/8YBOND+Z2b1elHrNBZIZb3N
zlrX7cApWIlBxkC4DZCQuH7nruTeDfB6Wa1+lRwzZF5Oo1eGTIM60HV1U+Q/y2vE
srj5vxo9lsNJUfTLQpBL8E3Gn+IJ+0GC/xFCX3MmR61+FRXX+oLwIBeWYmr0BpYa
A4iTShFa8UMGd659PspspVtXl5yxO+jyimY+jD+NMQmre602Op/fNHzS7CYLKx8k
xb+XH1wPGN4p8nswCbg/MW8dKF4JAU0U7QSc1J0I+cLmur+NQJXw1vaPD8l1jgjT
zngX5CKSMHNuRdaz0nQ4MJCC9EbWdzXBawn2qsfkJp3rzrpwwdhHivZ3W/2TXSOz
WAywtTuj0IOJrFJJmPUgRjaEH/QdZeG1toBd+U6eO/JKfwz/Rs51iLqDgKF6LSsH
gQeZHZ3IlJ/WPU7nJXh/MBpNF1xhIqapgcYERD8RQzoo6UxAhE8wAvv9aSSIv3B6
lWfe5cHn/u0ZRrx52w2OdoBARP1mt19F7TQdmjOxZq37wGKvNrU=
=uBRY
-----END PGP SIGNATURE-----