Skip to content
Snippets Groups Projects
Commit c05acbe1 authored by Jonas Höppner's avatar Jonas Höppner
Browse files

Add scripts to setup a virtual python environment

Use:
```
cd script
source setup_venv.sh
```
to change to the venv.
parent 58554035
No related branches found
No related tags found
1 merge request!403Add scripts to setup a virtual python environment
Pipeline #130221 skipped with stage
...@@ -9,6 +9,23 @@ be included into all relevant Yocto repositories as a [git submodule][1]. ...@@ -9,6 +9,23 @@ be included into all relevant Yocto repositories as a [git submodule][1].
[1]: https://git-scm.com/book/en/v2/Git-Tools-Submodules [1]: https://git-scm.com/book/en/v2/Git-Tools-Submodules
<!----------------------------------------------------------------------------->
## Python development
<!----------------------------------------------------------------------------->
The `scripts` subfolder contains the implementation of the task executed from
the CI. In the CI environment docker containers from the ci-images repository
are used. They contain the correct python version and needed packages.
For local execution of the scripts a virtual python environment may be setup
using the following command:
```
cd scripts
source setup_venv.sh
```
*Note:* Currently the requirements.txt and the Dockerfile for the containers
need to be synced manually.
<!-----------------------------------------------------------------------------> <!----------------------------------------------------------------------------->
## The GitBot user ## The GitBot user
<!-----------------------------------------------------------------------------> <!----------------------------------------------------------------------------->
......
black==23.1.0
furl==2.1.3
gitpython==3.1.30
jinja2==3.1.2
junitparser==2.8.0
lxml==4.9.2
markdown2==2.4.7
pylint==2.16.1
python-gitlab==3.13.0
ruamel.yaml==0.17.21
Flask==2.3.2
#!/bin/sh -x
python3.10 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
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