-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
146 lines (132 loc) · 3.77 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
# NOTE(hadim): unfortunately, we cannot use `polaris` on pypi.
# See https://github.com/pypi/support/issues/2908
name = "polaris-lib"
description = "Client for the Polaris Hub."
dynamic = ["version"]
authors = [
{ name = "Cas Wognum", email = "[email protected]" },
{ name = "Lu Zhu", email = "[email protected]" },
{ name = "Andrew Quirke", email = "[email protected]" },
{ name = "Julien St-Laurent", email = "[email protected]" },
]
readme = "README.md"
requires-python = ">=3.10,<3.13"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"authlib",
"boto3 <1.36.0",
"datamol >=0.12.1",
"fastpdb",
"fsspec[http]",
"httpx",
"numcodecs[msgpack]>=0.13.1",
"numpy < 2", # We need to pin numpy to avoid issues with fastpdb/biotite.
"pandas",
"pyarrow < 18",
"pydantic >=2",
"pydantic-settings >=2",
"pyroaring",
"pyyaml",
"rich>=13.9.4",
"scikit-learn",
"scipy",
"seaborn",
"typer",
"typing-extensions>=4.12.0",
"zarr >=2,<3",
]
[dependency-groups]
dev = [
"ipywidgets",
"jupyterlab",
"moto[s3]>=5.0.14",
"pytest",
"pytest-xdist",
"pytest-cov",
"ruff",
]
doc = [
"mkdocs",
"mkdocs-material >=9.4.7",
"mkdocstrings",
"mkdocstrings-python",
"mkdocs-jupyter",
"markdown-include",
"mdx_truly_sane_lists",
"mike >=1.0.0",
"nbconvert",
]
codecs = [
"imagecodecs",
]
[project.scripts]
polaris = "polaris.cli:app"
[project.urls]
Website = "https://polarishub.io/"
"Source Code" = "https://github.com/polaris-hub/polaris"
"Bug Tracker" = "https://github.com/polaris-hub/polaris/issues"
Documentation = "https://polaris-hub.github.io/polaris/"
[tool.setuptools]
include-package-data = true
[tool.setuptools_scm]
fallback_version = "0.0.0.dev1"
[tool.setuptools.packages.find]
where = ["."]
include = ["polaris", "polaris.*"]
exclude = []
namespaces = false
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "--verbose --durations=10 -n auto --cov=polaris --cov-fail-under=75 --cov-report xml --cov-report term-missing"
testpaths = ["tests"]
pythonpath = "."
filterwarnings = ["ignore::DeprecationWarning:jupyter_client.connect.*:"]
[tool.coverage.run]
source = ["polaris/"]
disable_warnings = ["no-data-collected"]
data_file = ".coverage/coverage"
[tool.coverage.report]
omit = [
"polaris/__init__.py",
"polaris/_version.py",
# We cannot yet test the interaction with the Hub.
# See e.g. https://github.com/polaris-hub/polaris/issues/30
"polaris/hub/client.py",
"polaris/hub/external_client.py",
"polaris/hub/settings.py",
"polaris/hub/oauth.py",
"polaris/hub/storage.py",
"polaris/hub/__init__.py",
]
[tool.coverage.xml]
output = "coverage.xml"
[tool.ruff]
lint.ignore = [
"E501", # Never enforce `E501` (line length violations).
]
lint.per-file-ignores."__init__.py" = [
"F401", # imported but unused
"E402", # Module level import not at top of file
]
line-length = 110
target-version = "py310"