Skip to content

Commit 8467440

Browse files
committed
Added unit testing for Python 3.13.
1 parent 3d7a1e7 commit 8467440

File tree

12 files changed

+14
-11
lines changed

12 files changed

+14
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest, macos-latest, windows-latest]
12-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1313
fail-fast: false
1414
runs-on: ${{ matrix.os }}
1515
steps:

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest]
15-
python-version: ["3.12"]
15+
python-version: ["3.13"]
1616
fail-fast: false
1717
runs-on: ${{ matrix.os }}
1818
steps:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Removed dependency on `attrs` and replaced with [dataclasses](https://docs.python.org/3/library/dataclasses.html)
99
* add `allow_clipboard` initialization parameter and attribute to disable ability to
1010
add output to the operating system clipboard
11-
* Updated unit tests to be Python 3.12 compliant.
11+
* Updated unit tests to be Python 3.12 and 3.13 compliant.
1212
* Fall back to bz2 compression of history file when lzma is not installed.
1313
* Added settable called `scripts_add_to_history` which determines whether scripts and pyscripts
1414
add commands to history.

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def docs(session):
1717
)
1818

1919

20-
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12'])
20+
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'])
2121
@nox.parametrize('plugin', [None, 'ext_test', 'template', 'coverage'])
2222
def tests(session, plugin):
2323
if plugin is None:

plugins/ext_test/build-pyenvs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
# build pythons
1919
#
2020

21-
# Make a array of the python minor versions we want to install.
21+
# Make an array of the python minor versions we want to install.
2222
# Order matters in this list, because it's the order that the
2323
# virtualenvs will be added to '.python-version'. Feel free to modify
2424
# this list, but note that this script intentionally won't install
2525
# dev, rc, or beta python releases
26-
declare -a pythons=("3.8" "3.9", "3.10", "3.11", "3.12")
26+
declare -a pythons=("3.8" "3.9", "3.10", "3.11", "3.12", "3.13")
2727

2828
# function to find the latest patch of a minor version of python
2929
function find_latest_version {

plugins/ext_test/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import nox
22

33

4-
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12'])
4+
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'])
55
def tests(session):
66
session.install('invoke', './[test]')
77
session.run('invoke', 'pytest', '--junit', '--no-pty')

plugins/ext_test/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
'Programming Language :: Python :: 3.10',
4949
'Programming Language :: Python :: 3.11',
5050
'Programming Language :: Python :: 3.12',
51+
'Programming Language :: Python :: 3.13',
5152
],
5253
# dependencies for development and testing
5354
# $ pip install -e .[dev]

plugins/template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ unit tests found in the `tests` directory.
287287
### Use nox to run unit tests in multiple versions of python
288288

289289
The included `noxfile.py` is setup to run the unit tests in python 3.8, 3.9
290-
3.10, 3.11, and 3.12 You can run your unit tests in all of these versions
290+
3.10, 3.11, 3.12, and 3.13 You can run your unit tests in all of these versions
291291
of python by:
292292
```
293293
$ nox

plugins/template/build-pyenvs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
# build pythons
1919
#
2020

21-
# Make a array of the python minor versions we want to install.
21+
# Make an array of the python minor versions we want to install.
2222
# Order matters in this list, because it's the order that the
2323
# virtualenvs will be added to '.python-version'. Feel free to modify
2424
# this list, but note that this script intentionally won't install
2525
# dev, rc, or beta python releases
26-
declare -a pythons=("3.8" "3.9" "3.10" "3.11", "3.12")
26+
declare -a pythons=("3.8" "3.9" "3.10" "3.11", "3.12", "3.13")
2727

2828
# function to find the latest patch of a minor version of python
2929
function find_latest_version {

plugins/template/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import nox
22

33

4-
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12'])
4+
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'])
55
def tests(session):
66
session.install('invoke', './[test]')
77
session.run('invoke', 'pytest', '--junit', '--no-pty')

0 commit comments

Comments
 (0)