Skip to content

Commit

Permalink
Python 3.12 compatibility (#881)
Browse files Browse the repository at this point in the history
* Add 3.12 to the CI test matrix.
* Ignore depr warnings inside pytest on 3.12
* Upgrade cython to 3.0.0b3
  • Loading branch information
mjpieters authored Jun 7, 2023
1 parent 1d03a63 commit 15f2455
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
pyver: ['3.7', '3.8', '3.9', '3.10', '3.11']
no-extensions: ['', 'Y']
os: [ubuntu, macos, windows]
experimental: [false]
exclude:
- os: macos
no-extensions: 'Y'
Expand All @@ -78,13 +79,24 @@ jobs:
include:
- pyver: pypy-3.9
no-extensions: 'Y'
experimental: false
os: ubuntu
- pyver: pypy-3.8
no-extensions: 'Y'
experimental: false
os: ubuntu
- pyver: 3.12-dev
no-extensions: ''
experimental: true
os: ubuntu
- pyver: 3.12-dev
no-extensions: 'Y'
experimental: true
os: ubuntu
fail-fast: false
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 15
continue-on-error: ${{ matrix.experimental }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions CHANGES/829.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support Python 3.12 (upgraded cython to 3.0.0b3, provided CI test coverage)
2 changes: 1 addition & 1 deletion requirements/cython.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cython==0.29.35
cython==3.0.0b3
7 changes: 5 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ license_file = LICENSE

[tool:pytest]
addopts = --cov=yarl -v
filterwarnings=error
norecursedirs = dist docs build .tox .eggs venv virtualenv .git
minversion = 3.8.2
testpaths = tests/
junit_suite_name = yarl_test_suite

filterwarnings =
error
# https://github.com/pytest-dev/pytest/issues/10977 and https://github.com/pytest-dev/pytest/pull/10894
ignore:ast\.(Num|NameConstant|Str) is deprecated and will be removed in Python 3\.14; use ast\.Constant instead:DeprecationWarning:_pytest
ignore:Attribute s is deprecated and will be removed in Python 3\.14; use value instead:DeprecationWarning:_pytest

[pep8]
max-line-length=79
Expand Down

0 comments on commit 15f2455

Please sign in to comment.