Skip to content

Commit b5afb07

Browse files
authored
support light-the-torch>=0.3.3 (#15)
1 parent a287b78 commit b5afb07

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ packages = find:
2525
include_package_data = True
2626
python_requires = >=3.6
2727
install_requires =
28-
light-the-torch >= 0.3, < 0.3.2
28+
light-the-torch >= 0.3.3
2929
tox
3030

3131
[options.packages.find]

tests/test_plugin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def test_tox_ltt_pytorch_force_cpu(
198198
result.assert_success(is_run_test_env=False)
199199

200200
_, kwargs = mock.call_args
201-
assert kwargs["computation_backend"] == CPUBackend()
201+
assert kwargs["computation_backends"] == CPUBackend()
202202

203203

204204
@pytest.mark.slow
@@ -213,7 +213,7 @@ def test_tox_ltt_force_cpu_legacy(
213213
result.assert_success(is_run_test_env=False)
214214

215215
_, kwargs = mock.call_args
216-
assert kwargs["computation_backend"] == CPUBackend()
216+
assert kwargs["computation_backends"] == CPUBackend()
217217

218218

219219
def test_tox_ltt_no_requirements(

tox_ltt/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def tox_testenv_install_deps(venv: VirtualEnv, action: Action) -> None:
102102

103103
links = ltt.find_links(
104104
dists,
105-
computation_backend=get_computation_backend(envconfig),
105+
computation_backends=get_computation_backend(envconfig),
106106
channel=envconfig.pytorch_channel,
107107
python_version=get_python_version(envconfig),
108108
)

0 commit comments

Comments
 (0)