Skip to content

Commit be80c11

Browse files
authored
Merge pull request #2696 from kif/validate_3.14
Validate on python 3.14
2 parents 29b74c7 + 8b679b5 commit be80c11

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.10', '3.11', '3.12', '3.13']
18+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
1919

2020
steps:
2121
- uses: actions/checkout@v4

ci/requirements_gh.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ pyopencl
2121
numexpr != 2.8.6
2222
silx >= 2
2323
psutil
24+
# Needed for ImageD11:
25+
numba; python_version < '3.14'
26+
numba>=0.63.0b1; python_version >= '3.14'
2427
ImageD11
2528
importlib_resources; python_version < '3.9'

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ numexpr != 2.8.6
1010
h5py
1111
silx >= 2
1212
PyOpenGL
13-
PySide6
13+
PySide6; python_version < '3.14'
14+
pyqt6; python_version >= '3.14'
1415
hdf5plugin
1516
nbsphinx
1617
pydata-sphinx-theme

src/pyFAI/geometry/fit2d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
__docformat__ = 'restructuredtext'
3939

4040
import os
41+
import typing
4142
import logging
4243
from ..utils.dataclasses import case_insensitive_dataclass
4344
from math import pi, cos, sin, sqrt, acos, asin
@@ -85,7 +86,7 @@ def _fromdict(cls, dico):
8586

8687
def _asdict(self):
8788
"Mirror of _asdict method from NamedTuple"
88-
return {k: self.__getattr__(k) for k in self.__annotations__}
89+
return {k: self.__getattr__(k) for k in typing.get_type_hints(self.__class__)}
8990

9091
def __repr__(self):
9192
return f"DirectBeamDist= {self.directDist:.3f} mm\tCenter: x={self.centerX:.3f}, y={self.centerY:.3f} pix\t"\

0 commit comments

Comments
 (0)