@@ -19,7 +19,7 @@ def top_level_dir() -> Path:
1919
2020
2121@pytest .fixture (scope = "session" )
22- def buildenv (tmp_path_factory : pytest .TempPathFactory ) -> VEnv :
22+ def buildenv (tmp_path_factory : pytest .TempPathFactory , top_level_dir : Path ) -> VEnv :
2323 path = tmp_path_factory .mktemp ("cmake_env" )
2424 venv = VEnv (path )
2525 venv .install ("cmake" )
@@ -63,45 +63,46 @@ def wheelhouse(tmp_path_factory: pytest.TempPathFactory) -> Path:
6363
6464
6565@pytest .fixture (scope = "session" )
66- def vtksdk_helper (buildenv : VEnv , curdir : Path , top_level_dir : Path , dependency : str , wheelhouse : Path ) -> None :
66+ def vtksdk_helper (buildenv : VEnv , top_level_dir : Path , wheelhouse : Path ) -> None :
6767 buildenv .module (
6868 "pip" , "wheel" , top_level_dir .as_posix (),
69- "--wheel-dir" , wheelhouse .as_posix (),
69+ "--wheel-dir" , wheelhouse .as_posix ()
7070 )
71+ assert list (wheelhouse .glob ("vtk_sdk_python_wheel_helper-*.whl" ))
7172
7273
7374@pytest .fixture (scope = "session" )
74- def basic_project (buildenv : VEnv , curdir : Path , top_level_dir : Path , dependency : str , wheelhouse : Path ) -> None :
75+ def basic_project (buildenv : VEnv , curdir : Path , vtksdk_helper , dependency : str , wheelhouse : Path ) -> None :
7576 os .environ ["Dependency_ROOT" ] = dependency
7677
7778 basic_project_src = (curdir / "BasicProject" ).as_posix ()
7879 buildenv .module (
7980 "pip" , "wheel" , basic_project_src ,
8081 "--wheel-dir" , wheelhouse .as_posix (),
81- "--find-links" , top_level_dir .as_posix (),
82+ "--find-links" , wheelhouse .as_posix (),
8283 "--extra-index-url" , "https://vtk.org/files/wheel-sdks" ,
83- "--extra-index-url" , "https://wheels.vtk.org" ,
84- "-Clogging.level=DEBUG"
84+ "--extra-index-url" , "https://wheels.vtk.org"
8585 )
86+ assert list (wheelhouse .glob ("basic_project-*.whl" ))
8687
8788
8889@pytest .fixture (scope = "session" )
89- def basic_project_sdk (buildenv : VEnv , curdir : Path , top_level_dir : Path , dependency : str , wheelhouse : Path ) -> None :
90+ def basic_project_sdk (buildenv : VEnv , curdir : Path , vtksdk_helper , dependency : str , wheelhouse : Path ) -> None :
9091 os .environ ["Dependency_ROOT" ] = dependency
9192
9293 basic_project_src = (curdir / "BasicProject" / "SDK" ).as_posix ()
9394 buildenv .module (
9495 "pip" , "wheel" , basic_project_src ,
9596 "--wheel-dir" , wheelhouse .as_posix (),
96- "--find-links" , top_level_dir .as_posix (),
97+ "--find-links" , wheelhouse .as_posix (),
9798 "--extra-index-url" , "https://vtk.org/files/wheel-sdks" ,
98- "--extra-index-url" , "https://wheels.vtk.org" ,
99- "-Clogging.level=DEBUG"
99+ "--extra-index-url" , "https://wheels.vtk.org"
100100 )
101+ assert list (wheelhouse .glob ("basic_project_sdk-*.whl" ))
101102
102103
103104# tmp virtualenv for the test projects
104105@pytest .fixture ()
105- def virtualenv (tmp_path : Path ) -> VEnv :
106+ def virtualenv (tmp_path : Path , top_level_dir : Path ) -> VEnv :
106107 path = tmp_path / "venv"
107108 return VEnv (path )
0 commit comments