File tree Expand file tree Collapse file tree 4 files changed +5
-411
lines changed
Expand file tree Collapse file tree 4 files changed +5
-411
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,6 @@ py_test(
2727 ],
2828)
2929
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-
4230py_test (
4331 name = "wheel_installer_test" ,
4432 size = "small" ,
@@ -50,15 +38,3 @@ py_test(
5038 ":lib" ,
5139 ],
5240)
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 1515import json
1616import unittest
1717
18- from python .private .pypi .whl_installer import arguments , wheel
18+ from python .private .pypi .whl_installer import arguments
1919
2020
2121class ArgumentsTestCase (unittest .TestCase ):
@@ -49,18 +49,6 @@ def test_deserialize_structured_args(self) -> None:
4949 self .assertEqual (args ["environment" ], {"PIP_DO_SOMETHING" : "True" })
5050 self .assertEqual (args ["extra_pip_args" ], [])
5151
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-
6452
6553if __name__ == "__main__" :
6654 unittest .main ()
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ def test_wheel_exists(self) -> None:
7171 installation_dir = Path (self .wheel_dir ),
7272 extras = {},
7373 enable_implicit_namespace_pkgs = False ,
74- platforms = [],
7574 )
7675
7776 want_files = [
@@ -92,11 +91,13 @@ def test_wheel_exists(self) -> None:
9291 metadata_file_content = json .load (metadata_file )
9392
9493 want = dict (
94+ abi = "cp311" ,
9595 version = "0.0.1" ,
9696 name = "example-minimal-package" ,
97- deps = [],
98- deps_by_platform = {},
9997 entry_points = [],
98+ extras = [],
99+ python_version = "3.11.1" ,
100+ requires_dist = [],
100101 )
101102 self .assertEqual (want , metadata_file_content )
102103
You can’t perform that action at this time.
0 commit comments