From 545cc908eba48f6cc0263bb5dce64119d3d97f9b Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Sun, 24 Nov 2024 00:37:39 +0800 Subject: [PATCH 1/2] Keep our own requirements in a separate file That will allow us to install only those if necessary (hint: we need to, sometimes). Signed-off-by: Rodrigo Tobar --- requirements-own.txt | 16 ++++++++++++++++ requirements.txt | 18 +----------------- 2 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 requirements-own.txt diff --git a/requirements-own.txt b/requirements-own.txt new file mode 100644 index 0000000000..9c7ff0787f --- /dev/null +++ b/requirements-own.txt @@ -0,0 +1,16 @@ +# Our own dependencies (alpha-sorted please) +pip +polib +pospell>=1.1 +potodo +powrap>=1.0.2 +pre-commit +Pygments>=2.17.0 +PyICU +setuptools +sphinx-autorun +sphinxemoji +sphinx-intl>=2.3.0 +sphinx-lint==0.7.0 +sphinx-tabs==3.4.5 +tabulate diff --git a/requirements.txt b/requirements.txt index 0ba00ad8e8..b0d1b3af31 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,18 +1,2 @@ -r cpython/Doc/requirements.txt - -# Our own dependencies (alpha-sorted please) -pip -polib -pospell>=1.1 -potodo -powrap>=1.0.2 -pre-commit -Pygments>=2.17.0 -PyICU -setuptools -sphinx-autorun -sphinxemoji -sphinx-intl>=2.3.0 -sphinx-lint==0.7.0 -sphinx-tabs==3.4.5 -tabulate +-r requirements-own.txt From 3f910870fed28e33d2c412415db3c68f26559bf6 Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Sat, 23 Nov 2024 20:16:24 +0800 Subject: [PATCH 2/2] Install only our own requirements We don't actually need cpython's documentation dependencies, since we only run one of our own scripts. Signed-off-by: Rodrigo Tobar --- .github/workflows/pr-comment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml index 93dd28a757..f66cf799c9 100644 --- a/.github/workflows/pr-comment.yml +++ b/.github/workflows/pr-comment.yml @@ -30,11 +30,11 @@ jobs: path: base-branch sparse-checkout-cone-mode: false sparse-checkout: | - requirements.txt + requirements-own.txt scripts/list_missing_entries.py - name: Instalar dependencias run: | - python -m pip install -r base-branch/requirements.txt + python -m pip install -r base-branch/requirements-own.txt - name: Obtiene lista de archivos con cambios id: changed-files uses: tj-actions/changed-files@v45