Skip to content

Commit 3490ccb

Browse files
committed
Python 2.7 and 3.5 support was already dropped
1 parent db5d7c9 commit 3490ccb

File tree

5 files changed

+15
-41
lines changed

5 files changed

+15
-41
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
matrix:
1414
python-version: ["pypy3", "3.6", "3.7", "3.8", "3.9"]
1515
tox-extra-versions: [
16-
"pytest46-xdist133-coverage55",
17-
"pytest54-xdist133-coverage55",
18-
"pytest62-xdist202-coverage55",
16+
"pytest46-xdist127",
17+
"pytest46-xdist133",
18+
"pytest54-xdist133",
19+
"pytest62-xdist202",
1920
]
2021
include:
2122
# Add new helper variables to existing jobs
@@ -24,13 +25,6 @@ jobs:
2425
- {python-version: "3.7", tox-python-version: "py37"}
2526
- {python-version: "3.8", tox-python-version: "py38"}
2627
- {python-version: "3.9", tox-python-version: "py39"}
27-
# Add extra jobs to the matrix
28-
- {tox-extra-versions: "pytest46-xdist127", python-version: "pypy-2.7", tox-python-version: "pypy"}
29-
- {tox-extra-versions: "pytest46-xdist127", python-version: "pypy3", tox-python-version: "pypy3"}
30-
- {tox-extra-versions: "pytest46-xdist127", python-version: "2.7", tox-python-version: "py27"}
31-
- {tox-extra-versions: "pytest46-xdist127", python-version: "3.5", tox-python-version: "py35"}
32-
- {tox-extra-versions: "pytest46-xdist127", python-version: "3.6", tox-python-version: "py36"}
33-
- {tox-extra-versions: "pytest46-xdist127", python-version: "3.7", tox-python-version: "py37"}
3428

3529
steps:
3630
- uses: actions/checkout@v2
@@ -65,4 +59,4 @@ jobs:
6559
6660
- name: Tox tests
6761
run: |
68-
tox -v -e ${{ matrix.tox-python-version }}-${{ matrix.tox-extra-versions }}
62+
tox -v -e ${{ matrix.tox-python-version }}-${{ matrix.tox-extra-versions }}-coverage55
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
import sys
2-
3-
PY2 = sys.version_info[0] == 2
4-
5-
6-
if PY2:
7-
def add(a, b):
8-
return b + a
9-
10-
else:
11-
def add(a, b):
12-
return a + b
1+
def add(a, b):
2+
return a + b

examples/adhoc-layout/tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[tox]
2-
envlist = py27,py38,report
2+
envlist = py38,report
33

44
[tool:pytest]
55
addopts =
66
--cov-report=term-missing
77

88
[testenv]
99
setenv =
10-
py{27,38}: COVERAGE_FILE = .coverage.{envname}
10+
py38: COVERAGE_FILE = .coverage.{envname}
1111
commands = pytest --cov --cov-config={toxinidir}/.coveragerc {posargs:-vv}
1212
deps =
1313
pytest
@@ -19,7 +19,7 @@ deps =
1919
../..
2020

2121
depends =
22-
report: py27,py38
22+
report: py38
2323

2424
# note that this is necessary to prevent the tests importing the code from your badly laid project
2525
changedir = tests
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
import sys
2-
3-
PY2 = sys.version_info[0] == 2
4-
5-
6-
if PY2:
7-
def add(a, b):
8-
return b + a
9-
10-
else:
11-
def add(a, b):
12-
return a + b
1+
def add(a, b):
2+
return a + b

examples/src-layout/tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py38,report
2+
envlist = py38,report
33

44
[tool:pytest]
55
testpaths = tests
@@ -8,7 +8,7 @@ addopts =
88

99
[testenv]
1010
setenv =
11-
py{27,38}: COVERAGE_FILE = .coverage.{envname}
11+
py38: COVERAGE_FILE = .coverage.{envname}
1212
commands = pytest --cov {posargs:-vv}
1313
deps =
1414
pytest
@@ -20,7 +20,7 @@ deps =
2020
../..
2121

2222
depends =
23-
report: py27,py38
23+
report: py38
2424

2525
[testenv:report]
2626
skip_install = true

0 commit comments

Comments
 (0)