Skip to content

Commit e1e2d4c

Browse files
authored
Require python 3.7+ (#66)
1 parent 7743cdb commit e1e2d4c

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, windows-latest]
1515
python-version:
16-
- '2.7'
1716
- '3.7'
1817
- '3.8'
1918
- '3.9'
2019
- '3.10'
2120
include:
22-
# Python 3.6 is not supported in Ubuntu 22.04, so manually adding it to matrix with older version of Ubuntu
23-
- os: ubuntu-20.04
24-
python-version: '3.6'
21+
- os: ubuntu-22.04
22+
python-version: '3.7'
2523
- os: windows-latest
26-
python-version: '3.6'
24+
python-version: '3.7'
2725

2826
runs-on: ${{ matrix.os }}
2927

@@ -51,23 +49,21 @@ jobs:
5149

5250
- name: Run tests with PyTest 5
5351
run: tox
54-
if: ${{ matrix.python-version != '2.7' && matrix.python-version != '3.10' }}
52+
if: ${{ matrix.python-version != '3.10' }}
5553
env:
5654
PLATFORM: ${{ matrix.os }}
5755
PYTEST_MAJOR_VERSION: 5
5856
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
5957

6058
- name: Run tests with PyTest 6
6159
run: tox
62-
if: ${{ matrix.python-version != '2.7' }}
6360
env:
6461
PLATFORM: ${{ matrix.os }}
6562
PYTEST_MAJOR_VERSION: 6
6663
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
6764

6865
- name: Run tests with PyTest 7
6966
run: tox
70-
if: ${{ matrix.python-version != '2.7' }}
7167
env:
7268
PLATFORM: ${{ matrix.os }}
7369
PYTEST_MAJOR_VERSION: 7

setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@
1515
author_email="[email protected]",
1616
url="https://github.com/pytest-dev/pytest-github-actions-annotate-failures",
1717
license="MIT",
18-
classifiers=["Framework :: Pytest",],
19-
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*",
18+
classifiers=[
19+
"Framework :: Pytest",
20+
],
21+
python_requires=">=3.7",
2022
packages=find_packages(),
2123
entry_points={
2224
"pytest11": [
2325
"pytest_github_actions_annotate_failures = pytest_github_actions_annotate_failures.plugin",
2426
],
2527
},
26-
install_requires=["pytest>=4.0.0",],
28+
install_requires=[
29+
"pytest>=4.0.0",
30+
],
2731
)

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ envlist = py27-pytest4-{linux,windows}, py{36,37,38,39}-pytest{4,5,6,7}-{linux,w
33

44
[gh-actions]
55
python =
6-
2.7: py27
7-
3.6: py36
86
3.7: py37
97
3.8: py38
108
3.9: py39

0 commit comments

Comments
 (0)