fix(docutils): restore support for Python <3.12 (#20675)

* fix(docutils): restore support for Python <3.12

* fix(docutils): only add the pip flag when required

* chore: fix lint

* chore: tune version number validation

* chore: address review comments

* chore: use env var to handle any pip version

* chore: remove unused import

* docs: add the env variable to zh docs

* fix: pass env vars properly on Windows

* chore: improve readability
This commit is contained in:
Edgars Eglītis
2024-10-19 00:07:30 +03:00
committed by GitHub
parent 809477c70c
commit 00cd1b4b0f
5 changed files with 24 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ jobs:
useRollingCache: true
install-command: npm ci
- name: Install dependencies (Python)
run: pip install -r packages/docutils/requirements.txt --break-system-packages
run: PIP_BREAK_SYSTEM_PACKAGES=1 pip install -r packages/docutils/requirements.txt
- name: Configure Git User
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"

View File

@@ -31,7 +31,7 @@ jobs:
useRollingCache: true
install-command: npm ci
- name: Install dependencies (Python)
run: pip install -r packages/docutils/requirements.txt --break-system-packages
run: PIP_BREAK_SYSTEM_PACKAGES=1 pip install -r packages/docutils/requirements.txt
- name: Publish docs
run: |
cd packages/appium