#1114040 actdiag: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13

#1114040#5
Date:
2025-09-05 18:14:50 UTC
From:
To:
Dear maintainer:

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

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

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

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

Thanks.
!!

        ********************************************************************************
        Usage of dash-separated 'build-base' will not be supported in future
        versions. Please use the underscore name 'build_base' instead.

        By 2026-Mar-03, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self._enforce_underscore(opt, section)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'build-base' in 'build' (setup.cfg), please use the underscore name 'build_base' instead.
!!

        ********************************************************************************
        Usage of dash-separated 'build-base' will not be supported in future
        versions. Please use the underscore name 'build_base' instead.
        (Affected: actdiag).

        By 2026-Mar-03, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self._enforce_underscore(opt, section)
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: Apache Software License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build' (and everything under it)
'_build/bdist.linux-x86_64' does not exist -- can't clean it
'_build/scripts-3.13' does not exist -- can't clean it
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.13 setup.py config
/usr/lib/python3/dist-packages/setuptools/dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'build-base' in 'build' (setup.cfg), please use the underscore name 'build_base' instead.
!!

        ********************************************************************************
        Usage of dash-separated 'build-base' will not be supported in future
        versions. Please use the underscore name 'build_base' instead.

        By 2026-Mar-03, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self._enforce_underscore(opt, section)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'build-base' in 'build' (setup.cfg), please use the underscore name 'build_base' instead.
!!

        ********************************************************************************
        Usage of dash-separated 'build-base' will not be supported in future
        versions. Please use the underscore name 'build_base' instead.
        (Affected: actdiag).

        By 2026-Mar-03, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self._enforce_underscore(opt, section)
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: Apache Software License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build
/usr/lib/python3/dist-packages/setuptools/dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'build-base' in 'build' (setup.cfg), please use the underscore name 'build_base' instead.
!!

        ********************************************************************************
        Usage of dash-separated 'build-base' will not be supported in future
        versions. Please use the underscore name 'build_base' instead.

        By 2026-Mar-03, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self._enforce_underscore(opt, section)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'build-base' in 'build' (setup.cfg), please use the underscore name 'build_base' instead.
!!

        ********************************************************************************
        Usage of dash-separated 'build-base' will not be supported in future
        versions. Please use the underscore name 'build_base' instead.
        (Affected: actdiag).

        By 2026-Mar-03, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self._enforce_underscore(opt, section)
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: Apache Software License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag
copying src/actdiag/elements.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag
copying src/actdiag/command.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag
copying src/actdiag/metrics.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag
copying src/actdiag/parser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag
copying src/actdiag/builder.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag
copying src/actdiag/drawer.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag
copying src/actdiag/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/plugins
copying src/actdiag/plugins/autolane.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/plugins
copying src/actdiag/plugins/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/plugins
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/utils
copying src/actdiag/utils/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/utils
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/utils/rst
copying src/actdiag/utils/rst/nodes.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/utils/rst
copying src/actdiag/utils/rst/directives.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/utils/rst
copying src/actdiag/utils/rst/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/utils/rst
running egg_info
creating src/actdiag.egg-info
writing src/actdiag.egg-info/PKG-INFO
writing dependency_links to src/actdiag.egg-info/dependency_links.txt
writing entry points to src/actdiag.egg-info/entry_points.txt
writing requirements to src/actdiag.egg-info/requires.txt
writing top-level names to src/actdiag.egg-info/top_level.txt
writing manifest file 'src/actdiag.egg-info/SOURCES.txt'
reading manifest file 'src/actdiag.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'src/actdiag/tests/VLGothic/*'
warning: no files found matching '*.gif' under directory 'src'
warning: no previously-included files found matching '.drone.io.sh'
warning: no previously-included files found matching 'examples/update.sh'
adding license file 'LICENSE'
writing manifest file 'src/actdiag.egg-info/SOURCES.txt'
/usr/lib/python3/dist-packages/setuptools/command/build_py.py:212: _Warning: Package 'actdiag.tests' is absent from the `packages` configuration.
!!

        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'actdiag.tests' as an importable package[^1],
        but it is absent from setuptools' `packages` configuration.

        This leads to an ambiguous overall configuration. If you want to distribute this
        package, please make sure that 'actdiag.tests' is explicitly added
        to the `packages` configuration field.

        Alternatively, you can also rely on setuptools' discovery methods
        (for example by using `find_namespace_packages(...)`/`find_namespace:`
        instead of `find_packages(...)`/`find:`).

        You can read more about "package discovery" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

        If you don't want 'actdiag.tests' to be distributed and are
        already explicitly excluding 'actdiag.tests' via
        `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
        you can try to use `exclude_package_data`, or `include-package-data=False` in
        combination with a more fine grained `package-data` configuration.

        You can read more about "package data files" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


        [^1]: For Python, any directory (with suitable naming) can be imported,
              even if it does not contain any `.py` files.
              On the other hand, currently there is no concept of package data
              directory, all directories are treated like packages.
        ********************************************************************************

!!
  check.warn(importable)
/usr/lib/python3/dist-packages/setuptools/command/build_py.py:212: _Warning: Package 'actdiag.tests.diagrams' is absent from the `packages` configuration.
!!

        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'actdiag.tests.diagrams' as an importable package[^1],
        but it is absent from setuptools' `packages` configuration.

        This leads to an ambiguous overall configuration. If you want to distribute this
        package, please make sure that 'actdiag.tests.diagrams' is explicitly added
        to the `packages` configuration field.

        Alternatively, you can also rely on setuptools' discovery methods
        (for example by using `find_namespace_packages(...)`/`find_namespace:`
        instead of `find_packages(...)`/`find:`).

        You can read more about "package discovery" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

        If you don't want 'actdiag.tests.diagrams' to be distributed and are
        already explicitly excluding 'actdiag.tests.diagrams' via
        `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
        you can try to use `exclude_package_data`, or `include-package-data=False` in
        combination with a more fine grained `package-data` configuration.

        You can read more about "package data files" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


        [^1]: For Python, any directory (with suitable naming) can be imported,
              even if it does not contain any `.py` files.
              On the other hand, currently there is no concept of package data
              directory, all directories are treated like packages.
        ********************************************************************************

!!
  check.warn(importable)
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/tests
copying src/actdiag/tests/test_generate_diagram.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/tests
copying src/actdiag/tests/test_rst_directives.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/tests
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/tests/diagrams
copying src/actdiag/tests/diagrams/simple.diag -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build/actdiag/tests/diagrams
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_actdiag/build; python3.13 -m pytest
============================= test session starts ==============================
platform linux -- Python 3.13.7, pytest-8.4.1, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.4.4
collected 42 items / 1 error

==================================== ERRORS ====================================
_ ERROR collecting .pybuild/cpython3_3.13_actdiag/build/actdiag/tests/test_generate_diagram.py _
'yield' keyword is allowed in fixtures, but not in tests (testcase_generator)
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/blockdiag/noderenderer/__init__.py:18
  /usr/lib/python3/dist-packages/blockdiag/noderenderer/__init__.py:18: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

#1114040#10
Date:
2025-09-26 16:01:49 UTC
From:
To:
This is because pytest 8.4 now fails more kinds of test it can't
actually run, here nose-style yield tests.

The root issue is in
https://sources.debian.org/src/blockdiag/3.0.0%2Bdfsg-3/src/blockdiag/tests/test_generate_diagram.py
and is fixed by
https://github.com/blockdiag/blockdiag/pull/175
but as actdiag/nxdiag/seqdiag import that test file and base some of
their tests on it, those packages will also need changes.

#1114040#17
Date:
2025-09-27 21:34:31 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
actdiag, 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 1114040@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Rebecca N. Palmer <rebecca_palmer@zoho.com> (supplier of updated actdiag 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: Sat, 27 Sep 2025 13:18:45 +0100
Source: actdiag
Architecture: source
Version: 3.0.0+dfsg1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Closes: 1114040
Changes:
 actdiag (3.0.0+dfsg1-3) unstable; urgency=medium
 .
   * Team upload.
   * Tests: stop using yield. (Closes: #1114040)
   * Add autopkgtest.
   * Bump Standards-Version to 4.7.2 (no changes needed).
   * Add salsa-ci.yml.
Checksums-Sha1:
 9da55a257c6c45a047ed8e340a5a9706eb00c515 2212 actdiag_3.0.0+dfsg1-3.dsc
 cbba6929f81ecdf8af3069b1e0dfef5e4d8445b4 6072 actdiag_3.0.0+dfsg1-3.debian.tar.xz
 67c5bf8c1cb10093a6db67cde4083a8caa95924f 5549 actdiag_3.0.0+dfsg1-3_source.buildinfo
Checksums-Sha256:
 57a681c10c5876b1760855bec5aa318357044aea56a505918b79c0e2707cc028 2212 actdiag_3.0.0+dfsg1-3.dsc
 03bd6b84b06632999e6b376166ea87f4892e1b47bc53ef72bbbd3ea23013affd 6072 actdiag_3.0.0+dfsg1-3.debian.tar.xz
 8075c74239b34c92d69cd4d26a057b6f22219e038ca7870853793936d418d24a 5549 actdiag_3.0.0+dfsg1-3_source.buildinfo
Files:
 6ee2d38d1a11cf28adeee2c1d2cd887c 2212 python optional actdiag_3.0.0+dfsg1-3.dsc
 4a3c45da36bff7cd02f5a3f75f5d5459 6072 python optional actdiag_3.0.0+dfsg1-3.debian.tar.xz
 dba23aa14fefa24d1abd228dccb102e3 5549 python optional actdiag_3.0.0+dfsg1-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJMBAEBCgA2FiEEZ8sxEAXE7b4yF1MI3uUNDVZ+omYFAmjYUJgYHHJlYmVjY2Ff
cGFsbWVyQHpvaG8uY29tAAoJEN7lDQ1WfqJm3DoP/jiNAR3F36bK8V2PyXdXMtMA
JpvGqJ1uB5FIxQLwcIbujmIOzwMHDKT2ItAhKHeUvEPNNp9K9nCD5WLyXDauUCGl
ffu5XNREJLEO+oUVT9HI0TF9t+aBOGfO2qukRa+0N/DBIlfwiqm0eHRZ//+5hEwm
K/PQ7VFwhEv1OqxM5I5lx4lrt+OhpP+yz9o75hJV7XEi5BhxW8LntzpAfwlCRLmE
Fm0J9DCHH2WuRWY/Yb0k+TEfZgeUsmV8bMZ2HmyK5VWmfOUVdiugGH53bwjvREhX
QLTycThFu5V1BjQ2GtgkQkaobPeASkDE54q7KJbMLZiWw5b87NqKY417sGAtdCnm
LuTWvn2Vw/K/054glCQzahyhWQz7oxubAzB0lxRnew6D2ohtfw30UB1r4dKpIEU2
1Zy6zBX2S7Icv608DEvHK+3jBqFsEpaYv8MfAlbmHmrLdSyuKRuuG9bHfFqdgQcf
q2T34+NYVFBfYGvpanF5SKKvA76BHFL9ND1t/JrMA0sOd5TsNDNfTLTn5kBLvQcr
Yn9yNcz15jC+TRTOPgaSkcA0eSn4WizKAHVv/BbfWj0uP5Cd6oJYIt7xTGWRejtL
cIX1+wEoo7/UVZls2RUg9QDY91RZ2kkRck6jCCkxZx/utoVISyBc/dJKdq1QCzO3
aTheYNroSMNR2cdRiRm5
=fxUo
-----END PGP SIGNATURE-----

#1114040#22
Date:
2025-09-28 07:01:24 UTC
From:
To:
Failed to build because I forgot to import pytest in the previous patch.