Skip to content

Commit

Permalink
CI: Add support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 6, 2024
1 parent d7742ba commit ccc96bc
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: docs
on:
pull_request: ~
push:
branches:
- master
pull_request:

concurrency:
cancel-in-progress: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- master
pull_request:
branches:
- master

concurrency:
cancel-in-progress: true
Expand Down Expand Up @@ -49,12 +47,14 @@ jobs:
name: Tests with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Changes for croud
Unreleased
==========

- Added support for Python 3.12

1.12.0 - 2024/08/30
===================

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)
11 changes: 8 additions & 3 deletions tests/util/fake_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ def __init__(self, *args, **kwargs):
here = pathlib.Path(__file__)
self.ssl_cert = here.parent / "server.crt"
ssl_key = here.parent / "server.key"
self.socket = ssl.wrap_socket( # type: ignore[attr-defined]

# Instances of SSLSocket must be created using the SSLContext.wrap_socket() method.
# https://docs.python.org/3.12/library/ssl.html#socket-creation
context = ssl.create_default_context()
context.check_hostname = False
context.load_cert_chain(certfile=str(self.ssl_cert), keyfile=str(ssl_key))

self.socket = context.wrap_socket( # type: ignore[attr-defined]
self.socket,
keyfile=str(ssl_key),
certfile=str(self.ssl_cert),
server_side=True,
)

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38,py39,py310,py311
envlist = py38,py39,py310,py311,py312

[testenv]
deps = -e{toxinidir}[testing]
Expand Down

0 comments on commit ccc96bc

Please sign in to comment.