Skip to content

Commit 385e6c9

Browse files
authored
Merge pull request #504 from pytest-dev/python_update
Drop python 3.6, pytest<5
2 parents 2fb5a11 + 743c9a1 commit 385e6c9

File tree

6 files changed

+16
-21
lines changed

6 files changed

+16
-21
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.6", "3.7", "3.8", "3.9", 3.10.0-rc.2]
14+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
1515

1616
steps:
1717
- uses: actions/checkout@v2

CHANGES.rst

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This release introduces breaking changes in order to be more in line with the of
1010
- Removed feature level examples for the gherkin compatibility (olegpidsadnyi)
1111
- Removed vertical examples for the gherkin compatibility (olegpidsadnyi)
1212
- Step arguments are no longer fixtures (olegpidsadnyi)
13+
- Drop support of python 3.6, pytest 4 (elchupanebrej)
1314

1415

1516

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=42", "wheel"]
2+
requires = ["setuptools>=58", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.black]
66
line-length = 120
7-
target-version = ['py36', 'py37', 'py38']
7+
target-version = ["py37", "py38", "py39", "py310"]
88

99
[tool.isort]
1010
profile = "black"

setup.cfg

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ classifiers =
1919
Topic :: Software Development :: Libraries
2020
Topic :: Utilities
2121
Programming Language :: Python :: 3
22-
Programming Language :: Python :: 3.6
2322
Programming Language :: Python :: 3.7
2423
Programming Language :: Python :: 3.8
2524
Programming Language :: Python :: 3.9
25+
Programming Language :: Python :: 3.10
2626

2727
[options]
28-
python_requires = >=3.6
28+
python_requires = >=3.7
2929
install_requires =
3030
glob2
3131
Mako
3232
parse
3333
parse_type
3434
py
35-
pytest>=4.3
35+
pytest>=5.0
3636

3737
tests_require = tox
3838
packages = pytest_bdd

tests/scripts/test_generate.py

-3
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@ def test_unicode_characters(testdir, monkeypatch):
176176
),
177177
)
178178

179-
if sys.version_info < (3, 7):
180-
monkeypatch.setenv("PYTHONIOENCODING", "utf-8")
181-
182179
result = testdir.run("pytest-bdd", "generate", "unicode_characters.feature")
183180
expected_output = textwrap.dedent(
184181
'''\

tox.ini

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[tox]
22
distshare = {homedir}/.tox/distshare
3-
envlist = py38-pytestlatest-linters,
4-
py39-pytest{43,44,45,46,50,51,52,53,54,60,61,62, latest}-coverage,
5-
py{36,37,38,310}-pytestlatest-coverage,
6-
py39-pytestlatest-xdist-coverage
3+
envlist = py310-pytestlatest-linters,
4+
; python 3.10 is only supported by pytest >= 6.2.5:
5+
py310-pytest{62,70,latest}-coverage,
6+
; the rest of pytest runs need to use an older python:
7+
py39-pytest{50,51,52,53,54,60,61}-coverage,
8+
py{37,38,39}-pytestlatest-coverage,
9+
py310-pytestlatest-xdist-coverage
710
skip_missing_interpreters = true
811

912
[testenv]
@@ -20,24 +23,18 @@ deps =
2023
pytest52: pytest~=5.2.0
2124
pytest51: pytest~=5.1.0
2225
pytest50: pytest~=5.0.0
23-
pytest46: pytest~=4.6.0
24-
pytest45: pytest~=4.5.0
25-
pytest44: pytest~=4.4.0
26-
pytest43: pytest~=4.3.0
2726

2827
coverage: coverage
2928
xdist: pytest-xdist
3029
-r{toxinidir}/requirements-testing.txt
3130
commands = {env:_PYTEST_CMD:pytest} {env:_PYTEST_MORE_ARGS:} {posargs:-vvl}
3231

33-
; Black doesn't support >py38 now
34-
[testenv:py38-pytestlatest-linters]
35-
deps = black
32+
[testenv:py310-pytestlatest-linters]
33+
deps = black==21.12b0
3634
commands = black --check --verbose setup.py docs pytest_bdd tests
3735

3836
[gh-actions]
3937
python =
40-
3.6: py36
4138
3.7: py37
4239
3.8: py38
4340
3.9: py39

0 commit comments

Comments
 (0)