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: ...@@ -4,20 +4,22 @@ stages:
before_script: before_script:
- apt-get update --yes - 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 -m pip install --upgrade pip
- python --version - python --version
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install -r requirements_doc.txt
- pip install -r requirements_test.txt
- pip install $QT_API - pip install $QT_API
- export PYTEST_QT_API=$QT_API - git fetch --tags
- export QT_API=$QT_API
# - export CXXFLAGS='--coverage' # - 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 # Move file, but should be handled by installation
- mv _b_asic* b_asic - mv _b_asic* b_asic
- pip show 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: .run-test:
stage: test stage: test
...@@ -106,6 +108,7 @@ run-doc-test: ...@@ -106,6 +108,7 @@ run-doc-test:
image: python:3.10 image: python:3.10
stage: test stage: test
script: script:
- pip install -r requirements_doc.txt
- sphinx-build -b html docs_sphinx public - sphinx-build -b html docs_sphinx public
pages: pages:
...@@ -114,6 +117,7 @@ pages: ...@@ -114,6 +117,7 @@ pages:
stage: deploy stage: deploy
image: python:3.10 image: python:3.10
script: script:
- pip install -r requirements_doc.txt
- sphinx-build -b html docs_sphinx public - sphinx-build -b html docs_sphinx public
artifacts: artifacts:
paths: paths:
......
...@@ -14,20 +14,22 @@ How to build and debug the library during development. ...@@ -14,20 +14,22 @@ How to build and debug the library during development.
The following packages are required in order to build the library: The following packages are required in order to build the library:
- cmake 3.8+ - [CMake](https://cmake.org/) 3.8+
- gcc 7+/clang 7+/msvc 16+ - gcc 7+/clang 7+/msvc 16+ (C++ 17 support)
- fmtlib - [Python](https://python.org/) 3.8+
- pybind11 2.3.0+ - Python dependencies (install with `pip install -r requirements.txt` or they will be installed as part of the
- python 3.6+ installation process):
- Python: - [Graphviz](https://graphviz.org/)
- graphviz - [Matplotlib](https://matplotlib.org/)
- matplotlib - [NumPy](https://numpy.org/)
- numpy - [QtPy](https://github.com/spyder-ide/qtpy)
- pybind11 - Qt 5 or 6, with Python bindings, one of:
- pyside2 - pyside2
- qtpy - pyqt5
- setuptools - pyside6
- setuptools_scm - 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: 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: ...@@ -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: To run the test suite, the following additional packages are required:
- Python (install with `pip install -r requirements_test.txt`): - Python (install with `pip install -r requirements_test.txt`):
- pytest - [pytest](https://pytest.org/)
- pytest-qt - [pytest-qt](https://pytest-qt.readthedocs.io/)
- pytest-mpl - [pytest-mpl](https://github.com/matplotlib/pytest-mpl/)
- pytest-cov (for testing with coverage) - [pytest-cov](https://pytest-cov.readthedocs.io/en/latest/) (for testing with coverage)
- pytest-xvfb (for testing without showing windows on Linux) - [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 (for parallel testing) - [pytest-xdist](https://pytest-xdist.readthedocs.io/) (for parallel testing)
To generate the documentation, the following additional packages are required: To generate the documentation, the following additional packages are required:
- Python (install with `pip install -r requirements_doc.txt`): - Python (install with `pip install -r requirements_doc.txt`):
- sphinx - [Sphinx](https://www.sphinx-doc.org/)
- furo - [Furo](https://pradyunsg.me/furo/)
- numpydoc - [numpydoc](https://numpydoc.readthedocs.io/)
### Using CMake directly ### Using CMake directly
......
...@@ -9,7 +9,7 @@ license = { file = "LICENSE" } ...@@ -9,7 +9,7 @@ license = { file = "LICENSE" }
requires-python = ">=3.8" requires-python = ">=3.8"
dependencies = [ dependencies = [
"numpy", "numpy",
"pybind11>=2.3.0", "pybind11>=2.10.1",
# "pyside2", # "pyside2",
"qtpy", "qtpy",
"graphviz>=0.19", "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