(
self,
fullname: str,
path: Sequence[str] | None,
target: ModuleType | None = None,
)
| 26 | |
| 27 | class MagicCargoFinder(MetaPathFinder): |
| 28 | def find_spec( |
| 29 | self, |
| 30 | fullname: str, |
| 31 | path: Sequence[str] | None, |
| 32 | target: ModuleType | None = None, |
| 33 | ) -> ModuleSpec | None: |
| 34 | if fullname != MODULE_NAME: |
| 35 | return None |
| 36 | |
| 37 | manifest_dir = Path(__file__).parent.parent.parent |
| 38 | module_path = cargo_build(manifest_dir) |
| 39 | return spec_from_file_location(MODULE_NAME, module_path) |
| 40 | |
| 41 | |
| 42 | def cargo_build(manifest_dir: Path) -> Path: |
nothing calls this directly
no test coverage detected