From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 3/5] import: pypi: Compute test requirements when using wheels. Date: Fri, 22 Jul 2016 23:28:42 +0200 Message-ID: <87h9bhpdkl.fsf@gnu.org> References: <1468682605-12622-1-git-send-email-tipecaml@gmail.com> <1468682605-12622-4-git-send-email-tipecaml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQi03-0007ip-A6 for guix-devel@gnu.org; Fri, 22 Jul 2016 17:28:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQhzy-0005YQ-Bw for guix-devel@gnu.org; Fri, 22 Jul 2016 17:28:50 -0400 In-Reply-To: <1468682605-12622-4-git-send-email-tipecaml@gmail.com> (Cyril Roelandt's message of "Sat, 16 Jul 2016 17:23:23 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Cyril Roelandt Cc: guix-devel@gnu.org Cyril Roelandt skribis: > * guix/import/pypi.scm (read-wheel-metadata): Read test requirements from= the > metadata included in the wheel. > * guix/import/pypi.scm (guess-requirement-from-source): Return an empty l= ist > for test requirements. > * guix/import/pypi.scm (compute-inputs): Return both the runtime requirem= ents > and the test requirements. > * guix/import.pypi.scm (make-pypi-sexp): Compute native inputs. > * tests/pypi.scm ("pypi->guix-package, wheels"): Update accordingly. [...] > (requirements (if run_requires > (hash-ref (list-ref run_requ= ires 0) > "requires") > - '()))) > - (map (lambda (r) > - (python->package-name (clean-requirement r))) > - requirements))))) > + '())) > + (test-requirements (if test_requires > + (hash-ref (list-ref tes= t_requires 0) > + "requires") > + '()))) Maybe for a subsequent patch: these two occurrences could be written as (match test_requires ((head _ ...) (hash-ref head "requires")) (_ '())) LGTM, thanks! Ludo=E2=80=99.