-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpyproject.toml
216 lines (181 loc) · 4.99 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
[build-system]
requires = ["setuptools >= 69", "setuptools_scm[toml] >= 8"]
build-backend = "setuptools.build_meta"
[project]
name = "sgkit"
authors = [{ name = "sgkit Developers", email = "project@sgkit.dev" }]
license = { text = "Apache" }
description = "Statistical genetics toolkit"
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
urls = { Homepage = "https://github.com/sgkit-dev/sgkit" }
requires-python = ">=3.10"
dependencies = [
"numpy < 2.2",
"xarray < 2025.03.1",
"dask[array,dataframe] >= 2022.01.0, <= 2024.8.0",
"distributed >= 2022.01.0, <= 2024.8.0",
"scipy",
"zarr >= 2.10.0, != 2.11.0, != 2.11.1, != 2.11.2, < 3",
"numba",
"typing-extensions",
"fsspec != 2021.6.*",
"scikit-learn",
"pandas",
"setuptools >= 41.2", # For pkg_resources
]
dynamic = ["version"]
[project.readme]
text = """
**sgkit** is an open source project for analyzing and manipulating genetic
variation data."""
content-type = "text/x-rst"
[project.optional-dependencies]
# For plink we need dask[dataframe], we already have
# dask[array] in install_requires, and since
# https://github.com/pypa/pip/issues/4957, pip
# will essentially ignore dask[dataframe] in the extras.
# We can workaround this by either adding pip flag
# --use-feature 2020-resolver, or installing
# dask[dataframe] in the install_requires, or just listing
# the 2 missing dependencies from dataframe, the way we do
# here, when pip finally gets a resolver, this won't be
# a problem. Here we opt for listing the 2 dependencies
# since this is the least user invasive solution.
plink = ["partd", "bed-reader"]
bgen = ["rechunker", "cbgen > 1.0.5"]
[tool.setuptools]
packages = ["sgkit"]
zip-safe = false # https://mypy.readthedocs.io/en/latest/installed_packages.html
include-package-data = true
[tool.setuptools_scm]
version_file = "sgkit/_version.py"
[tool.coverage.report]
fail_under = 100
[tool.pytest.ini_options]
addopts = "--doctest-modules --ignore=validation --cov-fail-under=100"
norecursedirs = [".eggs", "build", "docs"]
filterwarnings = ["error", "ignore::DeprecationWarning"]
[tool.isort]
profile = "black"
default_section = "THIRDPARTY"
known_first_party = ["sgkit"]
known_third_party = [
"allel",
"dask",
"fire",
"glow",
"hail",
"hypothesis",
"invoke",
"msprime",
"numba",
"numpy",
"pandas",
"pkg_resources",
"pyspark",
"pytest",
"setuptools",
"sgkit_plink",
"sklearn",
"sphinx",
"typing_extensions",
"xarray",
"yaml",
"zarr",
]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
[[tool.mypy.overrides]]
module = ["callee.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["dask.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["fsspec.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["dask_ml.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["numpy.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["pandas.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["numba.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["pytest.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["statsmodels.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["hypothesis.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["zarr.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["numcodecs.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["setuptools"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["sklearn.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["cbgen.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["rechunker.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["bed_reader.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["sphinx.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["yarl.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["allel.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["networkx.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["toolz.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["scipy.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["sgkit.*"]
allow_redefinition = true
[[tool.mypy.overrides]]
module = ["sgkit.*.tests.*"]
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = ["validation.*"]
ignore_errors = true