Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (109 loc) · 2.31 KB
/
Copy pathpyproject.toml
File metadata and controls
123 lines (109 loc) · 2.31 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "aind-data-transfer-service"
description = "Service that handles requests to upload data to the cloud"
license = {text = "MIT"}
requires-python = ">=3.10"
authors = [
{name = "Allen Institute for Neural Dynamics"}
]
classifiers = [
"Programming Language :: Python :: 3"
]
readme = "README.md"
dynamic = ["version"]
dependencies = [
'aind-data-schema-models>=0.3.2',
'email-validator',
'pydantic>=2.0',
'pydantic-settings>=2.0',
'python-json-logger',
'PyYAML'
]
[project.optional-dependencies]
dev = [
'aind-data-transfer-service[server]',
'black',
'coverage',
'flake8',
'interrogate',
'isort',
'pytest',
'pytest-env',
'pytest-mock',
'pytest_asyncio',
'httpx2',
]
docs = [
'Sphinx',
'furo'
]
server = [
'aind-data-schema==2.9.2',
'boto3',
'boto3-stubs[ssm]',
'fastapi>=0.115.13',
'fastapi-cache2[redis]>=0.2.2',
'httpx',
'jinja2',
'starlette>=0.40.0,<0.47.0',
'starlette_wtf',
'uvicorn[standard]',
'wtforms',
'requests==2.25.0',
'openpyxl',
'authlib',
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = {attr = "aind_data_transfer_service.__version__"}
[tool.black]
line-length = 79
target_version = ['py39']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
)/
| .gitignore
)
'''
[tool.coverage.run]
omit = ["*__init__*"]
source = ["aind_data_transfer_service", "tests"]
[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"from",
"import",
"pragma: no cover"
]
fail_under = 100
[tool.isort]
line_length = 79
profile = "black"
[tool.interrogate]
exclude = ["setup.py", "docs", "build", "env"]
fail-under = 100
[tool.pytest.ini_options]
asyncio_mode="auto"
asyncio_default_fixture_loop_scope="function"
env = [
"AIND_AIRFLOW_SERVICE_JOBS_URL=airflow_jobs_url",
"AIND_AIRFLOW_SERVICE_USER=airflow_user",
"AIND_AIRFLOW_SERVICE_PASSWORD=airflow_password",
"AIND_AIRFLOW_PARAM_PREFIX=/param_prefix",
"AIND_SSO_SECRET_NAME=/secret/name",
]
testpaths = ["tests"]