Skip to content

Commit c7d29d8

Browse files
committed
Add requirements.txt
Move the list of Python packages we need with their versions specifiers into a new requirements.txt file, which we can pass directly to pip3 for installation. Update the README and the CI accordingly. Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
1 parent 8ff4082 commit c7d29d8

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ jobs:
8181
8282
- name: 'Install Python required packages'
8383
run: |
84-
pip3 install --user --break-system-packages mako typing Sphinx~=8.1
84+
pip3 install --user --break-system-packages \
85+
--requirement requirements.txt
8586
8687
- name: 'Check'
8788
run: make check-local

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If the version of python-sphinx installed is too old, then an additional
5656
new version can be installed with the Python package installer::
5757

5858
$ apt-get install python3-pip
59-
$ pip3 install --user --upgrade Sphinx
59+
$ pip3 install --user --upgrade --requirement requirements.txt
6060
$ export SPHINXBUILD=~/.local/bin/sphinx-build
6161

6262
Export SPHINXBUILD (see above) if Sphinx was installed with pip3 --user,

requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This is the list of Python packages we need for EBBR.
2+
# Install with pip3 --requirement.
3+
Sphinx ~= 8.1
4+
mako
5+
typing

0 commit comments

Comments
 (0)