mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-19 22:50:31 +00:00
Remove Python 2 support 🔥
This commit is contained in:
parent
5660725bda
commit
ab79f62772
5 changed files with 5 additions and 69 deletions
14
.github/workflows/codeql.yaml
vendored
14
.github/workflows/codeql.yaml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'python' ]
|
||||
version: ['2.7', '3.9']
|
||||
version: ['3.9']
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
@ -30,22 +30,10 @@ jobs:
|
|||
queries: +security-and-quality
|
||||
|
||||
- name: Set up Python ${{ matrix.version }}
|
||||
if: matrix.version != '2.7'
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.version }}
|
||||
|
||||
- name: Set up Python 2.7
|
||||
if: matrix.version == '2.7'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
python2.7 python2.7-dev python2-pip-whl
|
||||
sudo ln -sf python2.7 /usr/bin/python
|
||||
export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl`
|
||||
sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel
|
||||
sudo chown -R $USER /usr/local/lib/python2.7
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue