File tree Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ js/node_modules/
1414package-lock.json
1515* . [1-9 ]
1616* .print
17+ /.tox
Original file line number Diff line number Diff line change 1818
1919Installation
2020------------
21+ Assuming your pip install on Python3:
2122
22- $ pip3 install sage_combinat_widgets
23-
23+ $ pip install sage_combinat_widgets
2424
2525Local install from source
2626^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -35,6 +35,10 @@ Change to the root directory and run::
3535
3636NB: For this to work, you need a recent `nodejs ` installation.
3737
38+ For use on Jupyterlab, you might also need to install `@jupyter-widgets/jupyterlab-manager `:
39+
40+ $ jupyter labextension @jupyter-widgets/jupyterlab-manager
41+
3842Usage
3943-----
4044
@@ -66,6 +70,10 @@ Shorthand::
6670
6771 $ make test
6872
73+ If you have ``tox `` installed, you can also test the package like this::
74+
75+ $ tox
76+
6977Documentation
7078-------------
7179
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ def readfile(filename):
2727# For the tests
2828class SageTest (TestCommand ):
2929 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" )
3232 if errno != 0 :
3333 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" )
3535 if errno != 0 :
3636 sys .exit (1 )
3737
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