Skip to content

Commit 5181a00

Browse files
authored
Drop Python 3.7, add PyPy 3.10 and CPython 3.12 (#609)
* Drop Python 3.7, add PyPy 3.10 and CPython 3.12 * Add news entry
1 parent 76cd875 commit 5181a00

File tree

9 files changed

+18
-16
lines changed

9 files changed

+18
-16
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
17+
python: ['3.8', '3.9', '3.10', '3.11', '3.12-dev']
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v3
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
python: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3.9']
42+
python: ['3.8', '3.9', '3.10', '3.11', '3.12-dev', 'pypy3.9', 'pypy-3.10']
4343
steps:
4444
- name: Checkout
4545
uses: actions/checkout@v3
@@ -63,7 +63,7 @@ jobs:
6363
strategy:
6464
fail-fast: false
6565
matrix:
66-
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
66+
python: ['3.8', '3.9', '3.10', '3.11', '3.12-dev']
6767
steps:
6868
- name: Checkout
6969
uses: actions/checkout@v3

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
- name: Setup python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: '3.9'
20+
python-version: '3.x'
2121
- name: Run lint
2222
run: ./lint.sh

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Vital statistics
3333

3434
**Bug tracker and source code:** https://github.com/python-trio/trustme
3535

36-
**Tested on:** Python 3.7+, CPython and PyPy
36+
**Tested on:** Python 3.8+, CPython and PyPy
3737

3838
**License:** MIT or Apache 2, your choice.
3939

@@ -73,14 +73,14 @@ Programmatic usage:
7373
# trustme is happy either way.
7474
7575
# ----- or -----
76-
76+
7777
# Save the PEM-encoded data to a file to use in non-Python test
7878
# suites:
7979
ca.cert_pem.write_to_path("ca.pem")
8080
server_cert.private_key_and_cert_chain_pem.write_to_path("server.pem")
81-
81+
8282
# ----- or -----
83-
83+
8484
# Put the PEM-encoded data in a temporary file, for libraries that
8585
# insist on that:
8686
with ca.cert_pem.tempfile() as ca_temp_path:

docs-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.7
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
44
#
5-
# pip-compile docs-requirements.in
5+
# pip-compile --resolver=backtracking docs-requirements.in
66
#
77
alabaster==0.7.13
88
# via sphinx

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ works. It demonstrates a simple TLS server and client that connect to
1111
each other using :mod:`trustme`\-generated certs.
1212

1313
This example requires `Trio <https://trio.readthedocs.io>`__ (``pip
14-
install -U trio``) and Python 3.7+. Note that while :mod:`trustme` is
14+
install -U trio``) and Python 3.8+. Note that while :mod:`trustme` is
1515
maintained by the Trio project, :mod:`trustme` is happy to work with
1616
any networking library.
1717

newsfragments/609.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for PyPy 3.10 and Python 3.12.

newsfragments/609.removal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove support for Python 3.7.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
package_dir={'': 'src'},
2020
url="https://github.com/python-trio/trustme",
21-
python_requires=">=3.7",
21+
python_requires=">=3.8",
2222
install_requires=[
2323
"cryptography>=3.1",
2424
"idna>=2.0",
@@ -32,11 +32,11 @@
3232
"Programming Language :: Python :: Implementation :: PyPy",
3333
"Programming Language :: Python :: 3",
3434
"Programming Language :: Python :: 3 :: Only",
35-
"Programming Language :: Python :: 3.7",
3635
"Programming Language :: Python :: 3.8",
3736
"Programming Language :: Python :: 3.9",
3837
"Programming Language :: Python :: 3.10",
3938
"Programming Language :: Python :: 3.11",
39+
"Programming Language :: Python :: 3.12",
4040
"Topic :: System :: Networking",
4141
"Topic :: Security :: Cryptography",
4242
"Topic :: Software Development :: Testing",

test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.8
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
5-
# pip-compile test-requirements.in
5+
# pip-compile --resolver=backtracking test-requirements.in
66
#
77
attrs==23.1.0
88
# via service-identity

0 commit comments

Comments
 (0)