Skip to content

Commit

Permalink
Merge pull request #816 from oddstr13/πŸ”₯πŸ”₯πŸ”₯py2πŸ”₯πŸ”₯πŸ”₯
Browse files Browse the repository at this point in the history
Remove Python 2 support πŸ”₯
  • Loading branch information
oddstr13 authored Feb 4, 2024
2 parents 0600784 + ab79f62 commit 1a1d0f8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 69 deletions.
38 changes: 0 additions & 38 deletions .devcontainer/Python 2.7/devcontainer.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
py_version: [ 'py2', 'py3' ]
py_version: [ 'py3' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
py_version: [ 'py2', 'py3' ]
py_version: [ 'py3' ]
steps:
- name: Update Draft
uses: release-drafter/[email protected]
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,19 @@ jobs:
strategy:
fail-fast: false
matrix:
py_version: ['2.7', '3.9', '3.11', '3.12']
py_version: ['3.9', '3.11', '3.12']
os: [ubuntu-latest, windows-latest]
exclude:
- os: windows-latest
py_version: '2.7'

runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.py_version }}
if: matrix.py_version != '2.7'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py_version }}

- name: Set up Python 2.7
if: matrix.py_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: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 1a1d0f8

Please sign in to comment.