Skip to content

Commit 9ba16a3

Browse files
committed
chore: bump minimal version to 3.11
1 parent 9654a95 commit 9ba16a3

22 files changed

+26
-72
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
python_version: ['3.12']
4141
include:
4242
- os: ubuntu-latest
43-
python_version: '3.10'
43+
python_version: '3.11'
4444
timeout-minutes: 180
4545
steps:
4646
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ repos:
2424
rev: v1.10.0
2525
hooks:
2626
- id: mypy
27-
name: mypy 3.10 on cibuildwheel/
27+
name: mypy 3.11 on cibuildwheel/
2828
exclude: ^cibuildwheel/resources/.*py|bin/generate_schema.py$
29-
args: ["--python-version=3.10"]
29+
args: ["--python-version=3.11"]
3030
additional_dependencies: &mypy-dependencies
3131
- bracex
3232
- nox

bin/bump_version.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@
1111
import os
1212
import subprocess
1313
import sys
14+
import tomllib
1415
import urllib.parse
1516
from pathlib import Path
1617

1718
import click
1819
from packaging.version import InvalidVersion, Version
1920

20-
if sys.version_info < (3, 11):
21-
import tomli as tomllib
22-
else:
23-
import tomllib
24-
2521
config = [
2622
# file path, version find/replace format
2723
("pyproject.toml", 'version = "{}"'),

bin/update_nodejs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import difflib
66
import logging
7+
import tomllib
78
from dataclasses import dataclass
89
from pathlib import Path
910
from typing import Final
@@ -16,8 +17,6 @@
1617
from rich.logging import RichHandler
1718
from rich.syntax import Syntax
1819

19-
from cibuildwheel._compat import tomllib
20-
2120
log = logging.getLogger("cibw")
2221

2322
# Looking up the dir instead of using utils.resources_dir

bin/update_pythons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import copy
66
import difflib
77
import logging
8+
import tomllib
89
from collections.abc import Mapping, MutableMapping
910
from pathlib import Path
1011
from typing import Any, Final, Literal, TypedDict
@@ -17,7 +18,6 @@
1718
from rich.logging import RichHandler
1819
from rich.syntax import Syntax
1920

20-
from cibuildwheel._compat import tomllib
2121
from cibuildwheel.extra import dump_python_configurations
2222

2323
log = logging.getLogger("cibw")

bin/update_virtualenv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import difflib
66
import logging
77
import subprocess
8+
import tomllib
89
from dataclasses import dataclass
910
from pathlib import Path
1011
from typing import Final
@@ -15,8 +16,6 @@
1516
from rich.logging import RichHandler
1617
from rich.syntax import Syntax
1718

18-
from cibuildwheel._compat import tomllib
19-
2019
log = logging.getLogger("cibw")
2120

2221
# Looking up the dir instead of using utils.resources_dir

cibuildwheel/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from collections.abc import Iterable, Sequence, Set
1313
from pathlib import Path
1414
from tempfile import mkdtemp
15-
from typing import Protocol
15+
from typing import Protocol, assert_never
1616

1717
import cibuildwheel
1818
import cibuildwheel.linux
@@ -21,7 +21,6 @@
2121
import cibuildwheel.util
2222
import cibuildwheel.windows
2323
from cibuildwheel import errors
24-
from cibuildwheel._compat.typing import assert_never
2524
from cibuildwheel.architecture import Architecture, allowed_architectures_check
2625
from cibuildwheel.logger import log
2726
from cibuildwheel.options import CommandLineArguments, Options, compute_options

cibuildwheel/_compat/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

cibuildwheel/_compat/tomllib.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

cibuildwheel/_compat/typing.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)