Skip to content

Commit ef41e63

Browse files
authored
Merge pull request #42 from hugovk/add-3.12
Add support for Python 3.12
2 parents 0cfdab8 + d44c25b commit ef41e63

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python: ['3.7', '3.8', '3.9', '3.10']
12+
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717
- name: Setup python
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v4
1919
with:
2020
python-version: ${{ matrix.python }}
21+
allow-prereleases: true
2122
cache: pip
2223
cache-dependency-path: test-requirements.txt
2324
- name: Run tests
@@ -34,7 +35,7 @@ jobs:
3435
strategy:
3536
fail-fast: false
3637
matrix:
37-
python: ['3.7', '3.8', '3.9', '3.10', '3.11-dev']
38+
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']
3839
check_formatting: ['0']
3940
extra_name: ['']
4041
include:
@@ -43,16 +44,16 @@ jobs:
4344
extra_name: ', check formatting'
4445
steps:
4546
- name: Checkout
46-
uses: actions/checkout@v2
47+
uses: actions/checkout@v4
4748
- name: Setup python
48-
uses: actions/setup-python@v2
49+
uses: actions/setup-python@v4
4950
if: "!endsWith(matrix.python, '-dev')"
5051
with:
5152
python-version: ${{ matrix.python }}
5253
cache: pip
5354
cache-dependency-path: test-requirements.txt
5455
- name: Setup python (dev)
55-
uses: deadsnakes/action@v2.0.2
56+
uses: deadsnakes/action@v3.0.1
5657
if: endsWith(matrix.python, '-dev')
5758
with:
5859
python-version: '${{ matrix.python }}'
@@ -70,14 +71,15 @@ jobs:
7071
strategy:
7172
fail-fast: false
7273
matrix:
73-
python: ['3.7', '3.8', '3.9', '3.10']
74+
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
7475
steps:
7576
- name: Checkout
76-
uses: actions/checkout@v2
77+
uses: actions/checkout@v4
7778
- name: Setup python
78-
uses: actions/setup-python@v2
79+
uses: actions/setup-python@v4
7980
with:
8081
python-version: ${{ matrix.python }}
82+
allow-prereleases: true
8183
cache: pip
8284
cache-dependency-path: test-requirements.txt
8385
- name: Run tests

sniffio/_tests/test_sniffio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ async def this_is_asyncio():
5858
current_async_library()
5959

6060

61-
# https://github.com/dabeaz/curio/pull/354
6261
@pytest.mark.skipif(
63-
os.name == "nt" and sys.version_info >= (3, 9),
64-
reason="Curio breaks on Python 3.9+ on Windows. Fix was not released yet",
62+
sys.version_info >= (3, 12),
63+
reason=
64+
"curio broken on 3.12 (https://github.com/python-trio/sniffio/pull/42)",
6565
)
6666
def test_curio():
6767
import curio

0 commit comments

Comments
 (0)