aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
blob: 0c5761e1cf682a392a938b072a9eda013c907c12 (plain) (blame)
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
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
pika = "*"
docker = "*"

[dev-packages]
flask = "*"
flask-sockets = "*"
gevent = "==1.2.2"
gevent-websocket = "*"
gunicorn = "*"
"flake8" = "*"
pytest = "*"
pytest-cov = "*"
pytest-dependency = "*"

[requires]
python_version = "3.6"

[scripts]
lint = "flake8"
test = "py.test tests --cov . --cov-report term-missing -v"
report = "py.test tests --cov . --cov-report=html"

snekbox = "python snekbox.py"
snekweb = "gunicorn -w 2 -b 0.0.0.0:5000 --log-level debug -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker snekweb:app"

buildbox = "docker build -t pythondiscord/snekbox:latest -f docker/Dockerfile ."
pushbox = "docker push pythondiscord/snekbox:latest"

buildboxbase = "docker build -t pythondiscord/snekbox-base:latest -f docker/base.Dockerfile ."
pushboxbase = "docker push pythondiscord/snekbox-base:latest"

buildweb = "docker build -t pythondiscord/snekboxweb:latest -f docker/Dockerfile.webapp ."
pushweb = "docker push pythondiscord/snekboxweb:latest"