From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7AE38158004 for ; Wed, 29 Nov 2023 16:59:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DAC432BC03C; Wed, 29 Nov 2023 16:59:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 94BD72BC036 for ; Wed, 29 Nov 2023 16:59:28 +0000 (UTC) Message-ID: Subject: [gentoo-dev] pycargoebuild can now generate "crate tarballs" From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Wed, 29 Nov 2023 17:59:23 +0100 Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-CZj42/K1Wc5fyInGxEw9" User-Agent: Evolution 3.50.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-Archives-Salt: f6004feb-7071-4fa7-8e92-cb63f9a5befc X-Archives-Hash: adefebcc59ae7a46c12724b7c764b4ea --=-CZj42/K1Wc5fyInGxEw9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, everyone. app-portage/pycargoebuild-0.12 brings a new useful feature: generating "crate tarballs" that can be used to easily deliver all crates, resulting in much smaller Manifest, ebuild and much faster fetch+unpack. This is currently experimental, so I'd appreciate your testing and feedback. Long story short, run pycargoebuild with --crate-tarball, e.g.: $ pycargoebuild --crate-tarball -i fractal-5.ebuild \ /tmp/portage/net-im/fractal-5/work/fractal-5/ [...] INFO Crate tarball written to /tmp/dist/fractal-5.0.0-crates.tar.xz=20 pycargoebuild will fetch all crates (as usual), repack them into a single .tar.xz and put empty CRATES=3D"\n" into the ebuild (some whitespace is required to workaround cargo.eclass right now). You may want to rename the tarball (the default name is based off Cargo.toml metadata), upload it somewhere and then add it to SRC_URI. Note that GIT_CRATES aren't repacked. Now some numbers, for fractal-5: ebuild: 15 KiB =E2=86=92 4 KiB Manifest: 180 KiB =E2=86=92 1.5 KiB download time: 70 s =E2=86=92 2 s distfile count: 597 =E2=86=92 4 distdir size: 76 MiB =E2=86=92 45 MiB unpack time: 15 s =E2=86=92 6 s --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-CZj42/K1Wc5fyInGxEw9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQFGBAABCgAwFiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAmVnbesSHG1nb3JueUBn ZW50b28ub3JnAAoJEGOa2uIyniQO+l8H/3nP5rKC5J6bd3Q8rmcAPNASsJGGdOkI 0e8+iq+CQspQoTS4vxBBPjPDUjO/pwUGcZZaIVNg/rbwPcmLgaxcaGBz195i3wNG eil1nD8SNls47mIkyDCzl7Z03d2Z/9IH9V2wN0KkSgNx6Vo42lZ9fvoe3MgaMewJ 9ydn8CNzz+Q4L5qEFLWKBUpPELU4WE0V0vIio6afPIm+jbT0YGba/3mhnhdKESOk BnYoiavaZAoHgcJh8GDBmNdV62H6EYBpu4cLkSYlNsPuK7cpmANx1/+AZPeQi0N0 jEgbDpVdFeBtJpirAn5D2GPzYmeEFvuOT/OtSl1ci2LOPhrISH+M2Go= =bSPX -----END PGP SIGNATURE----- --=-CZj42/K1Wc5fyInGxEw9--