From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH 01/10] gnu: Add python-pytest-cov. Date: Mon, 7 Dec 2015 21:25:52 +0200 Message-ID: <20151207212552.402adeda@debian-netbook> References: <1449153811-32039-1-git-send-email-efraim@flashner.co.il> <1449153811-32039-2-git-send-email-efraim@flashner.co.il> <87vb8fnp9l.fsf@mdc-berlin.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/FbEnHJ/8skI9TIcc6of85re"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a61Ut-0007X1-3A for guix-devel@gnu.org; Mon, 07 Dec 2015 14:30:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a61Uo-0005Oi-9f for guix-devel@gnu.org; Mon, 07 Dec 2015 14:30:55 -0500 Received: from flashner.co.il ([178.62.234.194]:43072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a61Uo-0005OT-0E for guix-devel@gnu.org; Mon, 07 Dec 2015 14:30:50 -0500 In-Reply-To: <87vb8fnp9l.fsf@mdc-berlin.de> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: guix-devel@gnu.org --Sig_/FbEnHJ/8skI9TIcc6of85re Content-Type: multipart/mixed; boundary="MP_/wLm8WW5RXlgnEZ_1LgvmHI4" --MP_/wLm8WW5RXlgnEZ_1LgvmHI4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 3 Dec 2015 23:25:26 +0100 Ricardo Wurmus wrote: > Efraim Flashner writes: >=20 > > + (build-system python-build-system) > > + (inputs > > + `(("python-coverage" ,python-coverage) > > + ("python-pytest" ,python-pytest))) =20 >=20 > If these Python modules need to be available at runtime they really > should be propagated-inputs. If they are needed at test time only, they > should be native-inputs. For Python packages there is rarely a good > reason to use inputs unless they are library bindings. >=20 > I think many of our Python packages actually need to declare many more > inputs as propagated inputs. >=20 > > + (native-inputs > > + `(("python-setuptools" ,python-setuptools))) =20 >=20 > ~~ Ricardo --=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 --MP_/wLm8WW5RXlgnEZ_1LgvmHI4 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-gnu-Add-python-pytest-cov.patch =46rom 645f979af579abb97a69b1a8814034f4c2d9b499 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 23 Nov 2015 17:12:52 +0200 Subject: [PATCH 01/10] gnu: Add python-pytest-cov. * gnu/packages/python.scm (python-pytest-cov, python2-pytest-cov): New variables. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d01c1d3..280f0c9 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1634,6 +1634,34 @@ and many external plugins.") (define-public python2-pytest (package-with-python2 python-pytest)) =20 +(define-public python-pytest-cov + (package + (name "python-pytest-cov") + (version "2.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-cov" version)) + (sha256 + (base32 + "1lf9jsmhqk5nc4w3kzwglmdzjvmi7ajvrsnwv826j3bn0wzx8c92")))) + (build-system python-build-system) + (propagated-inputs + `(("python-coverage" ,python-coverage) + ("python-pytest" ,python-pytest))) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/pytest-dev/pytest-cov") + (synopsis "Pytest plugin for measuring coverage") + (description + "Pytest-cov produces coverage reports. It supports centralised testing= and +distributed testing in both load and each modes. It also supports coverage +of subprocesses.") + (license license:expat))) + +(define-public python2-pytest-cov + (package-with-python2 python-pytest-cov)) + (define-public python-pytest-runner (package (name "python-pytest-runner") --=20 2.6.2 --MP_/wLm8WW5RXlgnEZ_1LgvmHI4-- --Sig_/FbEnHJ/8skI9TIcc6of85re Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWZd1BAAoJEPTB05F+rO6T11MQAJawk+ClHxaVqfHHg+iwrmZt w/sKSmtRTwKcFdDqcEKQSXjenX3SAUrPUsy4wAQLchM/fObvWYlHWlKgcuRMeFFP UkvgENYNQTaxECk3PDsBcofNqqGFbbiAd+L1Gqllc1OPFTqrh40sxsm6mRgJpvah KbpaCtZ0Aw6GKb5rVD0PZyX6t+SLEXGjuO8Wngf3MDLhHbQiM5AHNP8dgZokLCSz nw1fDrk2VDhFAhqVx8DCOT+vkUE91mXm+lE/zs27R3zH9WoFJjwgrOqcPEkl+c01 HmrP9SJryj7Kk4GSvWCLlnt5B2WdGy4YskKQUzckkcZSd7d7s67pwVf7lbNSns+O GS5JLdeXvPOs0YRG1aF/hUlgbv2dC5/PnOpkjPGVdqQX84Ng9EhrvLzDRs92pPGb eyY0k7D8kOa8dlFQG6TWOxP/97nlv02vNfAT/I9WXnzwh7wbpzY/3wJaXilRQXpm rYfVu+frpamt5XpStB5PYyU4zaE5LOs7XFje/0oUpwALfkCo1gI77l+rHgYdZYj/ n5n2OnPtxHqW3oMy0Ayqa21/x+DWTUsTzGlGEaaOq61lJN2MN4/BASTAJL1PK2eQ m60CetyVEHO0663jhjejrACujtqZV6H6yAhnGxcmfzZBsYETV+kLGPazf2HC7/mc WvFDoKIhUfKlpxrqjRXa =RXaB -----END PGP SIGNATURE----- --Sig_/FbEnHJ/8skI9TIcc6of85re--