Skip to content

Commit d7e58bb

Browse files
committed
Support Python 3.13, drop 3.8 and PyPy 3.9
1 parent 843d25d commit d7e58bb

File tree

2 files changed

+17
-58
lines changed

2 files changed

+17
-58
lines changed

.github/workflows/ci.yml

+15-56
Original file line numberDiff line numberDiff line change
@@ -7,81 +7,40 @@ on:
77
pull_request:
88

99
jobs:
10-
Windows:
11-
name: 'Windows (${{ matrix.python }})'
12-
timeout-minutes: 20
13-
runs-on: 'windows-latest'
10+
test:
1411
strategy:
1512
fail-fast: false
1613
matrix:
17-
python: ['3.8', '3.9', '3.10', '3.11', '3.12-dev']
14+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
15+
os:
16+
- macos-latest
17+
- windows-latest
18+
- ubuntu-latest
19+
include:
20+
- python-version: pypy3.10
21+
os: ubuntu-latest
22+
name: ${{ fromJson('{"macos-latest":"macOS","windows-latest":"Windows","ubuntu-latest":"Ubuntu"}')[matrix.os] }} (${{ matrix.python-version }})
23+
timeout-minutes: 20
24+
runs-on: ${{ matrix.os }}
1825
steps:
1926
- name: Checkout
2027
uses: actions/checkout@v4
2128
- name: Setup python
2229
uses: actions/setup-python@v5
2330
with:
24-
python-version: '${{ matrix.python }}'
31+
python-version: '${{ matrix.python-version }}'
32+
allow-prereleases: true
2533
- name: Run tests
2634
run: ./ci.sh
2735
shell: bash
2836
- name: "Upload coverage data"
2937
uses: "actions/upload-artifact@v4"
3038
with:
31-
name: coverage-data-windows-${{ matrix.python }}
39+
name: coverage-data-${{ matrix.os }}-${{ matrix.python-version }}
3240
path: .coverage.*
3341
include-hidden-files: true
3442
if-no-files-found: ignore
3543

36-
Ubuntu:
37-
name: 'Ubuntu (${{ matrix.python }})'
38-
timeout-minutes: 10
39-
runs-on: 'ubuntu-latest'
40-
strategy:
41-
fail-fast: false
42-
matrix:
43-
python: ['3.8', '3.9', '3.10', '3.11', '3.12-dev', 'pypy3.9', 'pypy-3.10']
44-
steps:
45-
- name: Checkout
46-
uses: actions/checkout@v4
47-
- name: Setup python
48-
uses: actions/setup-python@v5
49-
with:
50-
python-version: '${{ matrix.python }}'
51-
- name: Run tests
52-
run: ./ci.sh
53-
- name: "Upload coverage data"
54-
uses: "actions/upload-artifact@v4"
55-
with:
56-
name: coverage-data-ubuntu-${{ matrix.python }}
57-
path: .coverage.*
58-
include-hidden-files: true
59-
if-no-files-found: ignore
60-
61-
macOS:
62-
name: 'macOS (${{ matrix.python }})'
63-
timeout-minutes: 10
64-
runs-on: 'macos-latest'
65-
strategy:
66-
fail-fast: false
67-
matrix:
68-
python: ['3.8', '3.9', '3.10', '3.11', '3.12-dev']
69-
steps:
70-
- name: Checkout
71-
uses: actions/checkout@v4
72-
- name: Setup python
73-
uses: actions/setup-python@v5
74-
with:
75-
python-version: '${{ matrix.python }}'
76-
- name: Run tests
77-
run: ./ci.sh
78-
- name: "Upload coverage data"
79-
uses: "actions/upload-artifact@v4"
80-
with:
81-
name: coverage-data-macos-${{ matrix.python }}
82-
path: .coverage.*
83-
include-hidden-files: true
84-
if-no-files-found: ignore
8544

8645
coverage:
8746
name: Combine & check coverage

setup.py

+2-2
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.8",
21+
python_requires=">=3.9",
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.8",
3635
"Programming Language :: Python :: 3.9",
3736
"Programming Language :: Python :: 3.10",
3837
"Programming Language :: Python :: 3.11",
3938
"Programming Language :: Python :: 3.12",
39+
"Programming Language :: Python :: 3.13",
4040
"Topic :: System :: Networking",
4141
"Topic :: Security :: Cryptography",
4242
"Topic :: Software Development :: Testing",

0 commit comments

Comments
 (0)