Skip to content

Commit 11902d3

Browse files
committed
moving dependency install to a setup command
1 parent 284dbdd commit 11902d3

2 files changed

Lines changed: 33 additions & 18 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
from __future__ import absolute_import, print_function, unicode_literals
2+
3+
import sys
4+
import unittest
5+
6+
from wolframclient.cli.utils import SimpleCommand
7+
from wolframclient.utils import six
8+
from wolframclient.utils.decorators import to_tuple
9+
from wolframclient.utils.functional import map
10+
from wolframclient.utils.importutils import module_path
11+
12+
13+
@to_tuple
14+
def dependencies():
15+
yield ("pytz", "2018.6")
16+
if not six.JYTHON:
17+
yield ("numpy", not six.PY2 and "1.15.3" or None)
18+
yield ("pillow", "7.1.2")
19+
yield ("requests", "2.20.0")
20+
yield ("oauthlib", "2.1.0")
21+
yield ("pyzmq", "17.1.2")
22+
yield ("pandas", "1.0.4")
23+
yield ("unittest-xml-reporting", None)
24+
if not six.PY2:
25+
yield ("aiohttp", "3.6.2")
26+
27+
28+
class Command(SimpleCommand):
29+
""" Run test suites from the tests modules.
30+
A list of patterns can be provided to specify the tests to run.
31+
"""
32+
33+
dependencies = dependencies()

wolframclient/cli/commands/test.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,13 @@
99
from wolframclient.utils.functional import map
1010
from wolframclient.utils.importutils import module_path
1111

12-
13-
# @to_tuple
14-
# def dependencies():
15-
# yield ("pytz", "2018.6")
16-
#
17-
# if not six.JYTHON:
18-
# yield ("numpy", not six.PY2 and "1.15.3" or None)
19-
# yield ("pillow", "7.1.2")
20-
# yield ("requests", "2.20.0")
21-
# yield ("oauthlib", "2.1.0")
22-
# yield ("pyzmq", "17.1.2")
23-
# yield ("pandas", "1.0.4")
24-
# yield ("unittest-xml-reporting", None)
25-
# if not six.PY2:
26-
# yield ("aiohttp", "3.6.2")
27-
28-
2912
class Command(SimpleCommand):
3013
""" Run test suites from the tests modules.
3114
A list of patterns can be provided to specify the tests to run.
3215
"""
3316

3417
modules = ["wolframclient.tests"]
3518

36-
dependencies = ()
3719

3820
def add_arguments(self, parser):
3921
parser.add_argument(

0 commit comments

Comments
 (0)