-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lib-injection): ensure sitecustomize.py supports Python 2.7+ (#11381
- Loading branch information
1 parent
343ba22
commit 739a8c7
Showing
3 changed files
with
106 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Lib-injection tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
test_sitecustomize: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: | ||
# requires openssl 1.0, which is hard to get | ||
# - "2.6" | ||
# - "3.4" | ||
# segfaults | ||
# - 3.0" | ||
# - 3.1" | ||
# - "3.2" | ||
# - "3.3" | ||
- "2.7" | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install pyenv | ||
run: | | ||
export PYENV_ROOT="${HOME}/.pyenv" | ||
export PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}" | ||
PYENV_GIT_TAG=main curl https://pyenv.run | bash | ||
echo "PYENV_ROOT=${PYENV_ROOT}" >> $GITHUB_ENV | ||
echo "PATH=${PATH}" >> $GITHUB_ENV | ||
- name: Install python ${{ matrix.python }} | ||
run: | | ||
which pyenv | ||
pyenv --version | ||
pyenv install "${{ matrix.python }}" && pyenv global "${{ matrix.python }}" | ||
- name: Print Python version | ||
run: python --version | ||
- name: Validate sitecustomize.py runs with ${{ matrix.python }} | ||
run: python lib-injection/sources/sitecustomize.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
releasenotes/notes/fix-lib-injection-version-support-ae2ff3a79ac1f6f2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
fixes: | ||
- | | ||
lib-injection: Support Python 2.7+ for injection compatibility check. |