@@ -310,20 +310,16 @@ def _test_simple_extras_vs_no_extras_simpleapi(env):
310310 },
311311 })
312312 pypi .whl_libraries ().contains_exactly ({
313- "pypi_315_simple_py3_none_any_deadbeef_osx_aarch64" : {
314- "config_load" : "@pypi//:config.bzl" ,
315- "dep_template" : "@pypi//{name}:{target}" ,
313+ "simple_py3_none_any_deadbeef_osx_aarch64" : {
316314 "filename" : "simple-0.0.1-py3-none-any.whl" ,
317- "index_url" : "https://example.com/simple/ " ,
315+ "index_url" : "https://example.com/simple" ,
318316 "requirement" : "simple[foo]==0.0.1" ,
319317 "sha256" : "deadbeef" ,
320318 "urls" : ["/simple-0.0.1-py3-none-any.whl" ],
321319 },
322- "pypi_315_simple_py3_none_any_deadbeef_windows_aarch64" : {
323- "config_load" : "@pypi//:config.bzl" ,
324- "dep_template" : "@pypi//{name}:{target}" ,
320+ "simple_py3_none_any_deadbeef_windows_aarch64" : {
325321 "filename" : "simple-0.0.1-py3-none-any.whl" ,
326- "index_url" : "https://example.com/simple/ " ,
322+ "index_url" : "https://example.com/simple" ,
327323 "requirement" : "simple==0.0.1" ,
328324 "sha256" : "deadbeef" ,
329325 "urls" : ["/simple-0.0.1-py3-none-any.whl" ],
@@ -642,38 +638,30 @@ torch==2.4.1+cpu ; platform_machine == 'x86_64' \
642638 },
643639 })
644640 pypi .whl_libraries ().contains_exactly ({
645- "pypi_312_torch_cp312_cp312_linux_x86_64_8800deef_linux_x86_64" : {
646- "config_load" : "@pypi//:config.bzl" ,
647- "dep_template" : "@pypi//{name}:{target}" ,
641+ "torch_cp312_cp312_linux_x86_64_8800deef_linux_x86_64" : {
648642 "filename" : "torch-2.4.1+cpu-cp312-cp312-linux_x86_64.whl" ,
649- "index_url" : "https://torch.index/torch/ " ,
643+ "index_url" : "https://torch.index/torch" ,
650644 "requirement" : "torch==2.4.1+cpu" ,
651645 "sha256" : "8800deef0026011d502c0c256cc4b67d002347f63c3a38cd8e45f1f445c61364" ,
652646 "urls" : ["/whl/cpu/torch-2.4.1%2Bcpu-cp312-cp312-linux_x86_64.whl" ],
653647 },
654- "pypi_312_torch_cp312_cp312_manylinux_2_17_aarch64_36109432_linux_aarch64" : {
655- "config_load" : "@pypi//:config.bzl" ,
656- "dep_template" : "@pypi//{name}:{target}" ,
648+ "torch_cp312_cp312_manylinux_2_17_aarch64_36109432_linux_aarch64" : {
657649 "filename" : "torch-2.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl" ,
658- "index_url" : "https://torch.index/torch/ " ,
650+ "index_url" : "https://torch.index/torch" ,
659651 "requirement" : "torch==2.4.1" ,
660652 "sha256" : "36109432b10bd7163c9b30ce896f3c2cca1b86b9765f956a1594f0ff43091e2a" ,
661653 "urls" : ["/whl/cpu/torch-2.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl" ],
662654 },
663- "pypi_312_torch_cp312_cp312_win_amd64_3a570e5c_windows_x86_64" : {
664- "config_load" : "@pypi//:config.bzl" ,
665- "dep_template" : "@pypi//{name}:{target}" ,
655+ "torch_cp312_cp312_win_amd64_3a570e5c_windows_x86_64" : {
666656 "filename" : "torch-2.4.1+cpu-cp312-cp312-win_amd64.whl" ,
667- "index_url" : "https://torch.index/torch/ " ,
657+ "index_url" : "https://torch.index/torch" ,
668658 "requirement" : "torch==2.4.1+cpu" ,
669659 "sha256" : "3a570e5c553415cdbddfe679207327b3a3806b21c6adea14fba77684d1619e97" ,
670660 "urls" : ["/whl/cpu/torch-2.4.1%2Bcpu-cp312-cp312-win_amd64.whl" ],
671661 },
672- "pypi_312_torch_cp312_none_macosx_11_0_arm64_72b484d5_osx_aarch64" : {
673- "config_load" : "@pypi//:config.bzl" ,
674- "dep_template" : "@pypi//{name}:{target}" ,
662+ "torch_cp312_none_macosx_11_0_arm64_72b484d5_osx_aarch64" : {
675663 "filename" : "torch-2.4.1-cp312-none-macosx_11_0_arm64.whl" ,
676- "index_url" : "https://torch.index/torch/ " ,
664+ "index_url" : "https://torch.index/torch" ,
677665 "requirement" : "torch==2.4.1" ,
678666 "sha256" : "72b484d5b6cec1a735bf3fa5a1c4883d01748698c5e9cfdbeb4ffab7c7987e0d" ,
679667 "urls" : ["/whl/cpu/torch-2.4.1-cp312-none-macosx_11_0_arm64.whl" ],
@@ -813,8 +801,6 @@ simple==0.0.1 --hash=sha256:deadb00f
813801 },
814802 })
815803 want_whl_library = {
816- "config_load" : "@pypi//:config.bzl" ,
817- "dep_template" : "@pypi//{name}:{target}" ,
818804 "filename" : "simple-0.0.1-py3-none-any.whl" ,
819805 "index_url" : test .expect_index_url ,
820806 "requirement" : "simple==0.0.1" ,
@@ -824,7 +810,7 @@ simple==0.0.1 --hash=sha256:deadb00f
824810 if getattr (test , "envsubst" , []):
825811 want_whl_library ["envsubst" ] = test .envsubst
826812 pypi .whl_libraries ().contains_exactly ({
827- "pypi_315_simple_py3_none_any_deadb00f " : want_whl_library ,
813+ "simple_py3_none_any_deadb00f " : want_whl_library ,
828814 })
829815 pypi .extra_aliases ().contains_exactly ({})
830816
@@ -1156,6 +1142,20 @@ git_dep @ git+https://git.server/repo/project@deadbeefdeadbeef
11561142 },
11571143 })
11581144 pypi .whl_libraries ().contains_exactly ({
1145+ "direct_without_sha_0_0_1_py3_none_any" : {
1146+ "filename" : "direct_without_sha-0.0.1-py3-none-any.whl" ,
1147+ "requirement" : "direct_without_sha==0.0.1" ,
1148+ "sha256" : "" ,
1149+ "urls" : ["example-direct.org/direct_without_sha-0.0.1-py3-none-any.whl" ],
1150+ "whl_patches" : {"my_patch" : "1" },
1151+ },
1152+ "plat_py3_none_linux_x86_64_deadb44f" : {
1153+ "filename" : "plat-pkg-0.0.4-py3-none-linux_x86_64.whl" ,
1154+ "index_url" : "https://pypi.org/simple" ,
1155+ "requirement" : "plat_pkg==0.0.4" ,
1156+ "sha256" : "deadb44f" ,
1157+ "urls" : ["example2.org/index/plat_pkg/" ],
1158+ },
11591159 "pypi_315_any_name" : {
11601160 "config_load" : "@pypi//:config.bzl" ,
11611161 "dep_template" : "@pypi//{name}:{target}" ,
@@ -1166,15 +1166,6 @@ git_dep @ git+https://git.server/repo/project@deadbeefdeadbeef
11661166 "sha256" : "" ,
11671167 "urls" : ["some-archive/any-name.tar.gz" ],
11681168 },
1169- "pypi_315_direct_without_sha_0_0_1_py3_none_any" : {
1170- "config_load" : "@pypi//:config.bzl" ,
1171- "dep_template" : "@pypi//{name}:{target}" ,
1172- "filename" : "direct_without_sha-0.0.1-py3-none-any.whl" ,
1173- "requirement" : "direct_without_sha==0.0.1" ,
1174- "sha256" : "" ,
1175- "urls" : ["example-direct.org/direct_without_sha-0.0.1-py3-none-any.whl" ],
1176- "whl_patches" : {"my_patch" : "1" },
1177- },
11781169 "pypi_315_git_dep" : {
11791170 "config_load" : "@pypi//:config.bzl" ,
11801171 "dep_template" : "@pypi//{name}:{target}" ,
@@ -1189,35 +1180,20 @@ git_dep @ git+https://git.server/repo/project@deadbeefdeadbeef
11891180 "python_interpreter_target" : "unit_test_interpreter_target" ,
11901181 "requirement" : "pip_fallback==0.0.1" ,
11911182 },
1192- "pypi_315_plat_py3_none_linux_x86_64_deadb44f" : {
1193- "config_load" : "@pypi//:config.bzl" ,
1194- "dep_template" : "@pypi//{name}:{target}" ,
1195- "filename" : "plat-pkg-0.0.4-py3-none-linux_x86_64.whl" ,
1196- "index_url" : "https://pypi.org/simple" ,
1197- "requirement" : "plat_pkg==0.0.4" ,
1198- "sha256" : "deadb44f" ,
1199- "urls" : ["example2.org/index/plat_pkg/" ],
1200- },
1201- "pypi_315_simple_py3_none_any_deadb00f" : {
1202- "config_load" : "@pypi//:config.bzl" ,
1203- "dep_template" : "@pypi//{name}:{target}" ,
1183+ "simple_py3_none_any_deadb00f" : {
12041184 "filename" : "simple-0.0.1-py3-none-any.whl" ,
12051185 "index_url" : "https://pypi.org/simple" ,
12061186 "requirement" : "simple==0.0.1" ,
12071187 "sha256" : "deadb00f" ,
12081188 "urls" : ["example2.org" ],
12091189 },
1210- "pypi_315_some_pkg_py3_none_any_deadbaaf" : {
1211- "config_load" : "@pypi//:config.bzl" ,
1212- "dep_template" : "@pypi//{name}:{target}" ,
1190+ "some_pkg_py3_none_any_deadbaaf" : {
12131191 "filename" : "some_pkg-0.0.1-py3-none-any.whl" ,
12141192 "requirement" : "some_pkg==0.0.1" ,
12151193 "sha256" : "deadbaaf" ,
12161194 "urls" : ["example-direct.org/some_pkg-0.0.1-py3-none-any.whl" ],
12171195 },
1218- "pypi_315_some_py3_none_any_deadb33f" : {
1219- "config_load" : "@pypi//:config.bzl" ,
1220- "dep_template" : "@pypi//{name}:{target}" ,
1196+ "some_py3_none_any_deadb33f" : {
12211197 "filename" : "some-other-pkg-0.0.1-py3-none-any.whl" ,
12221198 "index_url" : "https://with_index_url" ,
12231199 "requirement" : "some_other_pkg==0.0.1" ,
0 commit comments