From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:52993) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4SMd-0008C1-IO for guix-patches@gnu.org; Sun, 01 Sep 2019 12:06:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4SMc-000671-JR for guix-patches@gnu.org; Sun, 01 Sep 2019 12:06:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48270) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4SMc-00066w-Gr for guix-patches@gnu.org; Sun, 01 Sep 2019 12:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4SMc-0001fL-9R for guix-patches@gnu.org; Sun, 01 Sep 2019 12:06:02 -0400 Subject: [bug#37254] [PATCH 0/4] Refactor (guix ci) and (guix import crate) Resent-Message-ID: Date: Sun, 1 Sep 2019 19:05:13 +0300 From: Efraim Flashner Message-ID: <20190901160513.GI13917@E5400> References: <20190901144647.15185-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="M9kwpIYUMbI/2cCx" Content-Disposition: inline In-Reply-To: <20190901144647.15185-1-ludo@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37254@debbugs.gnu.org --M9kwpIYUMbI/2cCx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable After my several (panicked :/) messages on IRC it turns out it's working pretty well. I'm able to run 'guix lint -c refresh' and 'guix refresh -t crate'. some errors I've come across, sometimes I get (license (list . #f)), like for rust-ppv-lite86, and sometimes I get (license (list . license:expat))), like with rust-schannel. On Sun, Sep 01, 2019 at 04:46:47PM +0200, Ludovic Court=C3=A8s wrote: > Hello Guix! >=20 > Initially I just wanted to fix =E2=80=9Cguix import crate blake2-rfc=E2= =80=9D, which > didn=E2=80=99t work as Efraim reported on IRC, but that led me to refactor > (guix ci) and (guix import crate) to use =E2=80=98define-json-mapping=E2= =80=99 to > automatically map JSON dictionaries to records. >=20 > Feedback welcome! >=20 > Thanks, > Ludo=E2=80=99. >=20 > Ludovic Court=C3=A8s (4): > Add (guix json). > ci: Use (guix json) and adjust for Guile-JSON 3.x. > import: create: Separate crates.io API from actual conversion. > import: crate: Correct interpretation of dual-licensing strings. >=20 > Makefile.am | 1 + > guix/build-system/cargo.scm | 11 ++- > guix/ci.scm | 68 ++++++--------- > guix/import/crate.scm | 161 ++++++++++++++++++++++++++---------- > guix/json.scm | 62 ++++++++++++++ > guix/swh.scm | 35 +------- > tests/crate.scm | 13 ++- > 7 files changed, 229 insertions(+), 122 deletions(-) > create mode 100644 guix/json.scm >=20 > --=20 > 2.23.0 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --M9kwpIYUMbI/2cCx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl1r7DUACgkQQarn3Mo9 g1FbChAAkFkXSgkTylmxoWlsBl89Qx19SiHoCMQmdt8+DYLbea81tEzGVhbuzIbB 8g9aDPj4A5bbnN7e9DVH/Bg2Nh9OplEgA7AzrswcP9zUTjY1F/BKUNVdFx7qm3hk bzpDlpFGXY5P1KfLYYxrIojHJ6VCjoj3Zko9POrdTRu7GgW2ObClgnDc9kWmRYQW 9m+dheFa8Z0c27Jh0c8QrsxL+ITbzZfgETC2vTAuC/p6a7kVlDcT689b+cba2jFD Wh6bKTI9A3VDUOKD8PjvJG38b5aFh6qJv1xvBjQX/cCHsuHkArOy9SqiKla8l4f+ MhXzh9RhR7Am/tuel40McJcSyaOMtNvZu9M56ch1kaytjDRkrIR7K3qWoJZ9P7TB TBVYTQvLt0helF9Q7I5QnOw+C0IoYRh35dJTelufcAJphbELsI/MVMe04yOnucSS wOEW+5m5SoIdEb82vlFwGTHCUf10AGiqY4P4KtSCqLNFXHmpP1xg+MuhyBOzsiXe +SoLqaKjhlS2yZT8n+06r7AaI/6JyR8//pO3hbJZynns6FHKZg9MkZF+Qqre8ZUX NCJNrxDt16D8BeBl8az3UGqL0BIjARt8mbr3qrpz8TvBOqeDk3Ux1pj4J5j814M1 K5arnbPYlcJRTcox8f3ixO138H8uEmjVAMFILYIm2YU7qiR1TNE= =Lpqm -----END PGP SIGNATURE----- --M9kwpIYUMbI/2cCx--