Skip to content

Commit 87c03ea

Browse files
authoredJan 12, 2025
Update to Python 3.13 (#302)
* Add Python 3.13 to GHA pytest-with-coverage workflow This lets us use the workflow to test whether all the packages that SalishSeaNowcast depends on have been updated to support Python 3.13. * Upgrade the minimum Python version to 3.13 Updated environment specifications, documentation, and workflows to require Python 3.13 instead of 3.12. Adjusted related links and annotations to reflect the new Python version. This ensures compatibility with the latest Python features and fixes.
1 parent d3802dd commit 87c03ea

9 files changed

+15
-15
lines changed
 

‎.github/workflows/pytest-with-coverage.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: [ '3.12' ]
18+
python-version: [ '3.13' ]
1919
runs-on: 'ubuntu-latest'
2020
steps:
2121
- name: Checkout repository

‎.github/workflows/sphinx-linkcheck.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
# Need to specify Python version here because we use test env which gets its
16+
# Need to specify the Python version here because we use test env which gets its
1717
# Python version via matrix
18-
python-version: [ '3.12' ]
18+
python-version: [ '3.13' ]
1919
uses: UBC-MOAD/gha-workflows/.github/workflows/sphinx-linkcheck.yaml@main
2020
with:
2121
python-version: ${{ matrix.python-version }}

‎README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SalishSeaNowcast
2424
| | :target: https://github.com/SalishSeaCast/SalishSeaNowcast/releases |
2525
| | :alt: Releases |
2626
| | .. image:: https://img.shields.io/python/required-version-toml?tomlFilePath=https://raw.githubusercontent.com/SalishSeaCast/SalishSeaNowcast/main/pyproject.toml&logo=Python&logoColor=gold&label=Python |
27-
| | :target: https://docs.python.org/3.12/ |
27+
| | :target: https://docs.python.org/3/ |
2828
| | :alt: Python Version from PEP 621 TOML |
2929
| | .. image:: https://img.shields.io/github/issues/SalishSeaCast/SalishSeaNowcast?logo=github |
3030
| | :target: https://github.com/SalishSeaCast/SalishSeaNowcast/issues |

‎docs/pkg_development.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
| | :target: https://github.com/SalishSeaCast/SalishSeaNowcast/releases |
4545
| | :alt: Releases |
4646
| | .. image:: https://img.shields.io/python/required-version-toml?tomlFilePath=https://raw.githubusercontent.com/SalishSeaCast/SalishSeaNowcast/main/pyproject.toml&logo=Python&logoColor=gold&label=Python |
47-
| | :target: https://docs.python.org/3.12/ |
47+
| | :target: https://docs.python.org/3/ |
4848
| | :alt: Python Version from PEP 621 TOML |
4949
| | .. image:: https://img.shields.io/github/issues/SalishSeaCast/SalishSeaNowcast?logo=github |
5050
| | :target: https://github.com/SalishSeaCast/SalishSeaNowcast/issues |
@@ -80,10 +80,10 @@ Python Version
8080
==============
8181

8282
.. image:: https://img.shields.io/python/required-version-toml?tomlFilePath=https://raw.githubusercontent.com/SalishSeaCast/SalishSeaNowcast/main/pyproject.toml&logo=Python&logoColor=gold&label=Python
83-
:target: https://docs.python.org/3.12/
83+
:target: https://docs.python.org/3/
8484
:alt: Python Version from PEP 621 TOML
8585

86-
The ``SalishSeaNowcast`` package is developed and tested using `Python`_ 3.12.
86+
The ``SalishSeaNowcast`` package is developed and tested using `Python`_ 3.13.
8787

8888
.. _Python: https://www.python.org/
8989

@@ -537,11 +537,11 @@ The output looks something like:
537537
.. code-block:: text
538538
539539
================================ test session starts ================================
540-
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
541-
Using --randomly-seed=3033986199
540+
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
541+
Using --randomly-seed=4145810385
542542
rootdir: /media/doug/warehouse/MEOPAR/SalishSeaNowcast
543543
configfile: pyproject.toml
544-
plugins: httpx-0.32.0, randomly-3.15.0, cov-6.0.0, anyio-4.6.2.post1, xdist-3.6.1
544+
plugins: anyio-4.8.0, randomly-3.15.0, httpx-0.35.0, cov-6.0.0, xdist-3.6.1
545545
collected 2372 items
546546
547547
tests/workers/test_make_live_ocean_files.py ......... [ 0%]

‎envs/environment-dev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies:
5757
- pygrib
5858
- pypdf
5959
- pyproj
60-
- python=3.12
60+
- python=3.13
6161
- pyyaml
6262
- pyzmq
6363
- requests

‎envs/environment-fig-dev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dependencies:
5050
- pygrib
5151
- pypdf
5252
- pyproj
53-
- python=3.12
53+
- python=3.13
5454
- pyyaml
5555
- requests
5656
- scipy

‎envs/environment-prod.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies:
5757
- pygrib
5858
- pypdf
5959
- pyproj
60-
- python=3.12
60+
- python=3.13
6161
- pyyaml
6262
- pyzmq
6363
- requests

‎envs/environment-rtd.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- matplotlib
1313
- pip
1414
- pygrib
15-
- python=3.12
15+
- python=3.13
1616
- retrying
1717

1818
# Sphinx and extensions

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ name = "SalishSeaNowcast"
2626
dynamic = [ "version" ]
2727
description = "SalishSeaCast ocean modeling automation system"
2828
readme = "README.rst"
29-
requires-python = ">=3.12"
29+
requires-python = ">=3.13"
3030
license = { file = "LICENSE" }
3131
authors = [
3232
{ name = "Doug Latornell", email = "dlatornell@eoas.ubc.ca" },

0 commit comments

Comments
 (0)