GNU bug report logs -
#25834
Update scientific Python packages
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
From: Marius Bakke <mbakke <at> fastmail.com>
Subject: Re: bug#25834: [PATCH] Update scipy stack.
Date: Mon, 06 Mar 2017 14:25:26 +0100
> Please pay attention during the 'check' phase of Python packages --
> both
> colorspacious and the shutils backport prints 'Ran 0 tests in...'.
> Usually this is a sign that they require some other command than
> 'python
> setup.py test', which is the default of python-build-system.
>
> I pushed a fix for python2-backports-shutil-get-terminal-size that
> I had
> in my queue, but it would be nice to enable tests on colorspacious
> as
> well. Any takers? :)
I've attached an attempt (now runs 34 tests). Am I right that
running “nosetests colorspacious/*.py” is the only way to make it run
the tests in this case?
cheers,
Thomas
[0001-gnu-python-colorspacious-Run-tests.patch (text/x-patch, inline)]
From 6714863034f9522512cdf2d45fef402eda00df7c Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <post <at> thomasdanckaert.be>
Date: Mon, 6 Mar 2017 15:33:34 +0100
Subject: [PATCH] gnu: python-colorspacious: Run tests.
* gnu/packages/python.scm (python-colorspacious) [native-inputs]: Add
python-nose. [arguments]: Add custom 'check phase which runs nosetests.
---
gnu/packages/python.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e94aa812b..fa74d1c6f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3841,6 +3841,16 @@ To address this and enable easy cycling over arbitrary @code{kwargs}, the
(build-system python-build-system)
(propagated-inputs
`(("python-numpy" ,python-numpy)))
+ (native-inputs
+ `(("python-nose" ,python-nose)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _ (zero?
+ (apply system*
+ `("nosetests"
+ ,@(find-files "colorspacious" ".*\\.py")))))))))
(home-page "https://github.com/njsmith/colorspacious")
(synopsis "Python library for colorspace conversions")
(description "@code{colorspacious} is a Python library that lets you
--
2.11.1
This bug report was last modified 8 years and 79 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.