1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
How to build, test and deploy
-----------------------------
Build instructions
^^^^^^^^^^^^^^^^^^
To build the wheel, you need:
* Python
* numpy
* Cython
* A C++ compiler like gcc or `Build Tools for Visual Studio 2017 <https://visualstudio.microsoft.com/downloads/>`_
Then run the following command::
python setup.py bdist_wheel
It should generate a ``.whl`` file in the `dist` directory.
Running unittests
^^^^^^^^^^^^^^^^^
To run the unittests, you need:
* Python
* pytest
* coverage (optional)
Then run the following command::
pytest plotpy
To run test with coverage support, use the following command::
pytest -v --cov --cov-report=html plotpy
Code formatting
^^^^^^^^^^^^^^^
The code is formatted with `ruff <https://pypi.org/project/ruff/>`_.
If you are using `Visual Studio Code <https://code.visualstudio.com/>`_,
the formatting is done automatically when you save a file, thanks to the
project settings in the `.vscode` directory.
|