File tree 4 files changed +28
-5
lines changed
4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ js/node_modules/
14
14
package-lock.json
15
15
* . [1-9 ]
16
16
* .print
17
+ /.tox
Original file line number Diff line number Diff line change 18
18
19
19
Installation
20
20
------------
21
+ Assuming your pip install on Python3:
21
22
22
- $ pip3 install sage_combinat_widgets
23
-
23
+ $ pip install sage_combinat_widgets
24
24
25
25
Local install from source
26
26
^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -35,6 +35,10 @@ Change to the root directory and run::
35
35
36
36
NB: For this to work, you need a recent `nodejs ` installation.
37
37
38
+ For use on Jupyterlab, you might also need to install `@jupyter-widgets/jupyterlab-manager `:
39
+
40
+ $ jupyter labextension @jupyter-widgets/jupyterlab-manager
41
+
38
42
Usage
39
43
-----
40
44
@@ -66,6 +70,10 @@ Shorthand::
66
70
67
71
$ make test
68
72
73
+ If you have ``tox `` installed, you can also test the package like this::
74
+
75
+ $ tox
76
+
69
77
Documentation
70
78
-------------
71
79
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ def readfile(filename):
27
27
# For the tests
28
28
class SageTest (TestCommand ):
29
29
def run_tests (self ):
30
- import os
31
- errno = os .system ("sage -t --force-lib sage_widget_adapters" )
30
+ import os , sys
31
+ errno = os .system ("sage -t --force-lib --optional=sage sage_widget_adapters" )
32
32
if errno != 0 :
33
33
sys .exit (1 )
34
- errno = os .system ("sage -t --force-lib sage_combinat_widgets" )
34
+ errno = os .system ("sage -t --force-lib --optional=sage sage_combinat_widgets" )
35
35
if errno != 0 :
36
36
sys .exit (1 )
37
37
Original file line number Diff line number Diff line change
1
+ [tox]
2
+ envlist = sage
3
+ # "setup.py sdist" fails because "devDependencies" from js/package.json are not installed
4
+ skipsdist = true
5
+
6
+ [testenv]
7
+ whitelist_externals = sage
8
+ passenv =
9
+ SAGE_ROOT
10
+ SAGE_LOCAL
11
+ HOME
12
+
13
+ commands =
14
+ sage setup.py test
You can’t perform that action at this time.
0 commit comments