Skip to content

Commit e6f523a

Browse files
committed
Test Python 3.12 and 3.13
1 parent fa2d98e commit e6f523a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest, windows-latest, macos-latest]
14-
python-version: ['3.9', '3.10', '3.11']
14+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1515
include:
1616
- {os: ubuntu-22.04, python-version: '3.7'}
1717
- {os: ubuntu-24.04, python-version: '3.8'}

setup.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def run(self):
3434

3535
subprocess.run(['coverage', 'erase'], check=True)
3636
subprocess.run(
37-
['coverage', 'run', 'setup.py', 'test'] +
38-
(['-q'] if self.verbose == 0 else []) +
39-
(['-s', self.test_suite] if self.test_suite else []),
37+
['coverage', 'run', '-m', 'unittest', 'discover'] +
38+
(['-v'] if self.verbose != 0 else []) +
39+
([self.test_suite] if self.test_suite else []),
4040
env=env, check=True
4141
)
4242
subprocess.run(['coverage', 'combine'], check=True,
@@ -75,12 +75,13 @@ def run(self):
7575
'License :: OSI Approved :: BSD License',
7676

7777
'Programming Language :: Python :: 3',
78-
'Programming Language :: Python :: 3.6',
7978
'Programming Language :: Python :: 3.7',
8079
'Programming Language :: Python :: 3.8',
8180
'Programming Language :: Python :: 3.9',
8281
'Programming Language :: Python :: 3.10',
8382
'Programming Language :: Python :: 3.11',
83+
'Programming Language :: Python :: 3.12',
84+
'Programming Language :: Python :: 3.13',
8485
],
8586

8687
packages=find_packages(exclude=['test', 'test.*']),

0 commit comments

Comments
 (0)