File tree 4 files changed +5
-411
lines changed
4 files changed +5
-411
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,6 @@ py_test(
27
27
],
28
28
)
29
29
30
- py_test (
31
- name = "platform_test" ,
32
- size = "small" ,
33
- srcs = [
34
- "platform_test.py" ,
35
- ],
36
- data = ["//examples/wheel:minimal_with_py_package" ],
37
- deps = [
38
- ":lib" ,
39
- ],
40
- )
41
-
42
30
py_test (
43
31
name = "wheel_installer_test" ,
44
32
size = "small" ,
@@ -50,15 +38,3 @@ py_test(
50
38
":lib" ,
51
39
],
52
40
)
53
-
54
- py_test (
55
- name = "wheel_test" ,
56
- size = "small" ,
57
- srcs = [
58
- "wheel_test.py" ,
59
- ],
60
- data = ["//examples/wheel:minimal_with_py_package" ],
61
- deps = [
62
- ":lib" ,
63
- ],
64
- )
Original file line number Diff line number Diff line change 15
15
import json
16
16
import unittest
17
17
18
- from python .private .pypi .whl_installer import arguments , wheel
18
+ from python .private .pypi .whl_installer import arguments
19
19
20
20
21
21
class ArgumentsTestCase (unittest .TestCase ):
@@ -49,18 +49,6 @@ def test_deserialize_structured_args(self) -> None:
49
49
self .assertEqual (args ["environment" ], {"PIP_DO_SOMETHING" : "True" })
50
50
self .assertEqual (args ["extra_pip_args" ], [])
51
51
52
- def test_platform_aggregation (self ) -> None :
53
- parser = arguments .parser ()
54
- args = parser .parse_args (
55
- args = [
56
- "--platform=linux_*" ,
57
- "--platform=osx_*" ,
58
- "--platform=windows_*" ,
59
- "--requirement=foo" ,
60
- ]
61
- )
62
- self .assertEqual (set (wheel .Platform .all ()), arguments .get_platforms (args ))
63
-
64
52
65
53
if __name__ == "__main__" :
66
54
unittest .main ()
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ def test_wheel_exists(self) -> None:
71
71
installation_dir = Path (self .wheel_dir ),
72
72
extras = {},
73
73
enable_implicit_namespace_pkgs = False ,
74
- platforms = [],
75
74
)
76
75
77
76
want_files = [
@@ -92,11 +91,13 @@ def test_wheel_exists(self) -> None:
92
91
metadata_file_content = json .load (metadata_file )
93
92
94
93
want = dict (
94
+ abi = "cp311" ,
95
95
version = "0.0.1" ,
96
96
name = "example-minimal-package" ,
97
- deps = [],
98
- deps_by_platform = {},
99
97
entry_points = [],
98
+ extras = [],
99
+ python_version = "3.11.1" ,
100
+ requires_dist = [],
100
101
)
101
102
self .assertEqual (want , metadata_file_content )
102
103
You can’t perform that action at this time.
0 commit comments