-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
43 lines (37 loc) · 1.33 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
[tool.poetry]
name = "iscc-flake"
version = "0.2.0"
description = "ISCC - Flake Microservice"
authors = ["Titusz <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/iscc/iscc-flake"
keywords=["iscc", "identifier", "snowflake", "media", "content"]
[tool.poetry.dependencies]
python = ">=3.7,<4.0"
iscc-core = "^0.2"
fastapi = "^0.75"
uvicorn = "^0.17"
jcs = "^0.2.0"
uvloop = { version = "^0.16", optional = true}
[tool.poetry.extras]
uvloop = ["uvloop"]
[tool.poetry.dev-dependencies]
pytest = "^7.1"
poethepoet = "^0.13.1"
black = "^22.3.0"
requests = "^2.27.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
skip-string-normalization = false
line-length = 100
target-version = ['py37']
[tool.poe.tasks]
reqs = { cmd = "poetry export --without-hashes --extras uvloop -o requirements.txt", help = "update requirements.txt"}
format = { cmd = "black .", help = "run black code formatter"}
test = { cmd = "pytest", help = "run tests"}
develop = { cmd = "uvicorn --reload --workers 1 --log-level debug --header server:iscc iscc_flake.main:app", help = "run development server"}
serve = { cmd = "uvicorn --host 0.0.0.0 --port 8080 --workers 1 --loop uvloop --log-level info iscc_flake.main:app", help = "run development server"}
all = ["reqs", "format", "test",]