-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpavement.py
49 lines (40 loc) · 1.33 KB
/
pavement.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import paver
from paver.easy import *
import paver.setuputils
paver.setuputils.install_distutils_tasks()
import os, sys
import pkg_resources
sys.path.append(os.getcwd())
sys.path.append('../modules')
######## CHANGE THIS ##########
project_name = "html"
###############################
master_url = 'https://runestone.academy'
master_app = 'runestone'
serving_dir = './build/html'
dest = '../../static'
options(
sphinx = Bunch(docroot=".",),
build = Bunch(
builddir="./build/"+project_name,
sourcedir="source",
outdir="./build/"+project_name,
confdir="source",
project_name = project_name,
template_args = {
'course_id':project_name,
'login_required':'false',
'appname':master_app,
'loglevel':0,
'course_url':master_url,
'use_services': 'false',
'python3': 'true',
'jobe_server': 'https://cryptic-headland-94862.herokuapp.com/http://jobe2.cosc.canterbury.ac.nz',
'proxy_uri_runs': '/jobe/index.php/restapi/runs/',
'proxy_uri_files': '/jobe/index.php/restapi/files/'
}
)
)
version = pkg_resources.require("runestone")[0].version
options.build.template_args['runestone_version'] = version
from runestone import build # build is called implicitly by the paver driver.