Skip to content

Commit ed4d752

Browse files
authored
Merge pull request #226 from python-openapi/feature/drop-python-37-support
drop python 3.7 support
2 parents 46152ce + caa3945 commit ed4d752

File tree

6 files changed

+386
-373
lines changed

6 files changed

+386
-373
lines changed

.github/workflows/python-test.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
17+
python-version: ['3.8', '3.9', '3.10', '3.11']
1818
os: [windows-latest, ubuntu-latest]
1919
fail-fast: false
2020
steps:
@@ -60,7 +60,6 @@ jobs:
6060

6161
- name: Check dependencies
6262
run: poetry run deptry .
63-
if: ${{ matrix.python-version != '3.7' }}
6463

6564
- name: Upload coverage
6665
uses: codecov/codecov-action@v1

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: python
22
sudo: false
33
matrix:
44
include:
5-
- python: '3.7'
65
- python: '3.8'
76
- python: '3.9'
87
- python: '3.10-dev'

docs/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
},
3333
"repo_url": "https://github.com/python-openapi/openapi-spec-validator/",
3434
"repo_name": "openapi-spec-validator",
35-
"repo_type": "github",
3635
"icon": {
3736
"repo": "fontawesome/brands/github-alt",
3837
"edit": "material/file-edit-outline",

openapi_spec_validator/validation/protocols.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
import sys
21
from typing import Any
32
from typing import Hashable
43
from typing import Iterator
54
from typing import Mapping
6-
7-
if sys.version_info >= (3, 8):
8-
from typing import Protocol
9-
from typing import runtime_checkable
10-
else:
11-
from typing_extensions import Protocol
12-
from typing_extensions import runtime_checkable
5+
from typing import Protocol
6+
from typing import runtime_checkable
137

148
from openapi_spec_validator.validation.exceptions import OpenAPIValidationError
159

0 commit comments

Comments
 (0)