Skip to content

Commit

Permalink
Add Python 3.11 support. (#673)
Browse files Browse the repository at this point in the history
* 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 <hiohiohio@users.noreply.github.com>
  • Loading branch information
fumoboy007 and hiohiohio authored Jan 10, 2024
1 parent eea9426 commit 0e0e163
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,30 @@ jobs:
command: |
python setup.py test
build-test-python311:
docker:
- image: python:3.11
working_directory: ~/repo
steps:
- checkout
- run:
name: make sure install works
command: |
pip install .
- run:
name: view installed packages
command: |
pip freeze
- run:
name: unit test
command: |
python setup.py test
workflows:
version: 2
build:
jobs:
- build-python38
- build-python39
- build-test-python310
- build-test-python311
6 changes: 3 additions & 3 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
# you have to quote any version number ending in a 0 or gh truncates it. ie 3.10 turned into 3.1
python-version: [ 3.8, '3.10' ]
python-version: [ 3.8, '3.10', 3.11 ]
os: [ ubuntu-latest ] #in the future we should add windows here
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -32,10 +32,10 @@ jobs:
needs: tests-ci
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.10'
python-version: 3.11
- name: Install pypa/build
run: >-
python -m
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ urllib3>1.24,<2
websocket-client>=0.56.0,<2
websockets>=9.0,<11
msgpack==1.0.3
aiohttp==3.8.2
aiohttp==3.8.3
PyYAML==6.0.1
deprecation==2.1.0

0 comments on commit 0e0e163

Please sign in to comment.