Skip to content

Commit 0e0e163

Browse files
Add Python 3.11 support. (#673)
* Add a CI job to build and test this package on Python 3.11. * Update `publish-pypi` GitHub workflow to support Python 3.11. * Update `aiohttp` dependency to version 3.8.3. Fixes #671. --------- Co-authored-by: hiohiohio <[email protected]>
1 parent eea9426 commit 0e0e163

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

.circleci/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,30 @@ jobs:
158158
command: |
159159
python setup.py test
160160
161+
build-test-python311:
162+
docker:
163+
- image: python:3.11
164+
working_directory: ~/repo
165+
steps:
166+
- checkout
167+
- run:
168+
name: make sure install works
169+
command: |
170+
pip install .
171+
- run:
172+
name: view installed packages
173+
command: |
174+
pip freeze
175+
- run:
176+
name: unit test
177+
command: |
178+
python setup.py test
179+
161180
workflows:
162181
version: 2
163182
build:
164183
jobs:
165184
- build-python38
166185
- build-python39
167186
- build-test-python310
187+
- build-test-python311

.github/workflows/publish-pypi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
# you have to quote any version number ending in a 0 or gh truncates it. ie 3.10 turned into 3.1
14-
python-version: [ 3.8, '3.10' ]
14+
python-version: [ 3.8, '3.10', 3.11 ]
1515
os: [ ubuntu-latest ] #in the future we should add windows here
1616
runs-on: ${{ matrix.os }}
1717
steps:
@@ -32,10 +32,10 @@ jobs:
3232
needs: tests-ci
3333
steps:
3434
- uses: actions/checkout@master
35-
- name: Set up Python 3.9
35+
- name: Set up Python
3636
uses: actions/setup-python@v1
3737
with:
38-
python-version: '3.10'
38+
python-version: 3.11
3939
- name: Install pypa/build
4040
run: >-
4141
python -m

requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ urllib3>1.24,<2
55
websocket-client>=0.56.0,<2
66
websockets>=9.0,<11
77
msgpack==1.0.3
8-
aiohttp==3.8.2
8+
aiohttp==3.8.3
99
PyYAML==6.0.1
1010
deprecation==2.1.0

0 commit comments

Comments
 (0)