-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
183 lines (162 loc) · 3.91 KB
/
pyproject.toml
File metadata and controls
183 lines (162 loc) · 3.91 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
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
[build-system]
requires = [
"setuptools>=42",
"setuptools_scm",
"wheel",
"numpy>=2"
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "tsinfer/_version.py"
local_scheme = "no-local-version"
[project]
name = "tsinfer"
dynamic = ["version"]
authors = [
{name = "Tskit Developers", email = "admin@tskit.dev"},
]
description = "Infer tree sequences from genetic variation data."
readme = "README.md"
requires-python = ">=3.11"
license = "GPL-3.0-or-later"
classifiers = [
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Development Status :: 3 - Alpha",
"Environment :: Other Environment",
"Intended Audience :: Science/Research",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
keywords = [
"population genetics",
"tree sequence",
"ancestral recombination graph",
"evolutionary tree",
"inference",
"tsinfer",
]
dependencies = [
"numpy>=2",
"numba",
"psutil",
"tqdm",
"humanize",
"daiquiri",
"tskit>=1.0.0",
"zarr>=3",
"bio2zarr",
"click",
"vcztools>=0.1.2",
]
[project.urls]
Homepage = "https://tskit.dev/tsinfer"
Documentation = "https://tskit.dev/tsinfer/docs/stable"
Changelog = "https://tskit.dev/tsinfer/docs/stable/CHANGELOG.html"
"Bug Tracker" = "https://github.com/tskit-dev/tsinfer/issues"
"Source Code" = "https://github.com/tskit-dev/tsinfer/"
[project.scripts]
tsinfer = "tsinfer.cli:main"
[dependency-groups]
test = [
"setuptools",
"bio2zarr[tskit]",
"msprime",
"pytest",
"pytest-cov",
"pytest-xdist",
"xarray",
"pandas",
]
docs = [
"bio2zarr[tskit,vcf]",
"humanize",
"ipywidgets",
"jupyter-book<2",
"msprime",
"pyfaidx",
"sphinx-click",
"sphinx-book-theme",
"sphinx-issues",
]
# Fully pin lint requirements for determinism.
lint = [
"clang-format==21.1.8",
"ruff==0.15.1",
"prek==0.3.3",
]
packaging = [
"twine",
"validate-pyproject[all]"
]
wheels = [
"cibuildwheel",
]
dev = [
{include-group = "docs"},
{include-group = "lint"},
{include-group = "test"},
{include-group = "packaging"},
]
[tool.setuptools]
packages = ["tsinfer"]
include-package-data = true
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = [
"ignore::zarr.errors.ZarrDeprecationWarning",
"ignore::zarr.errors.ZarrUserWarning",
]
[tool.ruff]
# Assume Python 3.11
target-version = "py311"
# Same as Black.
line-length = 89
indent-width = 4
[tool.ruff.lint]
select = ["E", "F", "B", "W", "I", "N", "UP", "A", "PT", "PLC0415"]
ignore = [
"A001", "A002", "RUF",
"B905", #Don't add strict=False to zips (B905)
"N806", "N802", "N803", # Various nags about uppercase vars
"N818", # Exceptions not called "Error"
"UP032", # Don't upgrade to f strings
"B904", # raise from-issues
"PT011", # pytest.raises(ValueError) too broad
"PT012", # pytest.raises() block should contain a single simple statement
"B028", # No stacklevel for warnings
"B017", # Do not assert blind exception: `BaseException`
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.isort]
known-first-party = ["_tsinfer"]
known-third-party = [
"msprime",
"numpy",
"pandas",
"pytest",
"setuptools",
"xarray",
"zarr"
]
[tool.cibuildwheel]
build = ["cp311-*", "cp312-*", "cp313-*"]
build-frontend = "build"
build-verbosity = 1
[tool.cibuildwheel.linux]
archs = ["x86_64"]
skip = ["*musllinux*"]
test-command = [
"python -c \"import _tsinfer\"",
"tsinfer --help",
]