Installing Configuration

The CMake configuration for the current Pytest version can be easily installed using Pip:

pip install pytest-cmake

Note

Pytest will be installed as a dependency if necessary.

The configuration files should be located in the Python installation prefix:

<python_prefix>/share/Pytest/cmake

Installing from source

You can also install the configuration manually from the source for more control. First, obtain a copy of the source by either downloading the zipball or cloning the public repository:

git clone git@github.com:python-cmake/pytest-cmake.git

Then build and install the package into your current Python environment:

pip install .

Note

The project can not be installed in editable mode as package data won’t be installed.

Building documentation from source

Ensure you have installed the dependencies required for building the documentation:

pip install -r ./doc/requirements.txt

Then, build the documentation with the command:

sphinx-build ./doc ./build/doc/html

View the result in your browser at:

file:///path/to/pytest-build/build/doc/html/index.html