blob: 12fa52b7289f306e50bd870f6776f07c439a325c (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
arrow = "~= 0.17"
attrs = "~= 20.3"
beautifulsoup4 = "~= 4.9"
falcon = "~= 2.0.0"
forbiddenfruit = "~= 0.1"
fuzzywuzzy = "~= 0.18"
gunicorn = "~= 20.0"
jsonschema = "~= 3.2"
lark = "~= 0.10"
more-itertools = "~= 8.6"
networkx = "~= 2.5"
numpy = "~= 1.19"
pandas = "~= 1.1"
pendulum = "~= 2.1"
python-dateutil = "~= 2.8"
python-levenshtein = "~=0.12.0"
pyyaml = "~= 5.3"
scipy = "~= 1.5"
sentry-sdk = {extras = ["falcon"], version = "~= 0.19.3"}
sympy = "~= 1.6"
toml = "~= 0.10"
yarl = "~= 1.6"
[dev-packages]
coverage = "~= 5.3"
flake8 = "~= 3.8.4"
flake8-annotations = "~= 2.4.1"
flake8-bugbear = "~= 20.1"
flake8-docstrings = "~= 1.5"
flake8-formatter-junit-xml = "~= 0.0.6"
flake8-import-order = "~= 0.18.1"
flake8-quotes = "~= 3.2"
flake8-string-format = "~= 0.3.0"
flake8-tidy-imports = "~= 4.1"
flake8-todo = "~= 0.7"
pre-commit = "~= 2.8.2"
pydocstyle = "~= 5.1"
unittest-xml-reporting = "~= 3.0"
[requires]
python_version = "3.9"
[scripts]
lint = "flake8"
precommit = "pre-commit install"
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 -c config/gunicorn.conf.py snekbox.api.app"
devsh = "sh scripts/dev.sh"
build = """
docker build \
-t pythondiscord/snekbox:latest \
-f docker/Dockerfile \
.
"""
buildbase = """
docker build \
-t ghcr.io/python-discord/snekbox-base:latest \
-f docker/Dockerfile \
--target base \
.
"""
buildvenv = """
docker build \
-t ghcr.io/python-discord/snekbox-venv:latest \
-f docker/Dockerfile \
--target venv \
.
"""
builddev = """
docker build \
-t ghcr.io/python-discord/snekbox-venv:dev \
-f docker/Dockerfile \
--target venv \
--build-arg DEV=1 \
.
"""
|