File tree Expand file tree Collapse file tree
cmake/packaging/python.dist-info Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 - name : Install Traitgen
4747 run : python -m pip install openassetio-traitgen
4848
49+ - name : Install Python test dependencies
50+ run : python -m pip install -r tests/python/requirements.txt
51+
4952 - name : Configure CMake build
5053 run : |
5154 cmake -S . -DCMAKE_PREFIX_PATH=$(pwd)/openassetio -B build -G Ninja --preset test
Original file line number Diff line number Diff line change 77 "dev" : true
88 },
99 "cacheVariables" : {
10- "OPENASSETIO_MEDIACREATION_ENABLE_TEST" : " ON"
10+ "OPENASSETIO_MEDIACREATION_ENABLE_TEST" : " ON" ,
11+ "OPENASSETIO_MEDIACREATION_GENERATE_PYTHON" : " ON"
1112 }
1213 }
1314 ]
Original file line number Diff line number Diff line change 11Metadata-Version: 2.1
22Name: openassetio-mediacreation
3- Version: @OPENASSETIO_MEDIACREATION_PYTHON_PACKAGE_VERSION @
3+ Version: @OPENASSETIO_MEDIACREATION_PYTHON_PKG_VERSION @
Original file line number Diff line number Diff line change @@ -17,17 +17,13 @@ target_compile_features(test.cpp PRIVATE cxx_std_17)
1717
1818if (OPENASSETIO_MEDIACREATION_ENABLE_PYTHON_INSTALL_DIST_INFO)
1919
20- # Build the command to extend the PYTHONPATH such that the
21- # site-packages directory in the install tree is included correctly.
22- set (_set_pythonpath_command
23- PYTHONPATH=${CMAKE_INSTALL_PREFIX } /${OPENASSETIO_MEDIACREATION_PYTHON_SITEDIR} )
24-
2520 # Add pytest target to run the packaging tests. These are concerned
2621 # with python metadata information so run in a python context.
2722 add_custom_target (
2823 openassetio-mediacreation.tests.packaging
2924 COMMAND cmake -E echo -- "Running pytest check for CMake dist-info packaging"
30- COMMAND ${_set_pythonpath_command} &&
25+ COMMAND ${CMAKE_COMMAND } -E env
26+ PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${OPENASSETIO_MEDIACREATION_PYTHON_SITEDIR}
3127 pytest -v --capture=tee-sys
3228 "${CMAKE_CURRENT_LIST_DIR } /test_cmake.py"
3329 WORKING_DIRECTORY "${PROJECT_SOURCE_DIR } "
You can’t perform that action at this time.
0 commit comments