Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.12 compatibility #881

Merged
merged 4 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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