/
pavement.py
42 lines (36 loc) · 1.19 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
import paver
from paver.easy import *
import paver.setuputils
paver.setuputils.install_distutils_tasks()
import os, sys
from runestone.server import get_dburl
from sphinxcontrib import paverutils
sys.path.append(os.getcwd())
home_dir = os.getcwd()
master_url = 'http://127.0.0.1:8000'
master_app = 'runestone'
serving_dir = "./build/STAT489"
dest = "../../static"
options(
sphinx = Bunch(docroot=".",),
build = Bunch(
builddir="./build/STAT489",
sourcedir="_sources",
outdir="./build/STAT489",
confdir=".",
project_name = "STAT489",
template_args={'course_id': 'STAT489',
'login_required':'false',
'appname':master_app,
'loglevel': 0,
'course_url':master_url,
'use_services': 'false',
'python3': 'true',
'dburl': '',
'basecourse': 'STAT489'
}
)
)
# If DBUSER etc. are in the environment override dburl
options.build.template_args['dburl'] = get_dburl(outer=locals())
from runestone import build # build is called implicitly by the paver driver.