aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
diff options
context:
space:
mode:
Diffstat (limited to 'Pipfile')
-rw-r--r--Pipfile91
1 files changed, 60 insertions, 31 deletions
diff --git a/Pipfile b/Pipfile
index 678a3fd..dd17306 100644
--- a/Pipfile
+++ b/Pipfile
@@ -4,42 +4,71 @@ verify_ssl = true
name = "pypi"
[packages]
-pika = "*"
-docker = "*"
-urllib3 = ">=1.24.2,<1.25"
+falcon = "~= 2.0.0"
+gunicorn = "~= 19.9"
+jsonschema = "~= 3.0"
[dev-packages]
-flask = "*"
-flask-sockets = "*"
-gevent = "==1.2.2"
-gevent-websocket = "*"
-gunicorn = "*"
-pytest = "*"
-pytest-cov = "*"
-pytest-dependency = "*"
-pre-commit = "*"
-flake8 = "*"
-flake8-docstrings = "*"
-flake8-bugbear = "*"
-flake8-import-order = "*"
-flake8-tidy-imports = "*"
-flake8-todo = "*"
-flake8-string-format = "*"
-flake8-formatter-junit-xml = "*"
+coverage = ">= 4.4.2, == 4.*"
+pre-commit = "~= 1.18"
+pydocstyle = "~= 4.0"
+flake8 = "~= 3.7.8"
+flake8-docstrings = "~=1.4"
+flake8-bugbear = "~= 19.3"
+flake8-import-order = "~= 0.18.1"
+flake8-tidy-imports = "~= 2.0"
+flake8-todo = "~= 0.7"
+flake8-string-format = "~= 0.2.3"
+flake8-formatter-junit-xml = "~= 0.0.6"
+flake8-quotes = "~= 2.1"
+unittest-xml-reporting = ">= 2.5.1, == 2.*"
[requires]
-python_version = "3.6"
+python_version = "3.7"
[scripts]
lint = "flake8"
precommit = "pre-commit install"
-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"
+test = "sh scripts/dev.sh -c 'pipenv run coverage run -m unittest'"
+testb = """
+ sh scripts/dev.sh \
+ --build \
+ --clean \
+ -c 'pipenv run coverage run -m unittest'
+"""
+report = "coverage report"
+snekbox = """
+ gunicorn \
+ -w 2 \
+ -b 0.0.0.0:8060 \
+ --logger-class snekbox.GunicornLogger \
+ --access-logformat '%(m)s %(U)s%(q)s %(s)s %(b)s %(L)ss' \
+ --access-logfile - \
+ snekbox.api.app
+"""
+devsh = "sh scripts/dev.sh"
+build = """
+ docker build \
+ -t pythondiscord/snekbox:latest \
+ -f docker/Dockerfile \
+ .
+"""
+buildbase = """
+ docker build \
+ -t pythondiscord/snekbox-base:latest \
+ -f docker/base.Dockerfile \
+ .
+"""
+buildvenv = """
+ docker build \
+ -t pythondiscord/snekbox-venv:latest \
+ -f docker/venv.Dockerfile \
+ .
+"""
+builddev = """
+ docker build \
+ -t pythondiscord/snekbox-venv:dev \
+ -f docker/venv.Dockerfile \
+ --build-arg DEV=1 \
+ .
+"""