unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 5/18] gnu: Add python-pytest-xdist.
@ 2016-02-15 23:27 Christopher Allan Webber
  2016-02-20  2:31 ` Christopher Allan Webber
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-15 23:27 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0005-gnu-Add-python-pytest-xdist.patch --]
[-- Type: text/x-patch, Size: 2131 bytes --]

From 48c2f5da6570880ff9ccfca5c11b809cbb47965e Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Sat, 13 Feb 2016 18:11:47 -0800
Subject: [PATCH 05/18] gnu: Add python-pytest-xdist.

* gnu/packages/python.scm (python-pytest-xdist, python2-pytest-xdist):
  New variables.
---
 gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 29efce5..3ef552d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1665,6 +1665,42 @@ supports coverage of subprocesses.")
 (define-public python2-pytest-runner
   (package-with-python2 python-pytest-runner))
 
+(define-public python-pytest-xdist
+  (package
+    (name "python-pytest-xdist")
+    (version "1.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest-xdist" version ".zip"))
+       (sha256
+        (base32
+         "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("unzip" ,unzip)))
+    (inputs
+     `(("python-setuptools" ,python-setuptools)
+       ("python-setuptools-scm" ,python-setuptools-scm)
+       ("python-execnet" ,python-execnet)
+       ("python-pytest" ,python-pytest)
+       ("python-py" ,python-py)))
+    (home-page
+     "https://github.com/pytest-dev/pytest-xdist")
+    (synopsis
+     "Plugin for py.test with distributed testing and loop-on-failing modes")
+    (description
+     "The pytest-xdist plugin extends py.test with some unique test execution
+modes: parallelization, running tests in boxed subprocesses, the ability
+to run tests repeatedly when failed, and the ability to run tests on multiple
+Python interpreters or platforms.  It uses rsync to copy the existing
+program code to a remote location, executes there, and then syncs the
+result back.")
+    (license license:expat)))
+
+(define-public python2-pytest-xdist
+  (package-with-python2 python-pytest-xdist))
+
 (define-public python-scripttest
   (package
     (name "python-scripttest")
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 5/18] gnu: Add python-pytest-xdist.
  2016-02-15 23:27 [PATCH 5/18] gnu: Add python-pytest-xdist Christopher Allan Webber
@ 2016-02-20  2:31 ` Christopher Allan Webber
  2016-02-20  4:40   ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-20  2:31 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 10 bytes --]

Updated.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0004-gnu-Add-python-pytest-xdist.patch --]
[-- Type: text/x-diff, Size: 2143 bytes --]

From 5930defefa4c7966afd1c20f66d22c8b95bf024f Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Sat, 13 Feb 2016 18:11:47 -0800
Subject: [PATCH 04/18] gnu: Add python-pytest-xdist.

* gnu/packages/python.scm (python-pytest-xdist, python2-pytest-xdist):
  New variables.
---
 gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a5d42f5..a6823bc 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1665,6 +1665,42 @@ supports coverage of subprocesses.")
 (define-public python2-pytest-runner
   (package-with-python2 python-pytest-runner))
 
+(define-public python-pytest-xdist
+  (package
+    (name "python-pytest-xdist")
+    (version "1.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest-xdist" version ".zip"))
+       (sha256
+        (base32
+         "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("unzip" ,unzip)))
+    (propagated-inputs
+     `(("python-setuptools" ,python-setuptools)
+       ("python-setuptools-scm" ,python-setuptools-scm)
+       ("python-execnet" ,python-execnet)
+       ("python-pytest" ,python-pytest)
+       ("python-py" ,python-py)))
+    (home-page
+     "https://github.com/pytest-dev/pytest-xdist")
+    (synopsis
+     "Plugin for py.test with distributed testing and loop-on-failing modes")
+    (description
+     "The pytest-xdist plugin extends py.test with some unique test execution
+modes: parallelization, running tests in boxed subprocesses, the ability
+to run tests repeatedly when failed, and the ability to run tests on multiple
+Python interpreters or platforms.  It uses rsync to copy the existing
+program code to a remote location, executes there, and then syncs the
+result back.")
+    (license license:expat)))
+
+(define-public python2-pytest-xdist
+  (package-with-python2 python-pytest-xdist))
+
 (define-public python-scripttest
   (package
     (name "python-scripttest")
-- 
2.6.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 5/18] gnu: Add python-pytest-xdist.
  2016-02-20  2:31 ` Christopher Allan Webber
@ 2016-02-20  4:40   ` Leo Famulari
  2016-02-22  2:57     ` Christopher Allan Webber
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-02-20  4:40 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

On Fri, Feb 19, 2016 at 06:31:28PM -0800, Christopher Allan Webber wrote:
> Updated.
> 

> From 5930defefa4c7966afd1c20f66d22c8b95bf024f Mon Sep 17 00:00:00 2001
> From: Christopher Allan Webber <cwebber@dustycloud.org>
> Date: Sat, 13 Feb 2016 18:11:47 -0800
> Subject: [PATCH 04/18] gnu: Add python-pytest-xdist.
> 
> * gnu/packages/python.scm (python-pytest-xdist, python2-pytest-xdist):
>   New variables.
> ---
>  gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index a5d42f5..a6823bc 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -1665,6 +1665,42 @@ supports coverage of subprocesses.")
>  (define-public python2-pytest-runner
>    (package-with-python2 python-pytest-runner))
>  
> +(define-public python-pytest-xdist
> +  (package
> +    (name "python-pytest-xdist")
> +    (version "1.14")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "pytest-xdist" version ".zip"))
> +       (sha256
> +        (base32
> +         "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))))
> +    (build-system python-build-system)
> +    (native-inputs
> +     `(("unzip" ,unzip)))
> +    (propagated-inputs
> +     `(("python-setuptools" ,python-setuptools)
> +       ("python-setuptools-scm" ,python-setuptools-scm)
> +       ("python-execnet" ,python-execnet)
> +       ("python-pytest" ,python-pytest)
> +       ("python-py" ,python-py)))

I see how it could make sense for a testing program, but I just want to
be sure; should setuptools and pytest be propagated?

> +    (home-page
> +     "https://github.com/pytest-dev/pytest-xdist")
> +    (synopsis
> +     "Plugin for py.test with distributed testing and loop-on-failing modes")
> +    (description
> +     "The pytest-xdist plugin extends py.test with some unique test execution
> +modes: parallelization, running tests in boxed subprocesses, the ability
> +to run tests repeatedly when failed, and the ability to run tests on multiple
> +Python interpreters or platforms.  It uses rsync to copy the existing
> +program code to a remote location, executes there, and then syncs the
> +result back.")
> +    (license license:expat)))
> +
> +(define-public python2-pytest-xdist
> +  (package-with-python2 python-pytest-xdist))
> +
>  (define-public python-scripttest
>    (package
>      (name "python-scripttest")
> -- 
> 2.6.3
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 5/18] gnu: Add python-pytest-xdist.
  2016-02-20  4:40   ` Leo Famulari
@ 2016-02-22  2:57     ` Christopher Allan Webber
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-22  2:57 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari writes:

> On Fri, Feb 19, 2016 at 06:31:28PM -0800, Christopher Allan Webber wrote:
>> Updated.
>> 
>
>> From 5930defefa4c7966afd1c20f66d22c8b95bf024f Mon Sep 17 00:00:00 2001
>> From: Christopher Allan Webber <cwebber@dustycloud.org>
>> Date: Sat, 13 Feb 2016 18:11:47 -0800
>> Subject: [PATCH 04/18] gnu: Add python-pytest-xdist.
>> 
>> * gnu/packages/python.scm (python-pytest-xdist, python2-pytest-xdist):
>>   New variables.
>> ---
>>  gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++
>>  1 file changed, 36 insertions(+)
>> 
>> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
>> index a5d42f5..a6823bc 100644
>> --- a/gnu/packages/python.scm
>> +++ b/gnu/packages/python.scm
>> @@ -1665,6 +1665,42 @@ supports coverage of subprocesses.")
>>  (define-public python2-pytest-runner
>>    (package-with-python2 python-pytest-runner))
>>  
>> +(define-public python-pytest-xdist
>> +  (package
>> +    (name "python-pytest-xdist")
>> +    (version "1.14")
>> +    (source
>> +     (origin
>> +       (method url-fetch)
>> +       (uri (pypi-uri "pytest-xdist" version ".zip"))
>> +       (sha256
>> +        (base32
>> +         "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))))
>> +    (build-system python-build-system)
>> +    (native-inputs
>> +     `(("unzip" ,unzip)))
>> +    (propagated-inputs
>> +     `(("python-setuptools" ,python-setuptools)
>> +       ("python-setuptools-scm" ,python-setuptools-scm)
>> +       ("python-execnet" ,python-execnet)
>> +       ("python-pytest" ,python-pytest)
>> +       ("python-py" ,python-py)))
>
> I see how it could make sense for a testing program, but I just want to
> be sure; should setuptools and pytest be propagated?

It seems they're fine as native-inputs, so I made that change.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-22  2:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15 23:27 [PATCH 5/18] gnu: Add python-pytest-xdist Christopher Allan Webber
2016-02-20  2:31 ` Christopher Allan Webber
2016-02-20  4:40   ` Leo Famulari
2016-02-22  2:57     ` Christopher Allan Webber

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).