Commit graph

2153 commits

Author SHA1 Message Date
Eric Bavier
3292219097
gnu: python2: Fix test flags.
Reverts a988393997 in favor of a cleaner
approach.

* gnu/packages/python.scm (python-2.7)[arguments]: 'EXTRATESTOPTS' ->
'TESTOPTS'.  This overrides the default '-l' argument for memory leak checks
which is not compatible with the -j for parallelism.
2019-01-22 22:00:50 -06:00
Christopher Baines
85e4579469
gnu: python-futures: Enable tests.
Re-enable the tests, as the python-2 package now has the support
directory. Also, switch to running the tests via the test_futures.py script to
avoid errors like:

  AttributeError: 'AsCompletedTests' object has no attribute 'executor'

* gnu/packages/python.scm (python2-futures)[arguments]: Run the
test_futures.py script to run the tests.
2019-01-21 19:51:52 +00:00
Christopher Baines
d453b0e11d
gnu: python-2.7: Include /lib/python.../test/support.
Don't remove the support directory from the /lib/python.../test/ directory, as
this is used from the test_support module.

  /gnu/store/...-python2-2.7.15/lib/python2.7/test/test_support.py:2: in <module>
      import test.support
  E   ImportError: No module named support

* gnu/packages/python.scm (python-2.7)[arguments]: Change the 'remove-tests
phase to not remove the support directory.
2019-01-21 19:51:41 +00:00
Eric Bavier
974537fc4c
gnu: python-pycodestyle: Fix build with Python 3.7.
* gnu/packages/patches/python-pycodestyle-stdlib-tokenize-fix.patch: New
patch.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/python.scm (python-pycodestyle)[source]: Use it.
2019-01-14 15:34:54 -06:00
Christopher Baines
a988393997
gnu: python-2.7: Fix build.
The -j flag is passed in through #:make-flags and EXTRATESTOPTS. This is
combined with the TESTOPTS, and in Python 2, that includes the -l flag by
default.

The -l flag, is for finding memory leaks in tests, and is incompatible with
the -j flag, and the build previously failed at the start of the 'check
phase. Therefore, remove the -l flag from the Python 2 testsuite, as it
doesn't sound like a useful thing to do when building the package for Guix.

* gnu/packages/python.scm (python-2.7): Add 'remove-findleaks-from-testopts
phase.
2019-01-13 22:47:29 +00:00
Ludovic Courtès
86974d8a92
Merge branch 'master' into core-updates 2018-12-20 18:39:04 +01:00
Vagrant Cascadian
9f23f6bc2f
gnu: python-pyelftools: Fix tests with python 3.7.
* gnu/packages/python.scm (python-pyelftools)
  [native-inputs]: Remove python-setuptools.
  [arguments]: Add set-pythonpath phase.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2018-12-16 11:55:13 +02:00
Christopher Baines
95ae013092
gnu: python-celery: Update to 4.2.1.
This is an attempt to get the package building after the update to Python
3.7. I'm not sure this totally works, as the tests detect an incompatibility
with Python 3.7 due to use of "async". But with the tests disabled, you can at
least import the celery module, which is a start.

* gnu/packages/python.scm (python-celery): Update to 4.2.1.
[arguments]: Switch to py.test, from nose, disable the tests and loosen the
requirements on pytest.
[native-inputs]: Remove python-nose, add python-pytest and python-case.
[home-page]: Change from HTTP to HTTPS.
2018-12-12 09:03:28 +01:00
Christopher Baines
ae218b75f6
gnu: python-billiard: Update to 3.5.0.5.
This is to enable updating python-celery.

* gnu/packages/python.scm (python-billiard): Update to 3.5.0.5.
[native-inputs]: Remove python-nose, add python-case and python-pytest.
2018-12-12 09:03:27 +01:00
Christopher Baines
f6c19fe8ce
gnu: python-kombu: Update to 4.2.2.
This fixes the build, that probably broke with a Python update.

* gnu/packages/python.scm (python-kombu): Update to 4.2.2..
2018-12-12 09:03:27 +01:00
Christopher Baines
a65a33d070
gnu: python-amqp: Update to 2.3.2.
This is needed to update python-kombu to 4.2.2.

* gnu/packages/python.scm (python-amqp): Update to 2.3.2.
2018-12-12 09:03:27 +01:00
Christopher Baines
9253c42973
gnu: Add python-pyro4.
This is needed to update python-kombu to 4.2.2

* gnu/packages/python.scm (python-pyro4): New variable.
2018-12-12 09:03:27 +01:00
Christopher Baines
2cfcab3aef
gnu: Add python-vine.
This is needed to update python-amqp to 2.3.2.

* gnu/packages/python.scm (python-vine): New variable.
2018-12-12 09:03:27 +01:00
Christopher Baines
679c979f25
gnu: Add python-case.
This is required to update python-amqp and python-kombu, as well as adding
python-vine.

* gnu/packages/python.scm (python-case): New variable.
2018-12-12 09:03:27 +01:00
Christopher Baines
053f3d4857
gnu: Add python-serpent.
This is required for python-pyro4, which is needed to update python-amqp and
python-kombu.

* gnu/packages/python.scm (python-serpent): New variable.
2018-12-12 09:03:26 +01:00
Marius Bakke
b03e4fd526
Merge branch 'master' into core-updates 2018-12-11 22:18:05 +01:00
Rutger Helling
799f5d0df0
gnu: python-gevent: Remove unreliable test.
* gnu/packages/python.scm (python-gevent): Add 'skip-timer-test phase from
python2-gevent.
* gnu/packages/python.scm (python2-gevent): Remove 'skip-timer-test phase,
inherit from python-gevent instead.
2018-12-11 11:47:34 +01:00
Maxim Cournoyer
584d5556d4
gnu: python-jedi: Update to 0.13.1 and disable the tests.
Jedi test suite fails when run with Python 3.7.

* gnu/packages/python.scm (python-jedi): Update to 0.13.1
[tests?] Disable.
[phases] Add condition check for the tests? argument to run the tests.
2018-12-09 16:18:18 -05:00
Christopher Baines
e66c6eb2bc
gnu: python: Update to 3.7.1.
Remove the replacement, as version 3.7.1 includes the fix for this issue.

* gnu/packages/python.scm (python-3.7): Update to 3.7.1.
(python-3/fixed): Remove this.
2018-12-09 10:42:27 +00:00
Marius Bakke
08861d259b
gnu: python-pyaml: Update to 18.11.0.
* gnu/packages/python.scm (python-pyaml): Update to 18.11.0.
2018-12-08 19:37:47 +01:00
Leo Famulari
ca45e49404
gnu: python-unidecode: Update to 1.0.23.
* gnu/packages/python.scm (python-unidecode, python2-unidecode): Update to
1.0.23.
2018-12-03 18:54:50 -05:00
Marius Bakke
635d29c244
gnu: python-scikit-image: Propagate six and numpy.
* gnu/packages/python.scm (python-scikit-image)[native-inputs]: Move
PYTHON-NUMPY and PYTHON-SIX ...
[propagated-inputs]: ... here.
2018-12-03 17:44:14 +01:00
Marius Bakke
fcb5409438
gnu: python-scikit-image: Update to 0.14.1.
Also add explicit Python2 variants for its dependency closure.

* gnu/packages/python.scm (python-scikit-image): Update to 0.14.1.
[source](uri): Use PYPI-URI.
[propagated-inputs]: Add PYTHON-CLOUDPICKLE, PYTHON-DASK, PYTHON-MATPLOTLIB
and PYTHON-PYWAVELETS.
(python2-toolz, python2-cloudpickle, python2-locket, python2-blosc,
python2-partd, python2-dask): New public variables.
2018-12-03 17:44:14 +01:00
Marius Bakke
947ee67d4b
gnu: python-dask: Update to 1.0.0.
* gnu/packages/python.scm (python-dask): Update to 1.0.0.
[arguments]: Disable one test for Python2, and override 'check' phase.
2018-12-03 17:44:14 +01:00
Marius Bakke
03bfbe2f10
gnu: python-cloudpickle: Update to 0.6.1.
* gnu/packages/python.scm (python-cloudpickle): Update to 0.6.1.
2018-12-03 17:44:14 +01:00
Marius Bakke
36c90dda38
gnu: Add python-pywavelets.
* gnu/packages/python.scm (python-pywavelets, python2-pywavelets): New public
variables.
2018-12-03 17:44:14 +01:00
Marius Bakke
aefcdea199
gnu: python-greenlet: Update to 0.4.15.
* gnu/packages/python.scm (python-greenlet): Update to 0.4.15.
2018-12-03 17:44:13 +01:00
Ludovic Courtès
194451347d
Merge branch 'core-updates' 2018-12-03 08:52:17 +01:00
Nicolas Goaziou
b7ed32107b
gnu: python-pip: Update to 18.1.
* gnu/packages/python.scm (python-pip): Update to 18.1.
2018-12-02 09:47:16 +01:00
Nicolas Goaziou
5d7c66a519
gnu: Add python-attr.
* gnu/packages/python.scm (python-attr): New variable.
2018-12-02 01:18:08 +01:00
Nicolas Goaziou
b6aeae6e98
gnu: python-async-timeout: Update to 3.0.1.
* gnu/packages/python.scm (python-async-timeout): Update to 3.0.1.
2018-12-02 00:50:34 +01:00
Marius Bakke
25ca46985c
Merge branch 'master' into core-updates 2018-11-29 15:56:49 +01:00
Ludovic Courtès
312edcd0a1
gnu: python-kivy-next, python2-kivy-next: Deprecate.
As discussed at <https://bugs.gnu.org/33426>.

* gnu/packages/python.scm (python-kivy-next, python2-kivy-next): Mark as
deprecated.
2018-11-27 12:12:33 +01:00
Danny Milosavljevic
5a1ac6138d
gnu: python-tblib: Use invoke.
* gnu/packages/python.scm (python-tblib)[arguments]<#:phases>[check]: Use
invoke.
2018-11-26 20:09:14 +01:00
Ricardo Wurmus
176f1436c7
gnu: python-seaborn: Update to 0.9.0.
* gnu/packages/python.scm (python-seaborn): Update to 0.9.0.
[arguments]: Enable tests.
[propagated-inputs]: Add python-numpy.
[native-inputs]: Add python-pytest and xorg-server.
[properties]: Remove.
(python2-seaborn)[propagated-inputs]: Remove python2-pytz.
2018-11-26 16:53:29 +01:00
Ludovic Courtès
18142e23e8
gnu: python2-gevent: Fix compilation.
* gnu/packages/python.scm (python-gevent)[arguments]: Add (ice-9 match)
to #:modules.  In 'do-not-use-bundled-sources' phase, use 'scandir' to
avoid hard-coded include directory name.
[properties]: New field.
(python2-gevent): Add 'native-inputs' and 'arguments' fields.
2018-11-25 19:08:04 +01:00
Marius Bakke
9b3e11f6a8
gnu: python2-numpy@1.8: Provide "python2-nose".
Also remove other native-inputs since they appear unnecessary.

* gnu/packages/python.scm (python2-numpy-1.8)[native-inputs]: New field.
2018-11-25 16:56:26 +01:00
Marius Bakke
1261804985
gnu: python-pika: Update to 0.12.0.
* gnu/packages/python.scm (python-pika): Update to 0.12.0.
2018-11-24 19:43:18 +01:00
Marius Bakke
45bc4b7ecb
gnu: python2-fasteners: Propagate python2-futures.
* gnu/packages/python.scm (python-fasteners)[properties]: New field.
(python2-fasteners)[propagated-inputs]: Add PYTHON2-FUTURES.
2018-11-24 18:43:07 +01:00
Marius Bakke
366cd7fcba
gnu: python2-futures: Update to 3.2.0.
* gnu/packages/python.scm (python2-futures): Update to 3.2.0.
2018-11-24 18:43:07 +01:00
Marius Bakke
799d4bac62
gnu: python2-futures: Disable tests.
* gnu/packages/python.scm (python2-futures)[arguments]: Set #:test? #f.
2018-11-24 18:43:06 +01:00
Marius Bakke
15b5f9f718
gnu: python-cheetah: Update to 3.1.0.
* gnu/packages/python.scm (python2-cheetah): Rename to ...
(python-cheetah): ... this.  Update to 3.1.0.
[arguments]: Add custom 'check' phase.
[propagated-inputs]: Change PYTHON2-MARKDOWN to PYTHON-MARKDOWN.
(python2-cheetah): Rewrite in terms of PACKAGE-WITH-PYTHON2.
2018-11-24 15:57:56 +01:00
Marius Bakke
59a1aa595b
gnu: python2-cheetah: Update home page.
* gnu/packages/python.scm (python-cheetah)[home-page]: Update to current.
2018-11-24 15:57:56 +01:00
Marius Bakke
4d8f4a3f00
Merge branch 'master' into core-updates 2018-11-24 01:58:18 +01:00
Luther Thompson
dc240b6aa5
gnu: python-ilinkedlist: Update to 0.4.0.
* gnu/packages/python.scm (python-ilinkedlist): Update to 0.4.0.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2018-11-23 20:17:23 +01:00
Ricardo Wurmus
936ea3d664
gnu: python-gevent: Update to 1.3.7.
* gnu/packages/python.scm (python-gevent): Update to 1.3.7.
[arguments]: Find headers for greenlet in phase "do-not-use-bundled-sources".
[propagated-inputs]: Add python-objgraph.
2018-11-23 16:01:21 +01:00
Ricardo Wurmus
72ffb51231
gnu: Add python-objgraph.
* gnu/packages/python.scm (python-objgraph): New variable.
2018-11-23 16:01:07 +01:00
Marius Bakke
437c78bcfb
gnu: python-tblib: Fix test failure with Python 3.7.
* gnu/packages/python.scm (python-tblib)[arguments]: Add 'adjust-tests' phase.
2018-11-22 00:00:44 +01:00
Marius Bakke
148caae049
gnu: python-numpy: Update to 1.15.4.
* gnu/packages/python.scm (python-numpy): Update to 1.15.4.
2018-11-21 23:15:21 +01:00
Marius Bakke
b96386501f
gnu: python-numpy: Update to 1.14.6.
* gnu/packages/python.scm (python-numpy): Update to 1.14.6.
2018-11-21 22:42:25 +01:00