File tree Expand file tree Collapse file tree 7 files changed +4
-13
lines changed
src/scikit_build_core/_compat Expand file tree Collapse file tree 7 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ import importlib .metadata as _metadata
34import sys
45import typing
5-
6- import importlib .metadata as _metadata
76from importlib .metadata import PathDistribution , version
87
9-
108if typing .TYPE_CHECKING :
119 if sys .version_info < (3 , 8 ):
1210 from importlib_metadata import EntryPoints
Original file line number Diff line number Diff line change 22
33import sys
44import typing
5-
65from typing import Literal , Protocol
76
87if sys .version_info < (3 , 9 ):
Original file line number Diff line number Diff line change 88import subprocess
99import sys
1010import sysconfig
11+ from importlib import metadata
1112from pathlib import Path
13+ from typing import Literal , overload
1214
1315import virtualenv as _virtualenv
1416
15- from importlib import metadata
16- from typing import Literal , overload
17-
1817if sys .version_info < (3 , 11 ):
1918 import tomli as tomllib
2019else :
Original file line number Diff line number Diff line change 33import importlib
44import shutil
55import subprocess
6- import sys
76import types
87import zipfile
98from pathlib import Path
Original file line number Diff line number Diff line change 11import shutil
2- import sys
32import sysconfig
43import zipfile
54from pathlib import Path
Original file line number Diff line number Diff line change @@ -249,9 +249,7 @@ def test_pep517_wheel_source_dir(virtualenv):
249249 p = zipfile .Path (f )
250250 file_names = [p .name for p in p .iterdir ()]
251251 metadata = p .joinpath ("cmake_example-0.0.1.dist-info/METADATA" ).read_text ()
252- wheel_metadata = p .joinpath (
253- "cmake_example-0.0.1.dist-info/WHEEL"
254- ).read_text ()
252+ wheel_metadata = p .joinpath ("cmake_example-0.0.1.dist-info/WHEEL" ).read_text ()
255253 entry_points = p .joinpath (
256254 "cmake_example-0.0.1.dist-info/entry_points.txt"
257255 ).read_text ()
Original file line number Diff line number Diff line change 11import shutil
2- import sys
32import tarfile
43import zipfile
54from pathlib import Path
You can’t perform that action at this time.
0 commit comments