Skip to content

Commit f463576

Browse files
committed
Drop support to unsupported Python versions
1 parent 07469e1 commit f463576

File tree

2 files changed

+4
-54
lines changed

2 files changed

+4
-54
lines changed

.github/workflows/python-ci.yml

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -16,75 +16,30 @@ jobs:
1616
test:
1717
runs-on: ${{ matrix.os }}
1818
strategy:
19-
fail-fast: false
2019
matrix:
21-
python-version:
22-
[
23-
"3.5",
24-
"3.6",
25-
"3.7",
26-
"3.8",
27-
"3.9",
28-
"3.10",
29-
"3.11",
30-
"3.12",
31-
"3.13",
32-
"3.14",
33-
]
20+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
3421
os: [windows-latest, macos-latest, ubuntu-latest]
35-
exclude: # Python < v3.8 does not support Apple Silicon ARM64.
36-
- python-version: "3.5"
37-
os: macos-latest
38-
- python-version: "3.6"
39-
os: macos-latest
40-
- python-version: "3.7"
41-
os: macos-latest
42-
include: # So run those legacy versions on Intel CPUs.
43-
- python-version: "3.5"
44-
os: macos-13
45-
- python-version: "3.6"
46-
os: macos-13
47-
- python-version: "3.7"
48-
os: macos-13
4922

5023
steps:
51-
- uses: actions/checkout@v5
52-
53-
- name: Run tests in Docker for legacy Python
54-
if: matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)
55-
run: |
56-
docker run --rm -v ${{ github.workspace }}:/app -w /app python:${{ matrix.python-version }} bash -c "
57-
pip install --upgrade pip &&
58-
pip install pytest pytest-cov parameterized mock flake8 &&
59-
pip install -r requirements.txt &&
60-
flake8 configcatclient --count --show-source --statistics &&
61-
pytest configcatclienttests
62-
"
24+
- uses: actions/checkout@v4
6325

6426
- name: Set up Python ${{ matrix.python-version }}
65-
if: ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }}
6627
uses: actions/setup-python@v6
6728
with:
6829
python-version: ${{ matrix.python-version }}
69-
env:
70-
# Needed on Ubuntu for Python 3.5 build.
71-
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
7230

7331
- name: Install dependencies
74-
if: ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }}
7532
run: |
76-
python -m pip install --upgrade pip
33+
python -m pip install --upgrade pip
7734
pip install pytest pytest-cov parameterized mock flake8
7835
pip install -r requirements.txt
7936
8037
- name: Lint with flake8
81-
if: ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }}
8238
run: |
8339
# Statical analysis
8440
flake8 configcatclient --count --show-source --statistics
8541
8642
- name: Test
87-
if: ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }}
8843
run: pytest configcatclienttests
8944

9045
coverage:
@@ -100,7 +55,7 @@ jobs:
10055

10156
- name: Install dependencies
10257
run: |
103-
python -m pip install --upgrade pip
58+
python -m pip install --upgrade pip
10459
pip install pytest pytest-cov parameterized mock flake8
10560
pip install -r requirements.txt
10661

setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ def parse_requirements(filename):
3030
'License :: OSI Approved :: MIT License',
3131
'Operating System :: OS Independent',
3232
'Programming Language :: Python :: 3',
33-
'Programming Language :: Python :: 3.5',
34-
'Programming Language :: Python :: 3.6',
35-
'Programming Language :: Python :: 3.7',
36-
'Programming Language :: Python :: 3.8',
37-
'Programming Language :: Python :: 3.9',
3833
'Programming Language :: Python :: 3.10',
3934
'Programming Language :: Python :: 3.11',
4035
'Programming Language :: Python :: 3.12',

0 commit comments

Comments
 (0)