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

Commit 6a242cb

Browse files
authored
Merge branch 'master' into dynamic_problems
2 parents c895d19 + f037a36 commit 6a242cb

File tree

161 files changed

+23686
-10970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+23686
-10970
lines changed

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
jquery: true,
6+
},
7+
extends: "eslint:recommended",
8+
parserOptions: {
9+
ecmaVersion: 12,
10+
sourceType: "module",
11+
},
12+
rules: {},
13+
globals: {
14+
eBookConfig: "readonly",
15+
},
16+
};

.flake8

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[flake8]
2+
max-line-length=88
3+
ignore=F821,
4+
W503,
5+
E203, # space before :
6+
E501,
7+
E265,
8+
E266, # too many #
9+
E711,
10+
E712 # web2py needs to compare to == True or == False for queries
11+
12+
builtins=settings,
13+
request,
14+
response,
15+
db,
16+
auth,
17+
redirect,
18+
XML,
19+
URL,
20+
T,
21+
HTTP,
22+
cache,
23+
gluon,
24+
verifyInstructorStatus

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# *********
2+
# |docname|
3+
# *********
14
# These are supported funding model platforms
25

36
#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on:
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
env:
16+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
17+
strategy:
18+
matrix:
19+
python-version: ["3.7", "3.8"]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2.1.2
24+
- uses: act10ns/slack@v1
25+
with:
26+
status: starting
27+
channel: "#builds"
28+
if: always()
29+
30+
- name: Setup npm and build runestone.js
31+
id: create-runestone-bundle
32+
run: |
33+
npm install
34+
npm run build
35+
- name: Set up Python ${{ matrix.python-version }}
36+
id: install-python
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
- name: Install dependencies
41+
id: install-deps
42+
run: |
43+
python -m pip install --upgrade pip
44+
python -m pip install flake8 pytest
45+
pip install .
46+
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
47+
- name: Test with pytest
48+
id: pytest
49+
run: |
50+
pytest
51+
52+
- uses: act10ns/slack@v1
53+
with:
54+
status: ${{ job.status }}
55+
steps: ${{ toJson(steps) }}
56+
channel: "#builds"
57+
if: always()

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# *********
2+
# |docname|
3+
# *********
14
*.py[cod]
25
*.log
36
.venv
@@ -62,3 +65,4 @@ runestone/.DS_Store
6265
runestone/assess/.DS_Store
6366
.DS_Store
6467
.history
68+
.nova

.readthedocs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# ********************************************
2+
# |docname| - Read the Docs configuration file
3+
# ********************************************
4+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
5+
6+
# Required
7+
version: 2
8+
9+
# TODO: need some way to invoke a runestone build. Idea: a mock conf.py that runs the build in a subprocess.
10+
sphinx:
11+
configuration: conf.py
12+
13+
# Optionally set the version of Python and requirements required to build your docs
14+
python:
15+
version: 3.8
16+
install:
17+
- method: pip
18+
path: .

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# *********
2+
# |docname|
3+
# *********
14
dist: xenial
25
language: python
36
python:
@@ -8,7 +11,7 @@ install: "npm install"
811

912
script:
1013
- export LANG=en_US.UTF-8
11-
- wget https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip
14+
- wget https://chromedriver.storage.googleapis.com/83.0.4103.39/chromedriver_linux64.zip
1215
- unzip chromedriver_linux64.zip
1316
- sudo apt-get -y update
1417
- sudo apt-get -y install google-chrome-stable

ACKNOWLEDGEMENTS.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
Runestone Interactive would never have come to life without many other open source projects and people. This is an attempt to ackowledge those projects and people.
1+
****************
2+
Acknowledgements
3+
****************
4+
Runestone Interactive would never have come to life without many other open source projects and people. This is an attempt to acknowledge those projects and people.
25

36

47
* CodeLens -- Philip Guo and the Python Tutor Project -- pythontutor.come
5-
* ActiveCode -- The Skulpt project -- skulpt.org
6-
* Parson's Problems -- Ville Karavirta and the team at Georgia Tech who has added tons
7-
* showEval -- Al Sweigart
8+
* ActiveCode -- The Skulpt project -- skulpt.org
9+
* Parson's Problems -- Ville Karavirta and the team at Georgia Tech who has added tons
10+
* showEval -- Al Sweigart
811
* Short Answer -- Cory Bart at Virginia Tech
912
* the Blockly project @ Google
1013
* The Sphinx and Docutils projects
1114

1215
Luther College
13-
--------------
16+
==============
1417
* Brad Miller
1518
* David Ranum
1619
* Roman Yasinovskyy
@@ -25,8 +28,7 @@ Luther College
2528
* Tyler Conzett
2629

2730
Georgia Tech
28-
------------
29-
31+
============
3032
* Barbara Ericson
3133
* Mark Guzdial
3234
* Jeff Rick
@@ -35,13 +37,11 @@ Georgia Tech
3537
* Matt Moldovan
3638

3739
University of Michigan
38-
----------------------
39-
40+
======================
4041
* Paul Resnick
4142
* Jackie Cohen
4243
* Charles Severence
4344

4445
Mississippi State University
45-
----------------------------
46-
46+
============================
4747
* Bryan Jones

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# *********
2+
# |docname|
3+
# *********
14
graft runestone
25
include requirements.txt
36
include README.md

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RunestoneComponents
1212
.. image:: https://travis-ci.com/RunestoneInteractive/RunestoneComponents.svg?branch=master
1313
:target: https://travis-ci.com/RunestoneInteractive/RunestoneComponents
1414

15+
.. image:: https://github.com/RunestoneInteractive/RunestoneComponents/workflows/Python%20package/badge.svg
1516

1617
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.
1718

@@ -108,7 +109,7 @@ Developing and Hacking
108109

109110
So, you would like to help out with developing the Runestone Components. Great We welcome all the help we can get. There is plenty to do no matter what your experience level. There are a couple of prerequisites.
110111

111-
1. You will need a version of Python, I recommend at least 3.7 or higher.
112+
1. You will need a version of Python, I currently develop on 3.8 or higher, but test on 3.7 and later.
112113
2. You will need nodejs and npm as well since there is a LOT of Javascript code in the components.
113114

114115
To get everything set up do the following

0 commit comments

Comments
 (0)