-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathpyproject.toml
More file actions
208 lines (185 loc) · 4.7 KB
/
pyproject.toml
File metadata and controls
208 lines (185 loc) · 4.7 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
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
[project]
name = "msprime"
authors = [
{name = "Tskit Developers", email = "admin@tskit.dev"},
]
description = "Simulate genealogical trees and genomic sequence data using population genetic models"
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 :: 5 - Production/Stable",
"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 = [
"coalescent simulation",
"population genetics",
"ms",
"tree sequence",
"tskit"
]
dependencies = [
"numpy>=2",
"newick>=1.3.0",
"tskit>=1.0.0",
"demes>=0.2"
]
dynamic = ["version"]
[project.urls]
Homepage = "https://tskit.dev/msprime"
Documentation = "https://tskit.dev/msprime/docs/stable"
Changelog = "https://tskit.dev/msprime/docs/stable/CHANGELOG.html"
"Bug Tracker" = "https://github.com/tskit-dev/msprime/issues"
"Source Code" = "https://github.com/tskit-dev/msprime/"
[project.scripts]
mspms = "msprime.cli:mspms_main"
msp = "msprime.cli:msp_main"
[build-system]
requires = [
"setuptools>=45",
"setuptools_scm",
"wheel",
"numpy>=2"
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["msprime"]
include-package-data = true
[tool.setuptools_scm]
write_to = "msprime/_version.py"
local_scheme = "no-local-version"
[dependency-groups]
test = [
"bintrees",
"daiquiri",
"kastore",
"pytest",
"pytest-cov",
"pytest-xdist",
"python_jsonschema_objects",
"setuptools",
"scipy",
"tskit",
"twine"
]
docs = [
"daiquiri",
"demes",
"demesdraw",
"jupyter-book",
"networkx",
"matplotlib",
"newick",
"setuptools",
"sphinx-argparse",
"sphinx-book-theme",
"sphinx-issues",
"tskit",
"scipy"
]
# Fully pin lint requirements for determinism.
lint = [
"clang-format==21.1.8",
"ruff==0.15.1",
"prek==0.3.3",
]
wheels = [
"cibuildwheel",
]
packaging = [
"twine",
"validate-pyproject[all]",
]
dev = [
{include-group = "docs"},
{include-group = "lint"},
{include-group = "test"},
{include-group = "packaging"},
]
verification = [
"dendropy",
"matplotlib",
"numpy",
"pandas",
"pyvolve",
"scipy",
"scikit-allel",
"statsmodels",
"seaborn",
"tqdm",
"argparse",
"daiquiri",
"pyslim>=1.0"
]
[tool.pytest.ini_options]
addopts = "-n 4"
testpaths = ["tests"]
filterwarnings = [
"ignore:.*usage of `cmp`.*:DeprecationWarning:demes"
]
[tool.ruff]
target-version = "py311"
line-length = 89
indent-width = 4
[tool.ruff.lint]
select = ["E", "F", "B", "W", "I", "N", "UP", "A", "PT"]
ignore = [
"A001", "A002", "RUF",
"B905", #Don't add strict=False to zips (B905)
"E741", # using 'l' as a variable name
"N806", "N802", "N803", # Various nags about uppercase vars
"N818", # Exceptions not called "Error"
"UP032", # Don't upgrade to f strings
"UP031", # Allow old-skool format specifiers
"B904", # raise from-issues
"PT009", # pytest.raises(ValueError) too broad
"PT011", # pytest.raises(ValueError) too broad
"PT012", # pytest.raises() block should contain a single simple statement
"B028", # No stacklevel for warnings
"B018", # Found useless expression. Either assign it
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.isort]
known-first-party = ["_msprime", "msprime", "lwt_interface"]
known-third-party = [
"tskit",
"numpy",
"pytest",
]
[tool.cibuildwheel]
build = ["cp311-*", "cp312-*", "cp313-*", "cp314-*"]
build-frontend = "build"
build-verbosity = 3
test-command = [
"python -c \"import msprime._msprime\"",
"msp --help",
]
[tool.cibuildwheel.linux]
archs = ["x86_64"]
before-all = ["yum -y install gsl-devel"]
skip = ["*musllinux*"]
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
before-all = ["brew install gsl"]
# This is because of how GSL is built by homebrew.
environment = { MACOSX_DEPLOYMENT_TARGET = "14.0" }
[tool.cibuildwheel.windows]
archs = ["AMD64"]
before-all = ["vcpkg install gsl:x64-windows"]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair --add-path C:\\vcpkg\\installed\\x64-windows\\bin -w {dest_dir} {wheel}"