Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 711033c

Browse files
committed
Merge branch 'master' of ssh://rsdev/home/bmiller/Runestone/RunestoneComponents into bookserver
2 parents 723cb34 + 4fb1012 commit 711033c

7 files changed

Lines changed: 8785 additions & 90 deletions

File tree

README.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ RunestoneComponents
99
:target: https://pypi.python.org/pypi/Runestone
1010
:alt: PyPI Monthly downloads
1111

12-
.. image:: https://travis-ci.com/RunestoneInteractive/RunestoneComponents.svg?branch=master
13-
:target: https://travis-ci.com/RunestoneInteractive/RunestoneComponents
14-
1512
.. image:: https://github.com/RunestoneInteractive/RunestoneComponents/workflows/Python%20package/badge.svg
1613

1714
Packaging of the Runestone components for publishing educational materials using Sphinx and restructuredText. Check out the `Overview <http://interactivepython.org/runestone/static/overview/overview.html>`_ To see all of the extensions in action.

package-lock.json

Lines changed: 8732 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements-dev.txt

Lines changed: 33 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,66 +5,62 @@
55
# pip-compile --output-file=requirements-dev.txt requirements-dev.in requirements.in
66
#
77
alabaster==0.7.12 # via sphinx
8-
astroid==2.4.1 # via pylint
9-
attrs==19.3.0 # via pytest
10-
babel==2.8.0 # via sphinx
11-
bleach==3.1.5 # via readme-renderer
12-
certifi==2020.4.5.1 # via requests
13-
cffi==1.14.0 # via cryptography
14-
chardet==3.0.4 # via requests
8+
astroid==2.4.2 # via pylint
9+
attrs==20.3.0 # via pytest
10+
babel==2.9.0 # via sphinx
11+
bleach==3.2.1 # via readme-renderer
12+
certifi==2020.12.5 # via requests
13+
chardet==4.0.0 # via requests
1514
click==7.1.2 # via -r requirements.in, pip-tools
16-
codechat==1.8.2 # via -r requirements.in
15+
codechat==1.8.3 # via -r requirements.in
1716
cogapp==3.0.0 # via -r requirements.in
18-
cryptography==2.9.2 # via secretstorage
17+
colorama==0.4.4 # via twine
1918
docutils==0.16 # via codechat, readme-renderer, sphinx
2019
easyprocess==0.3 # via pyvirtualdisplay
21-
idna==2.9 # via requests
20+
idna==2.10 # via requests
2221
imagesize==1.2.0 # via sphinx
23-
isort==4.3.21 # via pylint
24-
jeepney==0.4.3 # via keyring, secretstorage
22+
iniconfig==1.1.1 # via pytest
23+
isort==5.6.4 # via pylint
2524
jinja2==2.11.2 # via sphinx
26-
keyring==21.2.1 # via twine
25+
keyring==21.5.0 # via twine
2726
lazy-object-proxy==1.4.3 # via astroid
28-
lxml==4.5.1 # via codechat
27+
lxml==4.6.2 # via codechat
2928
markupsafe==1.1.1 # via jinja2
3029
mccabe==0.6.1 # via pylint
31-
more-itertools==8.3.0 # via pytest
32-
packaging==20.4 # via bleach, pytest, sphinx
30+
packaging==20.8 # via bleach, pytest, sphinx
3331
paver==1.3.4 # via -r requirements.in, sphinxcontrib-paverutils
34-
pip-tools==5.2.0 # via -r requirements-dev.in
35-
pkginfo==1.5.0.1 # via twine
32+
pip-tools==5.4.0 # via -r requirements-dev.in
33+
pkginfo==1.6.1 # via twine
3634
pluggy==0.13.1 # via pytest
37-
py==1.8.1 # via pytest
38-
pycparser==2.20 # via cffi
39-
pygments==2.6.1 # via codechat, readme-renderer, sphinx
40-
pylint==2.5.2 # via -r requirements-dev.in
35+
py==1.10.0 # via pytest
36+
pygments==2.7.3 # via codechat, readme-renderer, sphinx
37+
pylint==2.6.0 # via -r requirements-dev.in
4138
pyparsing==2.4.7 # via packaging
42-
pytest==5.4.2 # via -r requirements-dev.in
43-
pytz==2020.1 # via babel
44-
pyvirtualdisplay==1.0 # via -r requirements-dev.in
45-
readme-renderer==26.0 # via -r requirements-dev.in, twine
39+
pytest==6.2.1 # via -r requirements-dev.in
40+
pytz==2020.4 # via babel
41+
pyvirtualdisplay==1.3.2 # via -r requirements-dev.in
42+
readme-renderer==28.0 # via -r requirements-dev.in, twine
4643
requests-toolbelt==0.9.1 # via twine
47-
requests==2.23.0 # via requests-toolbelt, sphinx, twine
48-
secretstorage==3.1.2 # via keyring
44+
requests==2.25.1 # via requests-toolbelt, sphinx, twine
45+
rfc3986==1.4.0 # via twine
4946
selenium==3.141.0 # via -r requirements-dev.in
50-
six==1.15.0 # via -r requirements.in, astroid, bleach, cryptography, packaging, paver, pip-tools, readme-renderer
47+
six==1.15.0 # via -r requirements.in, astroid, bleach, paver, pip-tools, readme-renderer
5148
snowballstemmer==2.0.0 # via sphinx
52-
sphinx==3.0.4 # via -r requirements.in, sphinxcontrib-paverutils
49+
sphinx==3.3.1 # via -r requirements.in, sphinxcontrib-paverutils
5350
sphinxcontrib-applehelp==1.0.2 # via sphinx
5451
sphinxcontrib-devhelp==1.0.2 # via sphinx
5552
sphinxcontrib-htmlhelp==1.0.3 # via sphinx
5653
sphinxcontrib-jsmath==1.0.1 # via sphinx
5754
sphinxcontrib-paverutils==1.17.0 # via -r requirements.in
5855
sphinxcontrib-qthelp==1.0.3 # via sphinx
5956
sphinxcontrib-serializinghtml==1.1.4 # via sphinx
60-
sqlalchemy==1.3.17 # via -r requirements.in
61-
toml==0.10.1 # via pylint
62-
tqdm==4.46.0 # via twine
63-
twine==3.1.1 # via -r requirements-dev.in
64-
urllib3==1.25.9 # via requests, selenium
65-
wcwidth==0.1.9 # via pytest
57+
sqlalchemy==1.3.21 # via -r requirements.in
58+
toml==0.10.2 # via pylint, pytest
59+
tqdm==4.54.1 # via twine
60+
twine==3.2.0 # via -r requirements-dev.in
61+
urllib3==1.26.2 # via requests, selenium
6662
webencodings==0.5.1 # via bleach
67-
wheel==0.34.2 # via -r requirements-dev.in
63+
wheel==0.36.2 # via -r requirements-dev.in
6864
wrapt==1.12.1 # via astroid
6965

7066
# The following packages are considered to be unsafe in a requirements file:

requirements-test.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

requirements.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@
55
# pip-compile --output-file=requirements.txt requirements.in
66
#
77
alabaster==0.7.12 # via sphinx
8-
babel==2.8.0 # via sphinx
9-
certifi==2020.4.5.1 # via requests
10-
chardet==3.0.4 # via requests
8+
babel==2.9.0 # via sphinx
9+
certifi==2020.12.5 # via requests
10+
chardet==4.0.0 # via requests
1111
click==7.1.2 # via -r requirements.in
12-
codechat==1.8.2 # via -r requirements.in
12+
codechat==1.8.3 # via -r requirements.in
1313
cogapp==3.0.0 # via -r requirements.in
1414
docutils==0.16 # via codechat, sphinx
15-
idna==2.9 # via requests
15+
idna==2.10 # via requests
1616
imagesize==1.2.0 # via sphinx
1717
jinja2==2.11.2 # via sphinx
18-
lxml==4.5.1 # via codechat
18+
lxml==4.6.2 # via codechat
1919
markupsafe==1.1.1 # via jinja2
20-
packaging==20.4 # via sphinx
20+
packaging==20.8 # via sphinx
2121
paver==1.3.4 # via -r requirements.in, sphinxcontrib-paverutils
22-
pygments==2.6.1 # via codechat, sphinx
22+
pygments==2.7.3 # via codechat, sphinx
2323
pyparsing==2.4.7 # via packaging
24-
pytz==2020.1 # via babel
25-
requests==2.23.0 # via sphinx
26-
six==1.15.0 # via -r requirements.in, packaging, paver
24+
pytz==2020.4 # via babel
25+
requests==2.25.1 # via sphinx
26+
six==1.15.0 # via -r requirements.in, paver
2727
snowballstemmer==2.0.0 # via sphinx
28-
sphinx==3.0.4 # via -r requirements.in, sphinxcontrib-paverutils
28+
sphinx==3.3.1 # via -r requirements.in, sphinxcontrib-paverutils
2929
sphinxcontrib-applehelp==1.0.2 # via sphinx
3030
sphinxcontrib-devhelp==1.0.2 # via sphinx
3131
sphinxcontrib-htmlhelp==1.0.3 # via sphinx
3232
sphinxcontrib-jsmath==1.0.1 # via sphinx
3333
sphinxcontrib-paverutils==1.17.0 # via -r requirements.in
3434
sphinxcontrib-qthelp==1.0.3 # via sphinx
3535
sphinxcontrib-serializinghtml==1.1.4 # via sphinx
36-
sqlalchemy==1.3.17 # via -r requirements.in
37-
urllib3==1.25.9 # via requests
36+
sqlalchemy==1.3.21 # via -r requirements.in
37+
urllib3==1.26.2 # via requests
3838

3939
# The following packages are considered to be unsafe in a requirements file:
4040
# setuptools

runestone/activecode/js/activecode.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ export class ActiveCode extends RunestoneBase {
551551
// add an initial load history button
552552
// if there is no edit then there is no append to_save (True/False)
553553
async addHistoryScrubber(pos_last) {
554-
let deferred = Promise.resolve();
554+
let response;
555555
var reqData = {
556556
acid: this.divid,
557557
};
@@ -572,7 +572,7 @@ export class ActiveCode extends RunestoneBase {
572572
body: JSON.stringify(reqData),
573573
});
574574
try {
575-
let response = await fetch(request);
575+
response = await fetch(request);
576576
let data = await response.json();
577577
if (data.history !== undefined) {
578578
this.history = this.history.concat(data.history);
@@ -585,16 +585,9 @@ export class ActiveCode extends RunestoneBase {
585585
} catch (e) {
586586
console.log("unable to fetch history");
587587
}
588-
deferred = new Promise((resolve, reject) => {
589-
try {
590-
this.renderScrubber(pos_last);
591-
resolve("done");
592-
} catch (e) {
593-
reject(e);
594-
}
595-
});
588+
this.renderScrubber(pos_last);
596589
}
597-
return deferred;
590+
return "success";
598591
}
599592

600593
renderScrubber(pos_last) {
@@ -1142,10 +1135,7 @@ Yet another is that there is an internal error. The internal error message is:
11421135

11431136
async manage_scrubber(saveCode) {
11441137
if (this.historyScrubber === null && !this.autorun) {
1145-
let response = await this.addHistoryScrubber();
1146-
if (!response.ok) {
1147-
console.log("Failed to load history -- this should not fail.");
1148-
}
1138+
await this.addHistoryScrubber();
11491139
}
11501140
if (
11511141
this.historyScrubber &&

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
with open("requirements.txt", "r", encoding="utf-8") as fh:
1111
dependencies = [l.strip() for l in fh]
1212

13-
VERSION = "5.5.3"
13+
VERSION = "5.5.4"
1414

1515
# These pre-install hooks are useful to make sure any pre-requisite
1616
# programs that are not pip installable are in place.

0 commit comments

Comments
 (0)