Path: csiph.com!tncsrv06.tnetconsulting.net!newsfeed.endofthelinebbs.com!news.corradoroberto.it!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Simon Josefsson Newsgroups: linux.debian.maint.python Subject: Re: renewed python-sigstore packaging work Date: Sat, 21 Dec 2024 02:10:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Sat Dec 21 01:01:43 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-14.5 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -4.6 Openpgp: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt X-Hashcash: 1:23:241221:debian-python@lists.debian.org::xAtQ5Usu+c1v1nln:5j/K X-Hashcash: 1:23:241221:pollo@debian.org::hUxufiswKYazXcJ5:JNCV User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Mailing-List: archive/latest/22698 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87wmftrgrc.fsf@kaka.sjd.se Approved: robomod@news.nic.it Lines: 152 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 21 Dec 2024 02:01:27 +0100 X-Original-Message-ID: <87wmftrgrc.fsf@kaka.sjd.se> X-Original-References: <87zfl9rbkq.fsf@kaka.sjd.se> <20241205231901.iulwchxvuxk2qidb@satie.tumbleweed.org.za> <878qssrei1.fsf@kaka.sjd.se> <877a3d7a-88df-43cb-83c9-50688a6dbcb5@debian.org> <87cyhzmoct.fsf@kaka.sjd.se> Xref: csiph.com linux.debian.maint.python:16606 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Simon Josefsson writes: > https://salsa.debian.org/python-team/packages/python-tuf I have uploaded 5.1.0-2 to unstable, however I would appreciate review of python-tuf since I'm new to python packaging. My main concern is about debian/tests/ and if there are better approaches? > https://salsa.debian.org/python-team/packages/sigstore-python I'm happy to report that this now builds! Please review packaging. However it does not yet run, there is a failure that shows up during build too: https://salsa.debian.org/python-team/packages/sigstore-python/-/jobs/679307= 6#L1421 For the ones who want to try out bleeding edge and perhaps debug things further, please try something like this (keep in mind that this downloads untrusted stuff...): podman run -it --rm debian:unstable echo "deb [trusted=3Dyes] https://salsa.debian.org/python-team/packages/pyt= hon-grpclib/-/jobs/6792419/artifacts/raw/aptly unstable main" | tee --appen= d /etc/apt/sources.list.d/add.list echo "deb [trusted=3Dyes] https://salsa.debian.org/python-team/packages/pyt= hon-betterproto/-/jobs/6792726/artifacts/raw/aptly unstable main" | tee --a= ppend /etc/apt/sources.list.d/add.list echo "deb [trusted=3Dyes] https://salsa.debian.org/python-team/packages/pyt= hon-sigstore-rekor-types/-/jobs/6792765/artifacts/raw/aptly unstable main" = | tee --append /etc/apt/sources.list.d/add.list echo "deb [trusted=3Dyes] https://salsa.debian.org/python-team/packages/pyt= hon-sigstore-protobuf-specs/-/jobs/6792898/artifacts/raw/aptly unstable mai= n" | tee --append /etc/apt/sources.list.d/add.list echo "deb [trusted=3Dyes] https://salsa.debian.org/python-team/packages/rfc= 8785/-/jobs/6792999/artifacts/raw/aptly unstable main" | tee --append /etc/= apt/sources.list.d/add.list echo "deb [trusted=3Dyes] https://salsa.debian.org/python-team/packages/sig= store-python/-/jobs/6793079/artifacts/raw/aptly unstable main" | tee --appe= nd /etc/apt/sources.list.d/add.list echo >>/etc/apt/apt.conf.d/99verify-peer.conf "Acquire { https::Verify-Peer= false }" apt update apt install -y sigstore The error message is below, does anyone have ideas? I wonder if pydantic in Debian is too old, or something. /Simon root@ab7dd93df2f1:/# sigstore Traceback (most recent call last): File "/usr/bin/sigstore", line 5, in from sigstore._cli import main File "/usr/lib/python3/dist-packages/sigstore/_cli.py", line 38, in from sigstore import __version__, dsse File "/usr/lib/python3/dist-packages/sigstore/dsse/__init__.py", line 33,= in from sigstore.hashes import Hashed File "/usr/lib/python3/dist-packages/sigstore/hashes.py", line 28, in class Hashed(BaseModel, frozen=3DTrue): File "/usr/lib/python3/dist-packages/pydantic/_internal/_model_constructi= on.py", line 226, in __new__ complete_model_class( File "/usr/lib/python3/dist-packages/pydantic/_internal/_model_constructi= on.py", line 658, in complete_model_class schema =3D cls.__get_pydantic_core_schema__(cls, handler) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/main.py", line 702, in __ge= t_pydantic_core_schema__ return handler(source) ^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_schema_generatio= n_shared.py", line 84, in __call__ schema =3D self._handler(source_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 610, in generate_schema schema =3D self._generate_schema_inner(obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 879, in _generate_schema_inner return self._model_schema(obj) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 691, in _model_schema {k: self._generate_md_field_schema(k, v, decorators) for k, v in fields= .items()}, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 1071, in _generate_md_field_schema common_field =3D self._common_field_schema(name, field_info, decorators) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 1263, in _common_field_schema schema =3D self._apply_annotations( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 2056, in _apply_annotations schema =3D get_inner_schema(source_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_schema_generatio= n_shared.py", line 84, in __call__ schema =3D self._handler(source_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 2037, in inner_handler schema =3D self._generate_schema_inner(obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 884, in _generate_schema_inner return self.match_type(obj) ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 995, in match_type return self._unknown_type_schema(obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.= py", line 513, in _unknown_type_schema raise PydanticSchemaGenerationError( pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-= core schema for . Set `arbitrary_types_allowed=3DTrue= ` in the model_config to ignore this error or implement `__get_pydantic_cor= e_schema__` on your type to fully support it. If you got this error by calling handler() within `__get_pydanti= c_core_schema__` then you likely need to call `handler.generate_schema()` since we do not call `__get_pydantic_core_schema__` on `` otherwise to avoid infinite recursion. For further information visit https://errors.pydantic.dev/2.10/u/schema-for= -unknown-type root@ab7dd93df2f1:/#=20 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCZ2YTZxQcc2ltb25Aam9z ZWZzc29uLm9yZwAKCRBRcisI/kdFotyfAP974cgU1Y5vu6xfkQkknEVtGzlfA8lt GGgKH1L1TkAJ+gEAiFXu6em2Mn/Y7vzm3X393LBsMAkgaHDjmep3fED0RwE= =PJhu -----END PGP SIGNATURE----- --=-=-=--