Skip to content

Commit 68bbea0

Browse files
committed
CI: Validate on Python 3.6+
You never know how you possibly save someone's life with that.
1 parent 106e5e9 commit 68bbea0

File tree

2 files changed

+48
-7
lines changed

2 files changed

+48
-7
lines changed

.github/workflows/test.yaml

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,57 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
os: [
22-
"ubuntu-latest",
22+
"ubuntu-20.04",
2323
"macos-12",
2424
"macos-latest",
2525
"windows-latest",
2626
]
2727
python-version: [
28+
"3.6",
29+
"3.7",
30+
"3.8",
31+
"3.9",
2832
"3.10",
2933
"3.11",
3034
"3.12",
3135
"3.13",
3236
"pypy3.10",
3337
]
3438

39+
exclude:
40+
41+
# Exclude test matrix slots that are no longer supported by GHA runners.
42+
- os: 'macos-latest'
43+
python-version: '3.6'
44+
- os: 'macos-latest'
45+
python-version: '3.7'
46+
47+
# Exclude Python 3.7 on Windows, because GHA fails on it.
48+
#
49+
# SyntaxError: Non-UTF-8 code starting with '\x83' in file
50+
# C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\poe.exe
51+
# on line 2, but no encoding declared;
52+
# see http://python.org/dev/peps/pep-0263/ for details
53+
#
54+
# https://github.com/kennethreitz/responder/actions/runs/11526258626/job/32090071392?pr=546#step:6:73
55+
- os: 'windows-latest'
56+
python-version: '3.7'
57+
3558
steps:
36-
- uses: actions/checkout@v3
59+
- uses: actions/checkout@v4
3760
- uses: actions/setup-python@v5
3861
with:
3962
python-version: ${{ matrix.python-version }}
4063
- uses: yezz123/setup-uv@v4
41-
- run: uv pip install --editable '.[graphql,develop,test]' --system
42-
- run: poe check
64+
65+
- name: Install package and run software tests (Python 3.6)
66+
if: matrix.python-version == '3.6'
67+
run: |
68+
pip install '.[graphql,develop,test]'
69+
poe test
70+
71+
- name: Install and completely validate package (Python >=3.6)
72+
if: matrix.python-version != '3.6'
73+
run: |
74+
uv pip install '.[graphql,develop,test]' --system
75+
poe check

setup.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"aiofiles",
2222
"apispec>=1.0.0b1",
2323
"chardet",
24-
"docopt-ng",
2524
"marshmallow",
2625
"requests",
2726
"requests-toolbelt",
@@ -76,11 +75,16 @@ def run(self):
7675
url="https://github.com/kennethreitz/responder",
7776
packages=find_packages(exclude=["tests"]),
7877
package_data={},
79-
python_requires=">=3.10",
78+
python_requires=">=3.6",
8079
setup_requires=[],
8180
install_requires=required,
8281
extras_require={
83-
"develop": ["poethepoet", "pyproject-fmt", "ruff", "validate-pyproject"],
82+
"develop": [
83+
"poethepoet",
84+
"pyproject-fmt; python_version>='3.7'",
85+
"ruff; python_version>='3.7'",
86+
"validate-pyproject",
87+
],
8488
"graphql": ["graphene"],
8589
"release": ["build", "twine"],
8690
"test": ["pytest", "pytest-cov", "pytest-mock", "flask"],
@@ -95,6 +99,10 @@ def run(self):
9599
"Operating System :: OS Independent",
96100
"Programming Language :: Python",
97101
"Programming Language :: Python :: 3",
102+
"Programming Language :: Python :: 3.6",
103+
"Programming Language :: Python :: 3.7",
104+
"Programming Language :: Python :: 3.8",
105+
"Programming Language :: Python :: 3.9",
98106
"Programming Language :: Python :: 3.10",
99107
"Programming Language :: Python :: 3.11",
100108
"Programming Language :: Python :: 3.12",

0 commit comments

Comments
 (0)