File: build.rst

package info (click to toggle)
plotpy 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,332 kB
  • sloc: python: 36,341; cpp: 2,005; sh: 32; makefile: 3
file content (46 lines) | stat: -rw-r--r-- 971 bytes parent folder | download
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.