Skip to content

Commit 96333bd

Browse files
author
Franck Mamalet
committed
update setup.cfg to move to python 39,310,311 and pt{1.10.2,1.13.1,2.1.2,2.3.1,2.4.1}
1 parent 130e40a commit 96333bd

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

setup.cfg

+9-19
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,31 @@ extend-ignore =
55
# See https://github.com/PyCQA/pycodestyle/issues/373
66
E203, E231
77

8-
[mypy]
9-
warn_return_any = True
10-
warn_unused_configs = True
11-
namespace_packages = True
12-
ignore_missing_imports = True
13-
14-
[mypy-torchvision.*]
15-
ignore_missing_imports = True
16-
17-
[mypy-torch_testing.*]
18-
ignore_missing_imports = True
19-
208
[tox:tox]
21-
envlist = py{37,38,39},py{37,38,39}-lint
9+
envlist =
10+
py{39,310,311}-pt{1.10.2,1.13.1,2.1.2,2.3.1,2.4.1}
11+
py{39,310,311}-lint
2212

2313
[testenv]
2414
pip_version = pip>=20
2515
deps =
2616
pytest
27-
torch_testing
28-
torch==1.10.2+cu113
29-
torchvision==0.11.3+cu113
17+
pt1.10.2: torch==1.10.2+cu113
18+
pt1.10.2: numpy<2.0
19+
pt1.13.1: torch==1.13.1+cu117
20+
pt1.13.1: numpy<2.0
21+
pt2.1.2: torch==2.1.2+cu121
3022
install_command = pip install --find-links https://download.pytorch.org/whl/torch_stable.html {opts} {packages}
3123
commands =
3224
pytest tests
3325

34-
[testenv:py{37,38,39}-lint]
26+
[testenv:py{39,310,311}-lint]
3527
skip_install = true
3628
deps =
3729
black
3830
flake8
3931
flake8-black
40-
mypy
4132
git+https://github.com/numpy/numpy-stubs.git
4233
commands =
4334
black --check --diff setup.py deel tests
4435
flake8 deel tests
45-
#mypy --no-namespace-packages deel tests

0 commit comments

Comments
 (0)