Skip to content

Commit 542f7a6

Browse files
committed
deps: add basic 3.13 support
1 parent 2cf9dca commit 542f7a6

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/pytest-core-nompi.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838
pytest-ubuntu-py310-gcc9-omp,
3939
pytest-osx-py312-clang-omp,
4040
pytest-docker-py310-gcc-omp,
41-
pytest-docker-py310-icx-omp
41+
pytest-docker-py310-icx-omp,
42+
pytest-ubuntu-py313-gcc14-omp
4243
]
4344
set: [base, adjoint]
4445
include:
@@ -105,6 +106,13 @@ jobs:
105106
language: "openmp"
106107
sympy: "1.13"
107108

109+
- name: pytest-ubuntu-py313-gcc14-omp
110+
python-version: '3.13'
111+
os: ubuntu-24.04
112+
arch: "gcc-14"
113+
language: "openmp"
114+
sympy: "1.14"
115+
108116
- set: base
109117
test-set: 'not adjoint'
110118

@@ -155,8 +163,11 @@ jobs:
155163

156164
- name: Set pip flags for latest python (3.12)
157165
run: |
158-
if [ "${{ matrix.python-version }}" == '3.12' ]; then
159-
echo "PIPFLAGS='--break-system-packages'" >> $GITHUB_ENV
166+
ver="${{ matrix.python-version }}"
167+
major=${ver%%.*}
168+
minor=${ver#*.}; minor=${minor%%.*}
169+
if [ "$major" -eq 3 ] && [ "$minor" -ge 12 ]; then
170+
echo "PIPFLAGS='--break-system-packages'" >> $GITHUB_ENV
160171
fi
161172
162173
- name: Install dependencies

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description = "Finite Difference DSL for symbolic computation."
1212
license = { file = "LICENSE.md" }
1313
readme = "README.md"
1414
keywords = ["finite-difference", "DSL", "symbolic", "jit", "devito"]
15-
requires-python = ">=3.10,<3.13"
15+
requires-python = ">=3.10,<3.14"
1616
authors = [
1717
{ name = "Imperial College London", email = "g.gorman@imperial.ac.uk" },
1818
{ name = "Fabio Luporini", email = "fabio@devitocodes.com" },

0 commit comments

Comments
 (0)