-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
59 lines (52 loc) · 1.62 KB
/
pyproject.toml
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
[tool.poetry]
name = "iscc-web"
version = "0.2.0"
description = "ISCC - Generator Web Application"
authors = ["Titusz <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/iscc/iscc-web"
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
blacksheep = "^1.2"
uvicorn = "^0.18"
aiofiles = "^22.1"
iscc-sdk = "0.5.1"
httpx = "^0.23"
pathvalidate = "^2.5"
aiofile = "^3.8"
jinja2-simple-tags = "^0.4"
gunicorn = "^20.1"
sentry-sdk = "^1.9"
watchfiles = "^0.17.0"
[tool.poetry.scripts]
iscc-web = 'iscc_web.main:main'
[tool.poetry.group.dev.dependencies]
pytest = "^7.1"
black = "^22.8"
poethepoet = "^0.16"
pytest-asyncio = "^0.19"
schemathesis = "^3.17"
datamodel-code-generator = "^0.13"
iscc-samples = "^0.4"
[tool.black]
line-length = 100
target-version = ['py38']
preview = true
[tool.datamodel-codegen]
input = "iscc_web/static/docs/openapi.yaml"
output = "iscc_web/api/schema.py"
encoding = "UTF-8"
disable-timestamp = true
target-python-version = "3.8"
[tool.poe.tasks]
formatopenapi = { cmd = "poetry run python -m develop.format_openapi", help = "Reformat openapi.yaml"}
codegen = { cmd = "datamodel-codegen", help="Build code from OpenAPI Schema"}
format = { cmd = "poetry run black .", help = "Code style formating with black" }
lf = { cmd = "poetry run python -m develop.lf", help = "Convert line endings to LF" }
test = { cmd = "poetry run pytest", help = "Run tests" }
run = { cmd = "uvicorn iscc_web.asgi:application --reload", help = "Run dev server"}
all = ["formatopenapi", "codegen", "format", "lf", "test"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"