feat: initial cpython 3.12 support (#207)

This commit is contained in:
J. Nick Koston 2023-07-24 10:51:22 -05:00 committed by GitHub
parent a3e0a6250e
commit c755193ee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 9 deletions

View File

@ -41,11 +41,15 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12.0-beta.4"
os:
- ubuntu-latest
extension:
- "skip_cython"
- "use_cython"
exclude:
- extension: use_cython
python-version: "3.12.0-beta.4"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
@ -95,7 +99,7 @@ jobs:
# - Create GitHub release
# - Publish to PyPI
- name: Python Semantic Release
uses: relekang/python-semantic-release@v7.33.1
uses: python-semantic-release/python-semantic-release@v7.34.6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
@ -120,7 +124,7 @@ jobs:
uses: actions/setup-python@v4
- name: Install python-semantic-release
run: python -m pip install python-semantic-release
run: python -m pip install python-semantic-release==7.34.6
- name: Get Release Tag
id: release_tag
@ -134,7 +138,7 @@ jobs:
fetch-depth: 0
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.10.2
run: python -m pip install cibuildwheel==2.14.1
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse

View File

@ -124,7 +124,7 @@ async def test_aio_proxy_object():
@pytest.mark.skipif(
sys.version_info[:3][1] in (10, 11), reason="segfaults on py3.10/py3.11"
sys.version_info[:3][1] in (10, 11, 12), reason="segfaults on py3.10/py3.11"
)
@pytest.mark.skipif(not has_gi, reason=skip_reason_no_gi)
def test_glib_proxy_object():

View File

@ -97,7 +97,7 @@ async def test_aio_properties():
@pytest.mark.skipif(
sys.version_info[:3][1] in (10, 11), reason="segfaults on py3.10,py3.11"
sys.version_info[:3][1] in (10, 11, 12), reason="segfaults on py3.10,py3.11,py3.12"
)
@pytest.mark.skipif(not has_gi, reason=skip_reason_no_gi)
def test_glib_properties():

View File

@ -47,7 +47,7 @@ async def test_aio_big_message():
@pytest.mark.skipif(not has_gi, reason=skip_reason_no_gi)
@pytest.mark.skipif(
sys.version_info[:3][1] in (10, 11), reason="segfaults on py3.10,py3.11"
sys.version_info[:3][1] in (10, 11, 12), reason="segfaults on py3.10,py3.11,py3.12"
)
def test_glib_big_message():
"this tests that nonblocking reads and writes actually work for glib"

View File

@ -55,7 +55,7 @@ def test_standard_interfaces():
@pytest.mark.skipif(not has_gi, reason=skip_reason_no_gi)
@pytest.mark.skipif(
sys.version_info[:3][1] in (10, 11), reason="segfaults on py3.10,py3.11"
sys.version_info[:3][1] in (10, 11, 12), reason="segfaults on py3.10,py3.11,py3.12"
)
def test_sending_messages_between_buses():
bus1 = MessageBus().connect_sync()
@ -125,7 +125,7 @@ def test_sending_messages_between_buses():
@pytest.mark.skipif(not has_gi, reason=skip_reason_no_gi)
@pytest.mark.skipif(
sys.version_info[:3][1] in (10, 11), reason="segfaults on py3.10,py3.11"
sys.version_info[:3][1] in (10, 11, 12), reason="segfaults on py3.10,py3.11,py3.12"
)
def test_sending_signals_between_buses():
bus1 = MessageBus().connect_sync()

View File

@ -71,7 +71,7 @@ async def test_name_requests():
@pytest.mark.skipif(
sys.version_info[:3][1] in (10, 11), reason="segfaults on py3.10,py3.11"
sys.version_info[:3][1] in (10, 11, 12), reason="segfaults on py3.10,py3.11,py3.12"
)
@pytest.mark.skipif(not has_gi, reason=skip_reason_no_gi)
def test_request_name_glib():