-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
52 lines (46 loc) · 1.27 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
[project]
name = "serie"
version = "0.0.0" # <-- version in pyproject.toml is ignored. Set the version in src/serie/version.txt
description = "Specific Endpoints for Research Integration Events"
authors = [
{ name = "FNNDSC", email = "[email protected]" }
]
dependencies = [
"fastapi>=0.111.1",
"asyncstdlib>=3.12.4",
"pydantic-settings>=2.3.4",
"pydantic>=2",
"aiochris-oag==0.0.1",
]
readme = "README.md"
requires-python = ">= 3.12"
[tool.rye.scripts]
cover = """
sh -c '
docker compose run --remove-orphans --use-aliases test pytest --cov=serie --cov-report=xml --run-integration
docker cp "$(docker compose ps -a test -q | head -n 1):/app/coverage.xml" coverage.xml
sed -i -e "s#/app/serie#$PWD/src/serie#" coverage.xml
'
"""
clean = "docker compose --profile test down -v --remove-orphans"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=8.3.2",
"pytest-asyncio>=0.23.8",
"asyncio>=3.4.3",
"aiohttp>=3.9.5",
"pydicom>=2.4.4",
"asyncer>=0.0.7",
"pynetdicom>=2.1.0",
"docker>=7.1.0",
"pytest-cov>=5.0.0",
"requests>=2.32.3",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/serie", "src/chris"]