chore: Add a platform_interface type to export from each platform

This avoids the repetition of the platform checks in __main__.py
by defining a dataclass with `get_python_configurations` and `build`.
This commit is contained in:
Hood Chatham
2023-04-10 13:30:23 -07:00
parent 33f642dc0b
commit 26dd3f399e
7 changed files with 54 additions and 34 deletions
+3 -3
View File
@@ -85,9 +85,9 @@ def platform(request, monkeypatch):
def intercepted_build_args(monkeypatch):
intercepted = ArgsInterceptor()
monkeypatch.setattr(linux, "build", intercepted)
monkeypatch.setattr(macos, "build", intercepted)
monkeypatch.setattr(windows, "build", intercepted)
monkeypatch.setattr(linux.interface, "build", intercepted)
monkeypatch.setattr(macos.interface, "build", intercepted)
monkeypatch.setattr(windows.interface, "build", intercepted)
yield intercepted