An open API service indexing awesome lists of open source software.

https://github.com/astrofrog/pytest-build

Experimental!
https://github.com/astrofrog/pytest-build

Last synced: 26 days ago
JSON representation

Experimental!

Awesome Lists containing this project

README

          

About
-----

This is a simple plugin that runs::

python setup.py build_ext --inplace

In the current directory before running the tests, which means that you can
then run pytest seamlessly on packages with compiled extensions.

To use this, run pytest with::

pytest --build-inplace

or add::

[tool:pytest]
addopts = --build-inplace

to your ``setup.cfg`` file for the option to always be added automatically.

Note that if you have entry points in your package that need to be installed
for the tests to run, you will still need to make sure ``pip install -e .``
has been run for your package.