diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 45242b5..a55b4d3 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -53,7 +53,7 @@ jobs: CIBW_ARCHS: ${{ matrix.arch }} # TODO: Disable building PyPy wheels. If the build system gets modernized, this should be # auto-detected based on the Cython dependency. - CIBW_SKIP: pp* cp314* + CIBW_SKIP: pp* CIBW_TEST_REQUIRES: pytest pytest-asyncio CIBW_TEST_COMMAND: pytest {project} # Only needed to make the macosx arm64 build work diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 9e45058..d2d08b0 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -440,7 +440,7 @@ SSL/TLS setup effectively wraps the socket transport. You'll need an SSL certifi Due to a `bug `_ in Python 3.8 asyncio client needs to be initialized in a slightly different way:: if __name__ == '__main__': - loop = asyncio.get_event_loop() + loop = asyncio.new_event_loop() loop.run_until_complete(capnp.run(main(parse_args().host))) diff --git a/examples/async_calculator_server.py b/examples/async_calculator_server.py index 953c5d2..03d8607 100755 --- a/examples/async_calculator_server.py +++ b/examples/async_calculator_server.py @@ -7,7 +7,6 @@ import logging import capnp import calculator_capnp - logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) diff --git a/examples/async_server.py b/examples/async_server.py index 7fa734c..6f4f6a9 100755 --- a/examples/async_server.py +++ b/examples/async_server.py @@ -7,7 +7,6 @@ import logging import capnp import thread_capnp - logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) diff --git a/examples/async_ssl_calculator_client.py b/examples/async_ssl_calculator_client.py index bb51da0..67def27 100755 --- a/examples/async_ssl_calculator_client.py +++ b/examples/async_ssl_calculator_client.py @@ -9,7 +9,6 @@ import socket import capnp import calculator_capnp - this_dir = os.path.dirname(os.path.abspath(__file__)) @@ -328,5 +327,5 @@ if __name__ == "__main__": # Using asyncio.run hits an asyncio ssl bug # https://bugs.python.org/issue36709 # asyncio.run(main(parse_args().host), loop=loop, debug=True) - loop = asyncio.get_event_loop() + loop = asyncio.new_event_loop() loop.run_until_complete(capnp.run(main(parse_args().host))) diff --git a/examples/async_ssl_calculator_server.py b/examples/async_ssl_calculator_server.py index a2c39bd..ff3425d 100755 --- a/examples/async_ssl_calculator_server.py +++ b/examples/async_ssl_calculator_server.py @@ -10,7 +10,6 @@ import socket import capnp import calculator_capnp - logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) diff --git a/examples/async_ssl_client.py b/examples/async_ssl_client.py index 4847b8b..f336d1b 100755 --- a/examples/async_ssl_client.py +++ b/examples/async_ssl_client.py @@ -71,5 +71,5 @@ if __name__ == "__main__": # Using asyncio.run hits an asyncio ssl bug # https://bugs.python.org/issue36709 # asyncio.run(main(parse_args().host), loop=loop, debug=True) - loop = asyncio.get_event_loop() + loop = asyncio.new_event_loop() loop.run_until_complete(capnp.run(main(parse_args().host))) diff --git a/examples/async_ssl_server.py b/examples/async_ssl_server.py index aafa9bd..4f65667 100755 --- a/examples/async_ssl_server.py +++ b/examples/async_ssl_server.py @@ -10,7 +10,6 @@ import socket import capnp import thread_capnp - logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) diff --git a/setup.py b/setup.py index 8d8b9b2..15c98a8 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,6 @@ sys.path.insert(1, _this_dir) from buildutils.build import build_libcapnp from buildutils.bundle import fetch_libcapnp - MAJOR = 2 MINOR = 2 MICRO = 2