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

Update dependency description

parent ddb08e8e
No related branches found
No related tags found
1 merge request!135Update dependency description
Pipeline #88555 passed
......@@ -4,20 +4,22 @@ stages:
before_script:
- apt-get update --yes
- apt-get install --yes build-essential cmake libfmt-dev pybind11-dev graphviz python3-pyqt5 xvfb xdg-utils lcov
- apt-get install --yes build-essential cmake graphviz python3-pyqt5 xvfb xdg-utils lcov
- python -m pip install --upgrade pip
- python --version
- pip install -r requirements.txt
- pip install -r requirements_doc.txt
- pip install -r requirements_test.txt
- pip install $QT_API
- export PYTEST_QT_API=$QT_API
- export QT_API=$QT_API
- git fetch --tags
# - export CXXFLAGS='--coverage'
- pip install -ve .
# Install without dependencies to make sure that requirements.txt is up-to-date
- pip install --no-deps -ve .
# Move file, but should be handled by installation
- mv _b_asic* b_asic
- pip show b_asic
- export QT_API=$QT_API
# Install test dependencies
- pip install -r requirements_test.txt
- export PYTEST_QT_API=$QT_API
.run-test:
stage: test
......@@ -106,6 +108,7 @@ run-doc-test:
image: python:3.10
stage: test
script:
- pip install -r requirements_doc.txt
- sphinx-build -b html docs_sphinx public
pages:
......@@ -114,6 +117,7 @@ pages:
stage: deploy
image: python:3.10
script:
- pip install -r requirements_doc.txt
- sphinx-build -b html docs_sphinx public
artifacts:
paths:
......
......@@ -14,20 +14,22 @@ How to build and debug the library during development.
The following packages are required in order to build the library:
- cmake 3.8+
- gcc 7+/clang 7+/msvc 16+
- fmtlib
- pybind11 2.3.0+
- python 3.6+
- Python:
- graphviz
- matplotlib
- numpy
- pybind11
- pyside2
- qtpy
- setuptools
- setuptools_scm
- [CMake](https://cmake.org/) 3.8+
- gcc 7+/clang 7+/msvc 16+ (C++ 17 support)
- [Python](https://python.org/) 3.8+
- Python dependencies (install with `pip install -r requirements.txt` or they will be installed as part of the
installation process):
- [Graphviz](https://graphviz.org/)
- [Matplotlib](https://matplotlib.org/)
- [NumPy](https://numpy.org/)
- [QtPy](https://github.com/spyder-ide/qtpy)
- Qt 5 or 6, with Python bindings, one of:
- pyside2
- pyqt5
- pyside6
- pyqt6
During the compilation process, [fmtlib](https://github.com/fmtlib/fmt) and [pybind11](https://pybind11.readthedocs.io/) are used.
To build a binary distribution, the following additional packages are required:
......@@ -37,19 +39,19 @@ To build a binary distribution, the following additional packages are required:
To run the test suite, the following additional packages are required:
- Python (install with `pip install -r requirements_test.txt`):
- pytest
- pytest-qt
- pytest-mpl
- pytest-cov (for testing with coverage)
- pytest-xvfb (for testing without showing windows on Linux)
- pytest-xdist (for parallel testing)
- [pytest](https://pytest.org/)
- [pytest-qt](https://pytest-qt.readthedocs.io/)
- [pytest-mpl](https://github.com/matplotlib/pytest-mpl/)
- [pytest-cov](https://pytest-cov.readthedocs.io/en/latest/) (for testing with coverage)
- [pytest-xvfb](https://github.com/The-Compiler/pytest-xvfb) (for testing without showing windows on Linux, you will also need to install [xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml))
- [pytest-xdist](https://pytest-xdist.readthedocs.io/) (for parallel testing)
To generate the documentation, the following additional packages are required:
- Python (install with `pip install -r requirements_doc.txt`):
- sphinx
- furo
- numpydoc
- [Sphinx](https://www.sphinx-doc.org/)
- [Furo](https://pradyunsg.me/furo/)
- [numpydoc](https://numpydoc.readthedocs.io/)
### Using CMake directly
......
......@@ -9,7 +9,7 @@ license = { file = "LICENSE" }
requires-python = ">=3.8"
dependencies = [
"numpy",
"pybind11>=2.3.0",
"pybind11>=2.10.1",
# "pyside2",
"qtpy",
"graphviz>=0.19",
......
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