unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 01/10] gnu: Add python-pytest-cov.
Date: Mon, 7 Dec 2015 21:25:52 +0200	[thread overview]
Message-ID: <20151207212552.402adeda@debian-netbook> (raw)
In-Reply-To: <87vb8fnp9l.fsf@mdc-berlin.de>


[-- Attachment #1.1: Type: text/plain, Size: 1010 bytes --]

On Thu, 3 Dec 2015 23:25:26 +0100
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> wrote:

> Efraim Flashner <efraim@flashner.co.il> writes:
> 
> > +  (build-system python-build-system)
> > +  (inputs
> > +   `(("python-coverage" ,python-coverage)
> > +     ("python-pytest" ,python-pytest)))  
> 
> 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.
> 
> I think many of our Python packages actually need to declare many more
> inputs as propagated inputs.
> 
> > +  (native-inputs
> > +   `(("python-setuptools" ,python-setuptools)))  
> 
> ~~ Ricardo



-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-pytest-cov.patch --]
[-- Type: text/x-patch, Size: 1753 bytes --]

From 645f979af579abb97a69b1a8814034f4c2d9b499 Mon Sep 17 00:00:00 2001
From: Efraim Flashner <efraim@flashner.co.il>
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))
 
+(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")
-- 
2.6.2


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-12-07 19:30 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03 14:43 [PATCH 00/10] git-annex special-remote hubiC support Efraim Flashner
2015-12-03 14:43 ` [PATCH 01/10] gnu: Add python-pytest-cov Efraim Flashner
2015-12-03 22:25   ` Ricardo Wurmus
2015-12-07 19:25     ` Efraim Flashner [this message]
2015-12-11 14:03       ` Ricardo Wurmus
2015-12-17 19:02         ` Efraim Flashner
2015-12-20 13:43           ` Ricardo Wurmus
2015-12-27 10:14             ` Efraim Flashner
2015-12-30 14:10               ` Ricardo Wurmus
2015-12-30 20:36                 ` Efraim Flashner
2015-12-30 20:45                   ` Ricardo Wurmus
2015-12-31 11:28                     ` Mathieu Lirzin
2015-12-31 11:32                       ` Ricardo Wurmus
2016-01-04 15:56               ` Ludovic Courtès
2015-12-03 14:43 ` [PATCH 02/10] gnu: Add python-wheel Efraim Flashner
2015-12-07 19:26   ` Efraim Flashner
2015-12-11 14:07     ` Ricardo Wurmus
2015-12-27 10:13       ` Efraim Flashner
2016-01-04 16:01         ` Ludovic Courtès
2015-12-03 14:43 ` [PATCH 03/10] gnu: python-requests: Update to 2.8.1 Efraim Flashner
2015-12-07 19:26   ` Efraim Flashner
2015-12-11 14:08     ` Ricardo Wurmus
2015-12-03 14:43 ` [PATCH 04/10] gnu: Add python-keystoneclient Efraim Flashner
2015-12-07 19:26   ` Efraim Flashner
2015-12-11 14:15     ` Ricardo Wurmus
2015-12-27 10:13       ` Efraim Flashner
2016-01-04 16:00         ` Ludovic Courtès
2016-01-04 16:33         ` Ricardo Wurmus
2015-12-03 14:43 ` [PATCH 05/10] gnu: Add python2-futures Efraim Flashner
2015-12-07 19:27   ` Efraim Flashner
2015-12-11 14:17     ` Ricardo Wurmus
2015-12-27 10:15       ` Efraim Flashner
2016-01-04 15:57         ` Ludovic Courtès
2015-12-03 14:43 ` [PATCH 06/10] gnu: Add python-swiftclient Efraim Flashner
2015-12-07 19:27   ` Efraim Flashner
2015-12-11 14:22     ` Ricardo Wurmus
2015-12-27 10:14       ` Efraim Flashner
2016-01-04 16:03         ` Ludovic Courtès
2015-12-03 14:43 ` [PATCH 07/10] gnu: Add python-rauth Efraim Flashner
2015-12-03 19:26   ` Efraim Flashner
2015-12-04  9:53   ` Ricardo Wurmus
2015-12-07 19:27     ` Efraim Flashner
2015-12-11 14:23       ` Ricardo Wurmus
2015-12-27 10:15         ` Efraim Flashner
2016-01-04 16:04           ` Ludovic Courtès
2015-12-03 14:43 ` [PATCH 08/10] gnu: Add python-pyasn1-modules Efraim Flashner
2015-12-07 19:28   ` Efraim Flashner
2015-12-11 14:29     ` Ricardo Wurmus
2015-12-27 10:13       ` Efraim Flashner
2016-01-04 16:04         ` Ludovic Courtès
2015-12-03 14:43 ` [PATCH 09/10] gnu: Add python2-functools32 Efraim Flashner
2015-12-04 10:00   ` Ricardo Wurmus
2015-12-07 19:28     ` Efraim Flashner
2015-12-11 14:30       ` Ricardo Wurmus
2015-12-27 10:12         ` Efraim Flashner
2015-12-30 14:11           ` Ricardo Wurmus
2016-01-04 16:05             ` Ludovic Courtès
2015-12-03 14:43 ` [PATCH 10/10] gnu: Add git-annex-remote-hubic Efraim Flashner
2015-12-04  9:57   ` Ricardo Wurmus
2015-12-07 19:30     ` Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151207212552.402adeda@debian-netbook \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).