Skip to content

Commit 73c2393

Browse files
authored
Merge pull request #627 from pytest-dev/drop-py37
Drop python 3.7 compatibility
2 parents d45c543 + 6c1aa70 commit 73c2393

File tree

7 files changed

+170
-250
lines changed

7 files changed

+170
-250
lines changed

Diff for: .github/workflows/main.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14-
- python-version: "3.7"
15-
toxfactor: py37
16-
ignore-typecheck-outcome: true
17-
ignore-test-outcome: false
1814
- python-version: "3.8"
1915
toxfactor: py38
2016
ignore-typecheck-outcome: true
@@ -31,7 +27,7 @@ jobs:
3127
toxfactor: py311
3228
ignore-typecheck-outcome: true
3329
ignore-test-outcome: false
34-
- python-version: "3.12.0-alpha.3"
30+
- python-version: "3.12-dev"
3531
toxfactor: py312
3632
ignore-typecheck-outcome: true
3733
ignore-test-outcome: true

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
rev: v3.3.1
2323
hooks:
2424
- id: pyupgrade
25-
args: ["--py37-plus"]
25+
args: ["--py38-plus"]
2626
# TODO: Enable mypy checker when the checks succeed
2727
#- repo: https://github.com/pre-commit/mirrors-mypy
2828
# rev: v0.931

Diff for: CHANGES.rst

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Changelog
33

44
Unreleased
55
----------
6+
- Drop python 3.7 compatibility, as it's no longer supported. `#627 <https://github.com/pytest-dev/pytest-bdd/pull/627>`_
67
- ⚠️ Backwards incompatible: - ``parsers.re`` now does a `fullmatch <https://docs.python.org/3/library/re.html#re.fullmatch>`_ instead of a partial match. This is to make it work just like the other parsers, since they don't ignore non-matching characters at the end of the string. `#539 <https://github.com/pytest-dev/pytest-bdd/pull/539>`_
78
- Add support for Scenarios and Scenario Outlines to have descriptions. `#600 <https://github.com/pytest-dev/pytest-bdd/pull/600>`_
89

Diff for: poetry.lock

+162-237
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ classifiers = [
2020
"Topic :: Software Development :: Libraries",
2121
"Topic :: Utilities",
2222
"Programming Language :: Python :: 3",
23-
"Programming Language :: Python :: 3.7",
2423
"Programming Language :: Python :: 3.8",
2524
"Programming Language :: Python :: 3.9",
2625
"Programming Language :: Python :: 3.10",
@@ -34,7 +33,7 @@ classifiers = [
3433
"pytest-bdd" = "pytest_bdd.scripts:main"
3534

3635
[tool.poetry.dependencies]
37-
python = "^3.7"
36+
python = ">=3.8"
3837
Mako = "*"
3938
parse = "*"
4039
parse-type = "*"
@@ -55,7 +54,7 @@ build-backend = "poetry.core.masonry.api"
5554

5655
[tool.black]
5756
line-length = 120
58-
target-version = ["py37", "py38", "py39", "py310", "py311"]
57+
target-version = ["py38", "py39", "py310", "py311"]
5958

6059
[tool.isort]
6160
profile = "black"
@@ -87,7 +86,7 @@ source = [
8786

8887

8988
[tool.mypy]
90-
python_version = "3.7"
89+
python_version = "3.8"
9190
warn_return_any = true
9291
warn_unused_configs = true
9392
files = "src/pytest_bdd/**/*.py"

Diff for: src/pytest_bdd/steps.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ def _(article):
3939
import enum
4040
from dataclasses import dataclass, field
4141
from itertools import count
42-
from typing import Any, Callable, Iterable, TypeVar
42+
from typing import Any, Callable, Iterable, Literal, TypeVar
4343

4444
import pytest
4545
from _pytest.fixtures import FixtureDef, FixtureRequest
46-
from typing_extensions import Literal
4746

4847
from .parser import Step
4948
from .parsers import StepParser, get_parser

Diff for: tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
distshare = {homedir}/.tox/distshare
3-
envlist = py{37,38,39,310,311,312}-pytest{62,70,71,72,latest}-coverage
3+
envlist = py{38,39,310,311,312}-pytest{62,70,71,72,latest}-coverage
44
py311-pytestlatest-xdist-coverage
55
mypy
66

0 commit comments

Comments
 (0)