Skip to content

Commit 9068ca2

Browse files
authored
Merge pull request #136 from eandersson/3.13
Added Python 3.13 support
2 parents 81d0028 + 78e0818 commit 9068ca2

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [3.11.9, 3.12.6]
15+
python-version: [3.11.9, 3.12.6, 3.13.0]
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Changelog
33

44
Version 2.11.0
55
--------------
6+
- Added Python 3.13 support.
67
- Replaced select.select with select.poll on Linux by default.
78
- Replaced list with collections.deque - Thanks Bernhard Thiel.
89
- Removed unnecessary lock when building messages.

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Changelog
1717

1818
Version 2.11.0
1919
--------------
20+
- Added Python 3.13 support.
2021
- Replaced select.select with select.poll on Linux by default.
2122
- Replaced list with collections.deque - Thanks Bernhard Thiel.
2223
- Removed unnecessary lock when building messages.

amqpstorm/io.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,14 @@ def _ssl_wrap_socket(self, sock):
267267
)
268268
hostname = self._parameters['hostname']
269269
context = ssl.SSLContext(ssl.PROTOCOL_TLS)
270+
context.check_hostname = self._parameters['ssl_options'].get(
271+
'check_hostname', False
272+
)
270273
mode = self._parameters['ssl_options'].get('verify_mode', 'none')
271274
if mode.lower() == 'required':
272275
context.verify_mode = ssl.CERT_REQUIRED
273276
else:
274277
context.verify_mode = ssl.CERT_NONE
275-
check = self._parameters['ssl_options'].get('check_hostname', False)
276-
context.check_hostname = check
277278
context.load_default_certs()
278279
return context.wrap_socket(sock, do_handshake_on_connect=True,
279280
server_hostname=hostname)

docker/files/openssl.cnf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,17 @@ x509_extensions = root_ca_extensions
4040
commonName = hostname
4141

4242
[ root_ca_extensions ]
43-
basicConstraints = CA:true
43+
basicConstraints = critical, CA:TRUE
4444
keyUsage = keyCertSign, cRLSign
4545

4646
[ client_ca_extensions ]
47-
basicConstraints = CA:false
48-
keyUsage = digitalSignature,keyEncipherment
47+
basicConstraints=critical, CA:TRUE
48+
keyUsage = critical, cRLSign, digitalSignature, keyCertSign
4949
extendedKeyUsage = 1.3.6.1.5.5.7.3.2
5050

5151
[ server_ca_extensions ]
52-
basicConstraints = CA:false
53-
keyUsage = digitalSignature,keyEncipherment
52+
basicConstraints=critical, CA:TRUE
53+
keyUsage = critical, cRLSign, digitalSignature, keyCertSign
5454
extendedKeyUsage = 1.3.6.1.5.5.7.3.1
5555
subjectAltName = DNS:rmq.eandersson.net
56+

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def get_version(rel_path):
5454
'Programming Language :: Python :: 3.10',
5555
'Programming Language :: Python :: 3.11',
5656
'Programming Language :: Python :: 3.12',
57+
'Programming Language :: Python :: 3.13',
5758
'Programming Language :: Python :: Implementation :: CPython',
5859
'Programming Language :: Python :: Implementation :: PyPy',
5960
'Topic :: Communications',

0 commit comments

Comments
 (0)