Skip to content

Commit

Permalink
Added unit testing for Python 3.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmvanbrunt committed Sep 26, 2024
1 parent 3d7a1e7 commit 8467440
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
python-version: ["3.13"]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Removed dependency on `attrs` and replaced with [dataclasses](https://docs.python.org/3/library/dataclasses.html)
* add `allow_clipboard` initialization parameter and attribute to disable ability to
add output to the operating system clipboard
* Updated unit tests to be Python 3.12 compliant.
* Updated unit tests to be Python 3.12 and 3.13 compliant.
* Fall back to bz2 compression of history file when lzma is not installed.
* Added settable called `scripts_add_to_history` which determines whether scripts and pyscripts
add commands to history.
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def docs(session):
)


@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12'])
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'])
@nox.parametrize('plugin', [None, 'ext_test', 'template', 'coverage'])
def tests(session, plugin):
if plugin is None:
Expand Down
4 changes: 2 additions & 2 deletions plugins/ext_test/build-pyenvs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
# build pythons
#

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

# function to find the latest patch of a minor version of python
function find_latest_version {
Expand Down
2 changes: 1 addition & 1 deletion plugins/ext_test/noxfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import nox


@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12'])
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'])
def tests(session):
session.install('invoke', './[test]')
session.run('invoke', 'pytest', '--junit', '--no-pty')
1 change: 1 addition & 0 deletions plugins/ext_test/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
# dependencies for development and testing
# $ pip install -e .[dev]
Expand Down
2 changes: 1 addition & 1 deletion plugins/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ unit tests found in the `tests` directory.
### Use nox to run unit tests in multiple versions of python

The included `noxfile.py` is setup to run the unit tests in python 3.8, 3.9
3.10, 3.11, and 3.12 You can run your unit tests in all of these versions
3.10, 3.11, 3.12, and 3.13 You can run your unit tests in all of these versions
of python by:
```
$ nox
Expand Down
4 changes: 2 additions & 2 deletions plugins/template/build-pyenvs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
# build pythons
#

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

# function to find the latest patch of a minor version of python
function find_latest_version {
Expand Down
2 changes: 1 addition & 1 deletion plugins/template/noxfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import nox


@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12'])
@nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'])
def tests(session):
session.install('invoke', './[test]')
session.run('invoke', 'pytest', '--junit', '--no-pty')
1 change: 1 addition & 0 deletions plugins/template/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
# dependencies for development and testing
# $ pip install -e .[dev]
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: Libraries :: Python Modules
""".splitlines(),
Expand Down

0 comments on commit 8467440

Please sign in to comment.