Skip to content

Commit 73ceb13

Browse files
committed
Test on Python 3.13
1 parent 50d43c5 commit 73ceb13

File tree

9 files changed

+44
-8
lines changed

9 files changed

+44
-8
lines changed

.github/workflows/python_ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "windows-2019"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12'
25+
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13'
2626

2727
strategy:
2828
fail-fast: False
@@ -34,6 +34,7 @@ jobs:
3434
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
3535
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
3636
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
37+
- {python-version: "3.13", testenvs: "py313,build", experimental: False}
3738

3839
steps:
3940
- name: Checkout 🛎️

.github/workflows/python_ci_linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: "ubuntu-20.04"
2424
continue-on-error: ${{ matrix.config.experimental }}
2525
env:
26-
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12'
26+
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13'
2727

2828
strategy:
2929
fail-fast: False
@@ -35,6 +35,7 @@ jobs:
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
3636
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
3737
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
38+
- {python-version: "3.13", testenvs: "py313,build", experimental: False}
3839

3940
steps:
4041
- name: Checkout 🛎️

.github/workflows/python_ci_macos.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "macos-13"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12'
25+
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13'
2626

2727
strategy:
2828
fail-fast: False
@@ -34,6 +34,7 @@ jobs:
3434
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
3535
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
3636
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
37+
- {python-version: "3.13", testenvs: "py313,build", experimental: False}
3738

3839
steps:
3940
- name: Checkout 🛎️

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ base-classifiers = [
4343
"Topic :: Scientific/Engineering :: Visualization",
4444
"Topic :: Software Development :: Libraries :: Python Modules",
4545
]
46-
python-versions = [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12",]
46+
python-versions = [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13",]
4747
python-implementations = [ "CPython",]
4848
platforms = [ "Windows", "macOS", "Linux",]
4949
license-key = "GPL-2.0-only"

regen_mpl_baseline.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ tox -e py37 -- --mpl-generate-path=tests/baseline
55
tox -e py37 -- --mpl-generate-hash-library=tests/image_hashes_37.json
66
tox -e py38 -- --mpl-generate-hash-library=tests/image_hashes_38.json
77
tox -e py39 -- --mpl-generate-hash-library=tests/image_hashes.json
8-
# tox -e py313 -- --mpl-generate-hash-library=image_hashes_313.json
8+
tox -e py313 -- --mpl-generate-hash-library=tests/image_hashes_313.json
99

1010
python3 sort_hashes_json.py

repo_helper.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ python_versions:
3131
- '3.10'
3232
- '3.11'
3333
- '3.12'
34+
- '3.13'
3435

3536
classifiers:
3637
- "Development Status :: 5 - Production/Stable"

sort_hashes_json.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828

2929
for filename in [
3030
"tests/image_hashes_37.json",
31-
"tests/image_hashes_38.json", # "tests/image_hashes_313.json",
31+
"tests/image_hashes_38.json",
32+
"tests/image_hashes_313.json",
3233
"tests/image_hashes.json",
3334
]:
3435
with open(filename, encoding="UTF-8") as fp:

tests/image_hashes_313.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"tests.test_plot.test_plot_mass_spec_linestyle": "2bf5adffda83a383b7d5d1b5858fd033be8222fd0fe568eefe975802ded0746a",
3+
"tests.test_plot.test_plot_mass_spec_alpha": "d9fbddaf7a9dd5e0ebeca7563315e81751bceb01486a1db4e8abc385db0ba3d2",
4+
"tests.test_plot.test_plot_tic": "b372d31c64e3291e3832d00a23ce68fadb3ea2d8735700f05ef8057620beec65",
5+
"tests.test_plot.test_plot_ic_linewidth": "64cba184d55f5ad751bf96cbb5f0a45cb95ef7357d5dea7fae6edd9275bc3535",
6+
"tests.test_plot.test_plot_tic_label": "1e14369208b79be937569cec64957923ac57a5c93b947fbd1c641ab851be1361",
7+
"tests.test_plot.test_plot_tic_linestyle": "c3c5e1c95c316dd63565f7369b528c3677500e53b5702cb21eee48f23c22a69a",
8+
"tests.test_plot.test_plot_ic_multiple": "d52028dafe5216324d93eaf762d4700b3ae3cf1d2d0505700b1ae811ee365fdf",
9+
"tests.test_plot.test_plot_head2tail": "f3728581bf8c4a2e2b151e383533a0679639932dbe7ab71b929dd0c03355724e",
10+
"tests.test_plot.test_plot_tic_title": "3dd40a7ae0d71897c464df73294e3492ae98cd767272e18d59a1d8decf307ab6",
11+
"tests.test_plot.test_plot_ic_title": "32cbef0a816574d3fea59b0b7e72ce1420dc0f7c8f05b447b27cc0ae51f9f925",
12+
"tests.test_plot.test_plot_tic_linewidth": "3c4a128807b5c5623b6835ed8acd805e7e7c26e5dfe95019bfc86b866b60b803",
13+
"tests.test_plot.test_plot_mass_spec_width": "81b155b36807638f0897d4f163ae5c3932c365dbf38dfd3cf1267d20e56d4fbb",
14+
"tests.test_plot.test_plot_peaks_errors": "a1bb075d07e386cc9e90be5e2614a01187423ed77ef50550e8c5745cdaed4bd4",
15+
"tests.test_plot.test_plot_ic_linestyle": "f3bde71d804cc0c67a7a6c467bf1aaed7fc193ff51d83025bbc705de07d814ad",
16+
"tests.test_plot.test_plot_ic_alpha": "e56d82b8ef4db63bb55d88d7d2fce1efa9a554f6e0a5dd28fd6ba92977f10399",
17+
"tests.test_plot.test_plot_ic": "86a48e733b0086dc9aa605617b5ebc3aa25642b509deea0294e3c454cb898cd2",
18+
"tests.test_plot.test_plot_peaks_with_tic": "00302994fb9ed825cc2382ad578224e1b4505148062b2ac689c7b2e150ff4cdd",
19+
"tests.test_plot.test_plot_tic_alpha": "21159bc075134ad02121ebfae555810408f760ef1385d946f0360405cc598749",
20+
"tests.test_plot.test_plot_ic_minutes": "0ee4ba15ab80416731eb47d046269a6b3693d95a050559443aba962d055a3f07",
21+
"tests.test_plot.test_plot_mass_spec": "2bf5adffda83a383b7d5d1b5858fd033be8222fd0fe568eefe975802ded0746a",
22+
"tests.test_plot.test_plot_mass_spec_title": "1270421b23d3067a0be39b021546ad827f5b25f908b8097c51e5ede8ab096a5b",
23+
"tests.test_plot.test_plot_ic_label": "9114b8a63fcf1f7b5488e33ad1740628a9c11b7dba07c259949700c9f9f10f97"
24+
}

tox.ini

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# * check-wheel-contents
2222

2323
[tox]
24-
envlist = py37, py38, py39, py310, py311, py312, mypy, build
24+
envlist = py37, py38, py39, py310, py311, py312, py313, mypy, build
2525
skip_missing_interpreters = True
2626
isolated_build = True
2727
requires =
@@ -31,7 +31,7 @@ requires =
3131
virtualenv!=20.16.0
3232

3333
[envlists]
34-
test = py37, py38, py39, py310, py311, py312
34+
test = py37, py38, py39, py310, py311, py312, py313
3535
qa = mypy, lint
3636
cov = py38, coverage
3737

@@ -50,6 +50,13 @@ setenv =
5050
PYTHONDEVMODE=1
5151
PIP_DISABLE_PIP_VERSION_CHECK=1
5252

53+
[testenv:py313]
54+
download = True
55+
setenv =
56+
PYTHONDEVMODE=1
57+
PIP_DISABLE_PIP_VERSION_CHECK=1
58+
UNSAFE_PYO3_SKIP_VERSION_CHECK=1
59+
5360
[testenv:py312]
5461
download = True
5562
setenv =

0 commit comments

Comments
 (0)