Skip to content

Commit

Permalink
support light-the-torch>=0.3.3 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier authored Aug 23, 2021
1 parent a287b78 commit b5afb07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ packages = find:
include_package_data = True
python_requires = >=3.6
install_requires =
light-the-torch >= 0.3, < 0.3.2
light-the-torch >= 0.3.3
tox

[options.packages.find]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def test_tox_ltt_pytorch_force_cpu(
result.assert_success(is_run_test_env=False)

_, kwargs = mock.call_args
assert kwargs["computation_backend"] == CPUBackend()
assert kwargs["computation_backends"] == CPUBackend()


@pytest.mark.slow
Expand All @@ -213,7 +213,7 @@ def test_tox_ltt_force_cpu_legacy(
result.assert_success(is_run_test_env=False)

_, kwargs = mock.call_args
assert kwargs["computation_backend"] == CPUBackend()
assert kwargs["computation_backends"] == CPUBackend()


def test_tox_ltt_no_requirements(
Expand Down
2 changes: 1 addition & 1 deletion tox_ltt/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def tox_testenv_install_deps(venv: VirtualEnv, action: Action) -> None:

links = ltt.find_links(
dists,
computation_backend=get_computation_backend(envconfig),
computation_backends=get_computation_backend(envconfig),
channel=envconfig.pytorch_channel,
python_version=get_python_version(envconfig),
)
Expand Down

0 comments on commit b5afb07

Please sign in to comment.