Skip to content

Commit 4fa57dd

Browse files
committed
add more tests
1 parent af5cb70 commit 4fa57dd

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

examples/mytorch/BUILD.bazel

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
11
load("@rules_python//python:py_test.bzl", "py_test")
22

33
py_test(
4-
name = "torch_test_old_python",
4+
name = "torch_test_py_312",
55
srcs = ["torch_test.py"],
66
main = "torch_test.py",
77
python_version = "3.12",
88
deps = ["@pip//torch"],
99
)
1010

1111
py_test(
12-
name = "torch_test",
12+
name = "torch_test_default",
1313
srcs = ["torch_test.py"],
1414
main = "torch_test.py",
1515
deps = ["@pip//torch"],
1616
)
1717

1818
py_test(
19-
name = "torch_test_experimental_index_url",
19+
name = "torch_test_default_downloader",
2020
srcs = ["torch_test.py"],
2121
main = "torch_test.py",
2222
deps = ["@pip_next//torch"],
2323
)
2424

2525
py_test(
26-
name = "torch_test_freethreaded",
26+
name = "torch_test_py312_downloader",
27+
srcs = ["torch_test.py"],
28+
main = "torch_test.py",
29+
python_version = "3.12",
30+
deps = ["@pip_next//torch"],
31+
)
32+
33+
py_test(
34+
name = "torch_test_downloader_freethreaded",
2735
srcs = ["torch_test.py"],
2836
config_settings = {
2937
"@rules_python//python/config_settings:py_freethreaded": "yes",

examples/mytorch/MODULE.bazel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ pip.parse(
3838
python_version = "3.14",
3939
requirements_lock = "requirements_lock.txt",
4040
)
41+
pip.parse(
42+
envsubst = ["PIP_INDEX_URL"],
43+
experimental_index_url = "${PIP_INDEX_URL:-https://pypi.org/simple}",
44+
hub_name = "pip_next",
45+
python_version = "3.12",
46+
requirements_lock = "requirements_lock.txt",
47+
)
4148
pip.parse(
4249
envsubst = ["PIP_INDEX_URL"],
4350
experimental_index_url = "${PIP_INDEX_URL:-https://pypi.org/simple}",

0 commit comments

Comments
 (0)