Skip to content

Commit 3fddf62

Browse files
author
Zerline
committed
Merge branch 'master' into develop
2 parents 3dd5b50 + 2b49ea8 commit 3fddf62

File tree

4 files changed

+28
-5
lines changed

4 files changed

+28
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ js/node_modules/
1414
package-lock.json
1515
*.[1-9]
1616
*.print
17+
/.tox

README.rst

+10-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Also :
1818

1919
Installation
2020
------------
21+
Assuming your pip install on Python3:
2122

22-
$ pip3 install sage_combinat_widgets
23-
23+
$ pip install sage_combinat_widgets
2424

2525
Local install from source
2626
^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -35,6 +35,10 @@ Change to the root directory and run::
3535

3636
NB: 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+
3842
Usage
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+
6977
Documentation
7078
-------------
7179

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def readfile(filename):
2727
# For the tests
2828
class 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

tox.ini

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)