Skip to content
Snippets Groups Projects
Commit 7651da34 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Update requirements and documentation

parent 9558525d
No related branches found
No related tags found
1 merge request!117Update requirements and documentation
Pipeline #88303 passed
...@@ -26,8 +26,8 @@ The following packages are required in order to build the library: ...@@ -26,8 +26,8 @@ The following packages are required in order to build the library:
- pybind11 - pybind11
- pyside2 - pyside2
- qtpy - qtpy
- scipy
- setuptools - setuptools
- setuptools_scm
To build a binary distribution, the following additional packages are required: To build a binary distribution, the following additional packages are required:
...@@ -36,13 +36,20 @@ To build a binary distribution, the following additional packages are required: ...@@ -36,13 +36,20 @@ To build a binary distribution, the following additional packages are required:
To run the test suite, the following additional packages are required: To run the test suite, the following additional packages are required:
- Python: - Python (install with `pip install -r requirements_test.txt`):
- pytest - pytest
- pytest-qt
- pytest-mpl
- pytest-cov (for testing with coverage) - pytest-cov (for testing with coverage)
- pytest-xvfb (for testing without showing windows on Linux)
- pytest-xdist (for parallel testing)
To generate the documentation, the following additional packages are required: To generate the documentation, the following additional packages are required:
- doxygen - Python (install with `pip install -r requirements_doc.txt`):
- sphinx
- furo
- numpydoc
### Using CMake directly ### Using CMake directly
...@@ -147,18 +154,25 @@ pytest ...@@ -147,18 +154,25 @@ pytest
#### Test with coverage #### Test with coverage
``` ```
pytest --cov=b_asic --cov-report html test pytest --cov=b_asic --cov-report=html test
```
#### Test including plots
```
pytest --mpl
``` ```
### Generating documentation ### Generating documentation
In `B-ASIC`: In `B-ASIC/docs_sphinx`:
``` ```
doxygen make html
``` ```
The output gets written to `B-ASIC/doc`. The output gets written to `B-ASIC/docs_sphinx/_build`.
## Usage ## Usage
...@@ -167,7 +181,7 @@ How to build and use the library as a user. ...@@ -167,7 +181,7 @@ How to build and use the library as a user.
### Installation ### Installation
``` ```
pip install b_asic pip install .
``` ```
### Importing ### Importing
......
sphinx
furo
numpydoc
pytest
pytest-cov
pytest-qt
pytest-mpl
pytest-xvfb
pytest-xdist
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment