mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
docs: update install instructions
This commit is contained in:
@ -6,7 +6,7 @@ BEC Widgets is a GUI framework designed for interaction with [BEC (Beamline Expe
|
|||||||
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install BEC Widgets:
|
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install BEC Widgets:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install bec_widgets
|
pip install bec_widgets PyQt6
|
||||||
```
|
```
|
||||||
|
|
||||||
For development purposes, you can clone the repository and install the package locally in editable mode:
|
For development purposes, you can clone the repository and install the package locally in editable mode:
|
||||||
@ -14,10 +14,11 @@ For development purposes, you can clone the repository and install the package l
|
|||||||
```bash
|
```bash
|
||||||
git clone https://gitlab.psi.ch/bec/bec-widgets
|
git clone https://gitlab.psi.ch/bec/bec-widgets
|
||||||
cd bec_widgets
|
cd bec_widgets
|
||||||
pip install -e .[dev]
|
pip install -e .[dev,pyqt6]
|
||||||
```
|
```
|
||||||
|
|
||||||
BEC Widgets currently supports both PyQt5 and PyQt6. By default, PyQt6 is installed.
|
BEC Widgets currently supports both PyQt5 and PyQt6, however, no default distribution is specified. As a result, users must install one of the supported
|
||||||
|
Python Qt distributions manually.
|
||||||
|
|
||||||
To select a specific Python Qt distribution, install the package with an additional tag:
|
To select a specific Python Qt distribution, install the package with an additional tag:
|
||||||
|
|
||||||
@ -31,7 +32,7 @@ pip install bec_widgets[pyqt5]
|
|||||||
```
|
```
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
Documentation of BEC Widgets can be found [here](https://bec-widgets.readthedocs.io/en/latest/). The documentation of the BEC can be found [here](https://beamline-experiment-control.readthedocs.io/en/latest/).
|
Documentation of BEC Widgets can be found [here](https://bec-widgets.readthedocs.io/en/latest/). The documentation of the BEC can be found [here](https://bec.readthedocs.io/en/latest/).
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
15
docs/conf.py
15
docs/conf.py
@ -9,6 +9,8 @@
|
|||||||
import os
|
import os
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
|
import tomli
|
||||||
|
|
||||||
project = "BEC Widgets"
|
project = "BEC Widgets"
|
||||||
copyright = "2023, Paul Scherrer Institute"
|
copyright = "2023, Paul Scherrer Institute"
|
||||||
author = "Paul Scherrer Institute"
|
author = "Paul Scherrer Institute"
|
||||||
@ -16,18 +18,15 @@ author = "Paul Scherrer Institute"
|
|||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
||||||
|
|
||||||
current_path = pathlib.Path(__file__).parent.parent.resolve()
|
current_path = pathlib.Path(__file__).parent.parent.parent.resolve()
|
||||||
|
version_path = f"{current_path}/pyproject.toml"
|
||||||
|
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
"""load the version from the version file"""
|
"""load the version from the version file"""
|
||||||
version_file = os.path.join(current_path, "setup.py")
|
with open(version_path, "r", encoding="utf-8") as file:
|
||||||
with open(version_file, "r", encoding="utf-8") as file:
|
res = tomli.loads(file.read())
|
||||||
res = file.readline()
|
return res["project"]["version"]
|
||||||
while not res.startswith("__version__"):
|
|
||||||
res = file.readline()
|
|
||||||
version = res.split("=")[1]
|
|
||||||
return version.strip().strip('"')
|
|
||||||
|
|
||||||
|
|
||||||
release = get_version()
|
release = get_version()
|
||||||
|
@ -20,7 +20,7 @@ cd bec_widgets
|
|||||||
|
|
||||||
Installing the package in editable mode allows you to make changes to the code and test them in real-time.
|
Installing the package in editable mode allows you to make changes to the code and test them in real-time.
|
||||||
```bash
|
```bash
|
||||||
pip install -e .[dev]
|
pip install -e .[dev,pyqt6]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,3 +7,4 @@ sphinx-copybutton
|
|||||||
myst-parser
|
myst-parser
|
||||||
sphinx-design
|
sphinx-design
|
||||||
bec-widgets
|
bec-widgets
|
||||||
|
tomli
|
Reference in New Issue
Block a user