Skip to content

Commit 3ee1350

Browse files
authored
Fix CI to work on Python 3.12 (#125)
1 parent 3ac11af commit 3ee1350

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,37 @@ jobs:
1010
- name: Checkout repository
1111
uses: actions/checkout@v1
1212
- name: Set up Python 3.x
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: 3.x
1616
- name: Install dependencies
17-
run: |
18-
python3 -m pip install setuptools wheel twine
17+
run: python3 -m pip install setuptools wheel twine
1918
- name: Build dists
20-
run: |
21-
python3 utils/build-dists.py
19+
run: python3 utils/build-dists.py
2220

2321
lint:
2422
runs-on: ubuntu-latest
2523
steps:
2624
- name: Checkout Repository
2725
uses: actions/checkout@v1
2826
- name: Set up Python 3.x
29-
uses: actions/setup-python@v2
27+
uses: actions/setup-python@v4
3028
with:
3129
python-version: 3.x
3230
- name: Install dependencies
33-
run: |
34-
python3 -m pip install nox
31+
run: python3 -m pip install nox
3532
- name: Lint the code
3633
run: nox -s lint
34+
env:
35+
# Workaround for development versions
36+
# https://github.com/aio-libs/aiohttp/issues/7675
37+
AIOHTTP_NO_EXTENSIONS: 1
3738

3839
test:
3940
strategy:
4041
fail-fast: false
4142
matrix:
42-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
43+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
4344
os: ["ubuntu-latest"]
4445
experimental: [false]
4546

.readthedocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6+
# To work around https://github.com/aio-libs/aiohttp/issues/7675, we need
7+
# to set AIOHTTP_NO_EXTENSIONS to 1 but it has to be done in
8+
# https://readthedocs.org/dashboard/elastic-transport-python/environmentvariables/
9+
# because of https://github.com/readthedocs/readthedocs.org/issues/6311
610
python: "3"
711

812
python:

0 commit comments

Comments
 (0)