Skip to content

Commit db80bdc

Browse files
dnicolodirgommers
authored andcommitted
MAINT: remove now unused arguments to the wheel builder constructor
1 parent 6d7a5dc commit db80bdc

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

mesonpy/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,17 +278,11 @@ class _WheelBuilder():
278278

279279
def __init__(
280280
self,
281-
project: Project,
282281
metadata: Metadata,
283-
source_dir: pathlib.Path,
284-
build_dir: pathlib.Path,
285282
manifest: Dict[str, List[Tuple[pathlib.Path, str]]],
286283
limited_api: bool,
287284
) -> None:
288-
self._project = project
289285
self._metadata = metadata
290-
self._source_dir = source_dir
291-
self._build_dir = build_dir
292286
self._manifest = manifest
293287
self._limited_api = limited_api
294288

@@ -749,10 +743,7 @@ def _configure(self, reconfigure: bool = False) -> None:
749743
@cached_property
750744
def _wheel_builder(self) -> _WheelBuilder:
751745
return _WheelBuilder(
752-
self,
753746
self._metadata,
754-
self._source_dir,
755-
self._build_dir,
756747
self._manifest,
757748
self._limited_api,
758749
)

tests/test_tags.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def test_python_host_platform(monkeypatch):
6363

6464

6565
def wheel_builder_test_factory(monkeypatch, content, pure=True, limited_api=False):
66-
files = defaultdict(list)
67-
files.update({key: [(pathlib.Path(x), os.path.join('build', x)) for x in value] for key, value in content.items()})
68-
return mesonpy._WheelBuilder(None, None, pathlib.Path(), pathlib.Path(), files, limited_api)
66+
manifest = defaultdict(list)
67+
manifest.update({key: [(pathlib.Path(x), os.path.join('build', x)) for x in value] for key, value in content.items()})
68+
return mesonpy._WheelBuilder(None, manifest, limited_api)
6969

7070

7171
def test_tag_empty_wheel(monkeypatch):

0 commit comments

Comments
 (0)