-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
84 lines (75 loc) · 2.22 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
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
[tool.poetry]
name = "arkitema-config"
version = "0.1.7"
description = "Configurations for Arkitema FastAPI apps"
authors = ["Christian Kongsgaard <chrk@arkitema.com>"]
repository = "https://github.com/Arkitema/backend-config"
license = "Apache-2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = "*"
strawberry-graphql = {extras = ["fastapi"], version = ">=0.164.0"}
fastapi-azure-auth = ">=4.0.0"
aiocache = "*"
SQLAlchemy = {version = ">=1.4.35", extras = ["asyncio"], optional = true}
sqlmodel = {version = ">=0.0.8", optional = true }
asyncpg = {version = "^0.26.0", optional = true }
msgraph-core = "*"
sendgrid = "*"
requests = "*"
opentelemetry-api = "*"
opentelemetry-sdk = "*"
prometheus-client = "*"
opentelemetry-exporter-otlp = "*"
opentelemetry-instrumentation-fastapi = "*"
opentelemetry-instrumentation-logging = "*"
[tool.poetry.group.dev.dependencies]
pytest = "^7.0"
pytest-env = "*"
pytest_httpx = "*"
pytest-asyncio = "*"
black = "==23.1.0"
isort = "==5.12.0"
pytest-mock = "^3.10.0"
[tool.poetry.extras]
database = ["SQLAlchemy", "sqlmodel", "asyncpg"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py311']
[tool.isort]
profile = "black"
line_length = 120
py_version = "311"
src_paths = ["src", "tests"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = "src"
testpaths = ["tests/"]
env = [
"SERVER_NAME=Arkitema Test",
"SERVER_HOST=http://api.arkitema.com",
"POSTGRES_HOST=localhost",
"POSTGRES_USER=postgresuser",
"POSTGRES_PASSWORD=mypassword",
"POSTGRES_DB=arkitema",
"POSTGRES_PORT=5632",
"AAD_OPENAPI_CLIENT_ID=PALCEHOLDER",
"AAD_APP_CLIENT_ID=PALCEHOLDER",
"AAD_TENANT_ID=PALCEHOLDER",
"AAD_TEST_CLIENT_SECRET=PALCEHOLDER",
"STORAGE_ACCOUNT_URL=PALCEHOLDER",
"ROUTER_URL=http://router.url",
"STORAGE_CONTAINER_NAME=PALCEHOLDER",
"STORAGE_ACCESS_KEY=PLACEHOLDER",
"STORAGE_BASE_PATH=test",
"SPECKLE_TOKEN=PALCEHOLDER",
"AAD_GRAPH_SECRET=PLACEHOLDER",
"DEFAULT_AD_FQDN=PLACEHOLDER",
"SENDGRID_SECRET=c2VjcmV0",
"EMAIL_NOTIFICATION_FROM=no-reply@arkitema.com",
"INTERNAL_EMAIL_DOMAINS_LIST=arkitema,cowi,cowicloud",
]