-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
282 lines (264 loc) · 7.12 KB
/
tox.ini
File metadata and controls
282 lines (264 loc) · 7.12 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
[tox]
envlist =
# Major Python versions with latest packages
py310-latest
py311-latest
py312-latest
py313-latest
# NumPy 2.x version boundaries
py311-numpy2x
py312-numpy2x
# Numba version tests
py311-numba061
py312-numba063
# Minimum viable modern stack
py310-minimum
py311-minimum
# PyTorch version tests
py311-torch24
py311-torch26
# Pandas version tests
py311-pandas20
py311-pandas22
# Crystallography stack tests
py311-gemmi-min
# Lower bounds test
py310-lowerbounds
py311-lowerbounds
isolated_build = True
skip_missing_interpreters = True
[testenv]
description = Run tests with {basepython}
changedir = {toxinidir}
setenv =
PYTHONPATH = {toxinidir}
deps =
pytest>=6.0.0
pytest-cov>=2.12.0
# Base dependencies for all environments
tqdm>=4.61.0
gemmi>=0.5.0
matplotlib>=3.4.0
reciprocalspaceship>=0.9.0
pyarrow>=4.0.0
commands =
python -c "import sys; print(f'Python: {sys.version}')"
python -c "import numpy; print(f'numpy: {numpy.__version__}')"
python -c "import pandas; print(f'pandas: {pandas.__version__}')"
python -c "import torch; print(f'torch: {torch.__version__}')"
python -c "import numba; print(f'numba: {numba.__version__}')"
python -c "import scipy; print(f'scipy: {scipy.__version__}')"
python -c "import torchref; print(f'torchref: {getattr(torchref, \"__version__\", \"unknown\")}')"
pytest tests/ -v --tb=short -m "not gpu and not slow" {posargs}
# =============================================================================
# Python 3.10 - Minimum supported version
# =============================================================================
[testenv:py310-latest]
description = Python 3.10 with latest packages
basepython = python3.10
deps =
{[testenv]deps}
numpy
pandas
torch
numba
scipy
[testenv:py310-minimum]
description = Python 3.10 with minimum viable versions (numpy 2.0 + torch 2.4)
basepython = python3.10
deps =
{[testenv]deps}
numpy==2.0.0
pandas==2.0.0
torch==2.4.0
numba==0.61.0
scipy==1.13.0
[testenv:py310-lowerbounds]
description = Python 3.10 testing lower version bounds
basepython = python3.10
deps =
pytest>=6.0.0
pytest-cov>=2.12.0
numpy==2.0.0
pandas==2.0.0
torch==2.4.0
tqdm==4.61.0
numba==0.59.0
gemmi==0.5.0
scipy==1.10.0
matplotlib==3.7.0
reciprocalspaceship==0.9.18
pyarrow==12.0.0
# =============================================================================
# Python 3.11 - Well-supported middle ground
# =============================================================================
[testenv:py311-latest]
description = Python 3.11 with latest packages
basepython = python3.11
deps =
{[testenv]deps}
numpy
pandas
torch
numba
scipy
[testenv:py311-numpy2x]
description = Python 3.11 with NumPy 2.x
basepython = python3.11
deps =
{[testenv]deps}
numpy>=2.0.0
pandas>=2.2.0
torch>=2.4.0
numba>=0.61.0
scipy>=1.13.0
[testenv:py311-numba061]
description = Python 3.11 with numba 0.61 (first NumPy 2.x support)
basepython = python3.11
deps =
{[testenv]deps}
numpy>=2.0.0,<2.1.0
pandas>=2.1.0
torch>=2.4.0,<2.5.0
numba>=0.61.0,<0.62.0
scipy>=1.13.0,<1.14.0
[testenv:py311-minimum]
description = Python 3.11 with minimum viable versions (numpy 2.0 + torch 2.4)
basepython = python3.11
deps =
{[testenv]deps}
numpy==2.0.0
pandas==2.0.0
torch==2.4.0
numba==0.61.0
scipy==1.13.0
# =============================================================================
# Python 3.12 - Latest stable Python
# =============================================================================
[testenv:py312-latest]
description = Python 3.12 with latest packages
basepython = python3.12
deps =
{[testenv]deps}
numpy
pandas
torch
numba
scipy
[testenv:py312-numpy2x]
description = Python 3.12 with NumPy 2.x stack
basepython = python3.12
deps =
{[testenv]deps}
numpy>=2.0.0
pandas>=2.2.0
torch>=2.4.0
numba>=0.61.0
scipy>=1.13.0
[testenv:py312-numba063]
description = Python 3.12 with numba 0.63 (latest)
basepython = python3.12
deps =
{[testenv]deps}
numpy>=2.0.0
pandas>=2.2.0
torch>=2.5.0
numba>=0.63.0
scipy>=1.14.0
# =============================================================================
# Python 3.13 - Latest Python
# =============================================================================
[testenv:py313-latest]
description = Python 3.13 with latest packages
basepython = python3.13
deps =
{[testenv]deps}
numpy
pandas
torch
numba
scipy
# =============================================================================
# PyTorch Version Tests
# =============================================================================
[testenv:py311-torch24]
description = Python 3.11 with PyTorch 2.4 (minimum supported)
basepython = python3.11
deps =
{[testenv]deps}
numpy>=2.0.0,<2.1.0
pandas>=2.1.0,<2.3.0
torch>=2.4.0,<2.5.0
numba>=0.61.0,<0.62.0
scipy>=1.13.0,<1.14.0
[testenv:py311-torch26]
description = Python 3.11 with PyTorch 2.6
basepython = python3.11
deps =
{[testenv]deps}
numpy>=2.1.0,<2.2.0
pandas>=2.2.0,<2.3.0
torch>=2.6.0,<2.7.0
numba>=0.61.0,<0.62.0
scipy>=1.14.0,<1.15.0
# =============================================================================
# Pandas Version Tests
# =============================================================================
[testenv:py311-pandas20]
description = Python 3.11 with Pandas 2.0
basepython = python3.11
deps =
{[testenv]deps}
numpy>=2.0.0,<2.1.0
pandas>=2.0.0,<2.1.0
torch>=2.4.0,<2.5.0
numba>=0.61.0,<0.62.0
scipy>=1.13.0,<1.14.0
[testenv:py311-pandas22]
description = Python 3.11 with Pandas 2.2
basepython = python3.11
deps =
{[testenv]deps}
numpy>=2.0.0,<2.2.0
pandas>=2.2.0,<2.3.0
torch>=2.4.0,<2.6.0
numba>=0.61.0,<0.62.0
scipy>=1.13.0,<1.15.0
# =============================================================================
# Crystallography Stack Tests
# =============================================================================
[testenv:py311-gemmi-min]
description = Python 3.11 with gemmi 0.5.0 (declared minimum)
basepython = python3.11
deps =
pytest>=6.0.0
pytest-cov>=2.12.0
tqdm>=4.61.0
gemmi==0.5.0
matplotlib>=3.4.0
reciprocalspaceship>=0.9.0,<1.0.0
pyarrow>=4.0.0
numpy>=2.0.0,<2.1.0
pandas>=2.0.0,<2.2.0
torch>=2.4.0,<2.5.0
numba>=0.61.0,<0.62.0
scipy>=1.13.0,<1.14.0
# =============================================================================
# Lower Bounds Test - Test declared minimums from pyproject.toml
# =============================================================================
[testenv:py311-lowerbounds]
description = Python 3.11 testing lower version bounds
basepython = python3.11
deps =
pytest>=6.0.0
pytest-cov>=2.12.0
numpy==2.0.0
pandas==2.0.0
torch==2.4.0
tqdm==4.61.0
numba==0.59.0
gemmi==0.5.0
scipy==1.10.0
matplotlib==3.7.0
reciprocalspaceship==0.9.18
pyarrow==12.0.0