Skip to content

Commit

Permalink
Merge pull request #500 from tlsfuzzer/py3.12
Browse files Browse the repository at this point in the history
Py3.12
  • Loading branch information
tomato42 committed Aug 3, 2023
2 parents 78430db + a9bd0a7 commit e5722d5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
- name: py3.10
os: ubuntu-latest
python-version: '3.10'
- name: py3.11
os: ubuntu-latest
python-version: '3.11'
- name: py3.12
os: ubuntu-latest
python-version: '3.12.0-beta.4'
- name: py2.6
os: ubuntu-latest
container: centos:6
Expand Down Expand Up @@ -70,6 +76,10 @@ jobs:
os: ubuntu-latest
python-version: '3.10'
opt-deps: ['m2crypto']
- name: py3.11 with m2crypto
os: ubuntu-latest
python-version: '3.11'
opt-deps: ['m2crypto']
- name: py2.7 with pycrypto
os: ubuntu-20.04
python-version: 2.7
Expand Down Expand Up @@ -107,6 +117,7 @@ jobs:
opt-deps: ['gmpy']
- name: py3.10 with gmpy
os: ubuntu-latest
# 3.10 is the last version gmpy builds with
python-version: '3.10'
opt-deps: ['gmpy']
- name: py2.7 with gmpy2
Expand All @@ -133,6 +144,10 @@ jobs:
os: ubuntu-latest
python-version: '3.10'
opt-deps: ['gmpy2']
- name: py3.11 with gmpy2
os: ubuntu-latest
python-version: '3.11'
opt-deps: ['gmpy2']
# finally test with multiple dependencies installed at the same time
- name: py2.7 with m2crypto, pycrypto, gmpy, and gmpy2
os: ubuntu-20.04
Expand All @@ -157,8 +172,13 @@ jobs:
- name: py3.10 with m2crypto, gmpy, and gmpy2
os: ubuntu-latest
python-version: '3.10'
opt-deps: ['m2crypto', 'gmpy', 'gmpy2']
- name: py3.11 with m2crypto, gmpy, and gmpy2
os: ubuntu-latest
python-version: '3.11'
# gmpy doesn't build with 3.11
# coverage to codeclimate can be submitted just once
opt-deps: ['m2crypto', 'gmpy', 'gmpy2', 'codeclimate']
opt-deps: ['m2crypto', 'gmpy2', 'codeclimate']
steps:
- uses: actions/checkout@v2
if: ${{ !matrix.container }}
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking'
Expand Down
10 changes: 9 additions & 1 deletion tlslite/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# See the LICENSE file for legal information regarding use of this file.

__version__ = "0.8.0-alpha45"
# the whole module is about importing most commonly used methods, for use
# by other applications
# pylint: disable=unused-import
from .constants import AlertLevel, AlertDescription, Fault
from .errors import *
from .checker import Checker
Expand All @@ -15,7 +18,12 @@

from .integration.httptlsconnection import HTTPTLSConnection
from .integration.tlssocketservermixin import TLSSocketServerMixIn
from .integration.tlsasyncdispatchermixin import TLSAsyncDispatcherMixIn
try:
from .integration.tlsasyncdispatchermixin import TLSAsyncDispatcherMixIn
except ModuleNotFoundError:
# asyncore was removed in 3.12, I don't use use it, so don't know how
# to fix it
pass
from .integration.pop3_tls import POP3_TLS
from .integration.imap4_tls import IMAP4_TLS
from .integration.smtp_tls import SMTP_TLS
Expand Down

0 comments on commit e5722d5

Please sign in to comment.