diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9033955 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +ext: + python setup.py build_ext --inplace + +test: + python -m pytest + +clean: + python setup.py clean --all + find pyModeS/c_decoder -type f -name '*.c' -delete + find pyModeS/c_decoder -type f -name '*.so' -delete diff --git a/README.rst b/README.rst index 1470c56..51a2bed 100644 --- a/README.rst +++ b/README.rst @@ -321,8 +321,19 @@ Here is an example: Unit test --------- -To perform unit tests. First, install ``tox`` through pip. Then, run the following commands: +To perform unit tests, ``pytest`` must be install first. -.. code:: bash +Build Cython extensions +:: - $ tox + $ make ext + +Run unit tests +:: + + $ make test + +Clean build files +:: + + $ make clean diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 9a0ca74..0000000 --- a/tox.ini +++ /dev/null @@ -1,11 +0,0 @@ -[tox] -toxworkdir = /tmp/tox -envlist = py2,py3 - -[testenv] -deps = - pytest - numpy - pyzmq - pyrtlsdr -commands = py.test