forked from python-discord/site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pipfile
62 lines (53 loc) · 1.62 KB
/
Pipfile
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
50
51
52
53
54
55
56
57
58
59
60
61
62
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
flask = "==0.12.4"
rethinkdb = "*"
requests = "*"
gevent = "==1.2.2"
gevent-websocket = "*"
wsaccel = "*"
ujson = "*"
schema = "*"
flask-sockets = "*"
flask-dance = "*"
logmatic-python = "*"
flask-wtf = "*"
docutils = "*"
pygments = "*"
gunicorn = "*"
kombu = "*"
librabbitmq = "*"
[dev-packages]
"flake8" = "*"
"flake8-bugbear" = "*"
"flake8-bandit" = "*"
"flake8-import-order" = "*"
"flake8-tidy-imports" = "*"
"flake8-string-format" = "*"
requests = "*"
flask-testing = "*"
pytest = "*"
pytest-cov = "*"
libsass = "*"
[requires]
python_version = "3.6"
[scripts]
build = "docker build -t pythondiscord/site:latest -f docker/Dockerfile ."
buildci = "docker build -t pythondiscord/site-ci:latest -f docker/ci.Dockerfile ."
buildbase = "docker build -t pythondiscord/site-base:latest -f docker/Dockerfile.base ."
buildjs = "gulp"
buildscss = "python scss.py scss/pysite:scss/pysite/style.scss:static/css/style.css scss/uikit:scss/uikit/uikit_blurple.scss:static/css/uikit_blurple.css"
clean = "rm -rf __pycache__ htmlcov .coverage .pytest_cache"
fixjs = "eslint static/js --fix"
start = "gunicorn -w 12 -b 0.0.0.0:10012 -c gunicorn_config.py --log-level info -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker app:app"
lint = "python -m flake8"
lintjs = "eslint js/src"
lintscss = "scss-lint scss/pysite"
push = "docker push pythondiscord/site:latest"
pushbase = "docker push pythondiscord/site-base:latest"
pushci = "docker push pythondiscord/site-ci:latest"
rundev = "python app.py"
test = "py.test tests --cov pysite --cov-report term-missing -v"