-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
71 lines (63 loc) · 1.96 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
[tool.poetry]
name = "sagemaker-shim"
version = "0.3.5"
description = "Adapts algorithms that implement the Grand Challenge inference API for running in SageMaker"
authors = ["James Meakin <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/DIAGNijmegen/rse-sagemaker-shim"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
]
[tool.poetry.scripts]
sagemaker-shim = "sagemaker_shim.cli:cli"
[tool.poetry.dependencies]
# Only support one version of python at a time
python = "^3.12,<3.13"
fastapi = "!=0.89.0" # See https://github.com/DIAGNijmegen/rse-sagemaker-shim/issues/26
uvicorn = "*"
click = "*"
boto3 = "*"
[tool.poetry.group.dev.dependencies]
pytest = "!=8.0.0" # pytest 8 is not yet supported by pytest-asyncio
docker = "!=7.0.0" # docker 7 breaks building with localhost:port/repo:tag syntax
httpx = "*"
pytest-randomly = "*"
pytest-xdist = "*"
pytest-cov = "*"
staticx = [
{ version = "*", platform = "linux" },
]
pyinstaller = "*"
boto3-stubs = {extras = ["s3"], version = "*"}
pytest-mock = "*"
pytest-asyncio = "*"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
known_first_party = ["sagemaker_shim", "tests"]
line_length = 79
[tool.black]
line-length = 79
target-version = ['py312']
[tool.pytest.ini_options]
markers = [
"container",
"registry",
]
python_files = "tests.py test_*.py *_tests.py"
addopts = "--strict-markers --showlocals -n auto --dist loadscope --cov-branch --cov-report term-missing --cov=tests/ --cov=sagemaker_shim/"
xfail_strict = true
filterwarnings = [
# https://github.com/docker/docker-py/issues/2928
"ignore::DeprecationWarning:docker.utils.utils:52",
"ignore::DeprecationWarning:docker.utils.utils:53",
]
[tool.coverage.run]
omit = [
"tests/batch_transform.py",
"sagemaker_shim/cli.py", # This is covered by docker integration tests
]