Skip to content

Commit c152cd1

Browse files
committed
Checked compatibility with NumPy V2
1 parent 70a66e2 commit c152cd1

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# PythonQwt Releases
22

3+
## Version 0.12.5
4+
5+
- Successfully tested with Python 3.12 and NumPy 2.0: requirements have been updated
6+
to remove the NumPy version upper bound constraint.
7+
38
## Version 0.12.4
49

510
- Fixed segmentation fault issue reported in the `PlotPy` project:

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ classifiers = [
3131
"Programming Language :: Python :: 3.12",
3232
]
3333
requires-python = ">=3.8, <4"
34-
dependencies = ["NumPy>=1.21,<2", "QtPy>=1.9"]
34+
dependencies = ["NumPy>=1.21", "QtPy>=1.9"]
3535
dynamic = ["version"]
3636

3737
[project.urls]
@@ -63,7 +63,7 @@ target-version = "py38" # Assume Python 3.8
6363

6464
[tool.ruff.lint]
6565
# all rules can be found here: https://beta.ruff.rs/docs/rules/
66-
select = ["E", "F", "W", "I"]
66+
select = ["E", "F", "W", "I", "NPY201"]
6767
ignore = [
6868
"E203", # space before : (needed for how black formats slicing)
6969
]

qwt/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
from qwt.text import QwtText # noqa: F401
5656
from qwt.toqimage import array_to_qimage as toQImage # noqa: F401
5757

58-
__version__ = "0.12.4"
58+
__version__ = "0.12.5"
5959
QWT_VERSION_STR = "6.1.5"
6060

6161

qwt/symbol.py

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from qtpy.QtGui import (
2020
QBrush,
2121
QPainter,
22-
QPainterPath,
2322
QPen,
2423
QPixmap,
2524
QPolygonF,

qwt/tests/test_errorbar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def drawSeries(self, painter, xMap, yMap, canvasRect, first, last=-1):
255255
# draw the caps
256256
if self.errorCap > 0:
257257
cap = self.errorCap / 2
258-
n, i, j = len(x), 0, 0
258+
n, i, _j = len(x), 0, 0
259259
lines = []
260260
while i < n:
261261
xi = xMap.transform(x[i])

qwt/tests/utils.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ def fill_layout(self):
162162
all_act.triggered.connect(lambda checked: run_all_tests(wait=False))
163163
folder_act = QW.QAction(self.get_std_icon("DirOpenIcon"), "", self)
164164
folder_act.setIconText("Open tests folder")
165-
open_test_folder = lambda checked: os.startfile(TEST_PATH)
165+
166+
def open_test_folder(checked):
167+
return os.startfile(TEST_PATH)
168+
166169
folder_act.triggered.connect(open_test_folder)
167170
about_act = QW.QAction(self.get_std_icon("FileDialogInfoView"), "", self)
168171
about_act.setIconText("About")

0 commit comments

Comments
 (0)