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 e118a33
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
- '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 e118a33

Please sign in to comment.