Skip to content

Commit 0588262

Browse files
committed
Upgrade Python 3.13
1 parent 4970181 commit 0588262

File tree

7 files changed

+1053
-939
lines changed

7 files changed

+1053
-939
lines changed

.github/workflows/build-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v3
1313

14-
- name: Set up Python 3.9
14+
- name: Set up Python 3.12
1515
uses: actions/setup-python@v4
1616
with:
17-
python-version: 3.9
17+
python-version: 3.12
1818

1919
- name: Get full Python version
2020
id: full-python-version

.github/workflows/python-test.yml

Lines changed: 1 addition & 1 deletion
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.8', '3.9', '3.10', '3.11', '3.12']
17+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1818
os: [windows-latest, ubuntu-latest]
1919
fail-fast: false
2020
steps:

openapi_spec_validator/readers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
2+
from collections.abc import Hashable
23
from os import path
34
from pathlib import Path
45
from typing import Any
5-
from typing import Hashable
66
from typing import Mapping
77
from typing import Tuple
88

openapi_spec_validator/schemas/utils.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
"""OpenAIP spec validator schemas utils module."""
2-
import sys
2+
from collections.abc import Hashable
3+
from importlib.resources import as_file
4+
from importlib.resources import files
35
from os import path
46
from typing import Any
5-
from typing import Hashable
67
from typing import Mapping
78
from typing import Tuple
89

9-
if sys.version_info >= (3, 9):
10-
from importlib.resources import as_file
11-
from importlib.resources import files
12-
else:
13-
from importlib_resources import as_file
14-
from importlib_resources import files
15-
1610
from jsonschema_path.readers import FilePathReader
1711

1812

openapi_spec_validator/validation/proxies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""OpenAPI spec validator validation proxies module."""
22
import warnings
3+
from collections.abc import Hashable
34
from typing import Any
4-
from typing import Hashable
55
from typing import Iterator
66
from typing import Mapping
77
from typing import Optional

poetry.lock

Lines changed: 1042 additions & 921 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ classifiers = [
4040
"Topic :: Software Development :: Libraries :: Python Modules",
4141
"Operating System :: OS Independent",
4242
"Programming Language :: Python :: 3",
43-
"Programming Language :: Python :: 3.8",
4443
"Programming Language :: Python :: 3.9",
4544
"Programming Language :: Python :: 3.10",
4645
"Programming Language :: Python :: 3.11",
4746
"Programming Language :: Python :: 3.12",
47+
"Programming Language :: Python :: 3.13",
4848
"Topic :: Software Development :: Libraries",
4949
"Typing :: Typed",
5050
]
@@ -53,10 +53,9 @@ include = [
5353
]
5454

5555
[tool.poetry.dependencies]
56-
jsonschema = "^4.18.0"
56+
jsonschema = "^4.24.0"
5757
openapi-schema-validator = "^0.6.0"
58-
python = "^3.8.0"
59-
importlib-resources = {version = ">=5.8,<7.0", python = "<3.9" }
58+
python = "^3.9.0"
6059
jsonschema-path = "^0.3.1"
6160
lazy-object-proxy = "^1.7.1"
6261

0 commit comments

Comments
 (0)