Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Andrey Rakhmatullin Newsgroups: linux.debian.maint.python Subject: Re: python-sigstore / python-tuf: request for packaging help Date: Fri, 06 Dec 2024 08:40:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Dec 6 07:35:38 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-11.898 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -3.5 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cR26FE9Bv8rikXPs" Content-Disposition: inline X-Mailing-List: archive/latest/22628 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/Z1KpOGxmgfBg4atA@belkar.wrar.name Approved: robomod@news.nic.it Lines: 66 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 6 Dec 2024 12:35:20 +0500 X-Original-Message-ID: X-Original-References: <878qstsqjn.fsf@kaka.sjd.se> Xref: csiph.com linux.debian.maint.python:16543 --cR26FE9Bv8rikXPs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 05, 2024 at 11:39:24PM +0100, Simon Josefsson wrote: > The self-tests tries seems to open some files which fails and I suspect > it is because srcdir !=3D builddir reasons, or something similar, see > errors here: >=20 > https://salsa.debian.org/jas/python-tuf/-/jobs/6707693 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ERRORS =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > ______________ ERROR collecting tests/test_metadata_generation.py _______= _______ > tests/test_metadata_generation.py:10: in > from tests.generated_data.generate_md import generate_all_files > tests/generated_data/generate_md.py:60: in > os.mkdir(OUT_DIR) > E FileNotFoundError: [Errno 2] No such file or directory: 'generated_da= ta/ed25519_metadata' >=20 > How is this (seamingly common) problem solved normally? Do we copy test > data files into the build directory somehow? Do we include them in the > package? Do we patch hard-coded paths like this to make it work? It's not common and test data files are already copied because they are under tests/. It's because of relative paths and I can reproduce this problem by running pytest in the upstream's git checkout. See also tox.ini: # TODO: Consider refactoring the tests to not require the aggregation script # being invoked from the `tests` directory. No idea if patching the path is enough or you need PYBUILD_BEFORE_TEST with `cd {dir}/tests` or something like that. --=20 WBR, wRAR --cR26FE9Bv8rikXPs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmdSqTItFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh KN4P/1jsjTR7U6OrW1JmvtPzohZDgGrR+KazXh+0xd4FpkmIp2t7E6EtFaBvgMTT WHfUzUoBDLMjrRfMro8O6VNR599OJBV/K2DY+BCKMh1jhFwzmFAZUna8EWqQ+V2T H5jikvINp2ni0Jd7rUwWzIFSAv65fiptEw1y5ySiKZBFMYnEe/zQyv3UMELm35vG AK4nw/cfPthp2lldmBDGZAQrTRvFMMJPCKLkWtYf0xeFnLx4+hkF6jLDI77s7NpC LydEkEWVS7I5SqgeFM/0Rzjdql6VuHjl6ihJD8xzP7VeUyB/VwKkpr7NQVjmLkEr hoR5R9hXuYmpBJsEQxwD79YrIIcIoo3mHtb9ZGFggwAwYc9PuZFYA6CuVocTm238 8gZeMgLti6A7iJd1KdJ5aqRNlWy6Eoi14H9kJj9l+ST4YBjgQudYg88LKPi0THMW 92G4JwVZlsr9HrdMTNYIW+EtHHW5ErXyJzQuQW4rzXzMutAXZAFRq2sfX6qQ7TdD dOGSyYSpgU/AMfzm37NphoZNfWbGo/ETYJFoJFYVqiCR1HXMdpOR0fkwfPYLeK1k S2jVPiFuqHCVz8DxeBGBRWrqCy9BdLDpVDzRJDyUmhxo/hw6H3IT5wAhyqme7Ixt Pu6xhFKk78Bs1W0hJ/IjuXzXSjG9Yx56WCDkEdMTWWTatE1l =mJp7 -----END PGP SIGNATURE----- --cR26FE9Bv8rikXPs--