Skip to content

Commit bc3c026

Browse files
committed
Merge branch 'develop'
2 parents f4d9686 + 9df9757 commit bc3c026

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1409
-549
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Build wheels
19-
run: pipx run cibuildwheel==2.20.0
19+
run: pipx run cibuildwheel==2.21.2
2020

2121
- uses: actions/upload-artifact@v4
2222
with:

.github/workflows/build_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020

2121
- name: Build wheels
22-
uses: pypa/cibuildwheel@v2.20.0
22+
uses: pypa/cibuildwheel@v2.21.2
2323

2424
- uses: actions/upload-artifact@v4
2525
with:

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
# Inspired from https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
55

6-
name: Python package
6+
name: Build, install and test
77

88
on:
99
push:
10-
branches: [ "master" ]
10+
branches: [ "master", "develop" ]
1111
pull_request:
12-
branches: [ "master" ]
12+
branches: [ "master", "develop" ]
1313

1414
jobs:
1515
build:
@@ -21,12 +21,12 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
python-version: ["3.8", "3.11", "3.12"]
24+
python-version: ["3.9", "3.13"]
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v3
29+
uses: actions/setup-python@v5
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232
- name: Install dependencies

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Changelog #
22

3+
## Version 2.7.0 ##
4+
5+
Supported versions of Python have been updated (drop support for Python 3.8, add support for Python 3.13):
6+
7+
* PlotPy < 2.7.0: Python 3.8, 3.9, 3.10, 3.11 and 3.12
8+
* PlotPy >= 2.7.0: Python 3.9, 3.10, 3.11, 3.12 and 3.13
9+
10+
Other dependencies have been updated:
11+
12+
* Updated versions to those available at the time of the release of the oldest supported Python version (3.9)
13+
* Exception: Cython 3.0 is required for Python 3.13
14+
15+
💥 New features / Enhancements:
16+
17+
* Added `AnnotatedPolygon` annotation to items
18+
* Added `make.annotated_polygon` function to `plotpy.builder` module
19+
* Customization of annotation information:
20+
* Added `info_callback` argument to all annotation class constructors
21+
* Added `set_info_callback` method to all annotation classes
22+
* The `info_callback` is a function that takes the annotation object and returns a string with the information to display
23+
* Default `info_callback` is redirected to the `get_infos` method of the annotation object (this makes the feature backward compatible)
24+
25+
🛠️ Bug fixes:
26+
27+
* Fixed `pydicom` support: use `dcmread` instead of `read_file` to read DICOM files
28+
329
## Version 2.6.3 ##
430

531
🧯 In this release, test coverage is 79%.

doc/dev/platforms.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ The following sections describe the reference platforms for the project.
77

88
.. note::
99

10-
The officially supported Python versions are 3.8, 3.9 and 3.10.
11-
However, the project should work on any earlier Python 3 version.
10+
The officially supported Python versions are 3.9, 3.10, 3.11, 3.12 and 3.13.
1211

1312
The officially supported Qt binding is PyQt5. However, efforts have been
1413
made and will continue to be made to support PyQt6 and PySide6 as well.
1514

1615
The project is currently tested on the following platforms:
1716

1817
* Microsoft Windows 10 (64-bit)
18+
* Microsoft Windows 11 (64-bit)
1919
* CentOS Stream 8.8 (64-bit)
20+
* Ubuntu 22.04 LTS (64-bit)
2021

2122
However, it should work on any other platform supported by its dependencies.
2223

doc/features/items/builder.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ used to simplify the creation of plot items.
1212
:members:
1313

1414
.. autoclass:: plotpy.builder.PlotBuilder
15-
:members: widget,dialog,window,gridparam,grid,mcurve,pcurve,curve,merror,perror,error,histogram,phistogram,range,vcursor,hcursor,xcursor,marker,image,maskedimage,maskedxyimage,rgbimage,quadgrid,pcolor,trimage,xyimage,imagefilter,contours,histogram2D,rectangle,ellipse,polygon,circle,segment,svg,annotated_point,annotated_rectangle,annotated_ellipse,annotated_circle,annotated_segment,label,legend,info_label,range_info_label,computation,computations,computation2d,computations2d
15+
:members: widget,dialog,window,gridparam,grid,mcurve,pcurve,curve,merror,perror,error,histogram,phistogram,range,vcursor,hcursor,xcursor,marker,image,maskedimage,maskedxyimage,rgbimage,quadgrid,pcolor,trimage,xyimage,imagefilter,contours,histogram2D,rectangle,ellipse,polygon,circle,segment,svg,annotated_point,annotated_rectangle,annotated_ellipse,annotated_circle,annotated_segment,annotated_polygon,label,legend,info_label,range_info_label,computation,computations,computation2d,computations2d

doc/features/items/overview.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ The following annotation items are available:
7575
* :py:class:`.AnnotatedObliqueRectangle`
7676
* :py:class:`.AnnotatedEllipse`
7777
* :py:class:`.AnnotatedCircle`
78+
* :py:class:`.AnnotatedPolygon`
7879

7980
Labels
8081
^^^^^^

doc/features/items/reference.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Annotations
124124
:members:
125125
.. autoclass:: plotpy.items.AnnotatedCircle
126126
:members:
127+
.. autoclass:: plotpy.items.AnnotatedPolygon
128+
:members:
127129

128130
Labels
129131
^^^^^^

doc/features/tools/reference.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Shape tools
5858

5959
.. autoclass:: plotpy.tools.MultiLineTool
6060
:members:
61-
.. autoclass:: plotpy.tools.FreeFormTool
61+
.. autoclass:: plotpy.tools.PolygonTool
6262
:members:
6363
.. autoclass:: plotpy.tools.LabelTool
6464
:members:
@@ -84,6 +84,8 @@ Shape tools
8484
:members:
8585
.. autoclass:: plotpy.tools.AnnotatedSegmentTool
8686
:members:
87+
.. autoclass:: plotpy.tools.AnnotatedPolygonTool
88+
:members:
8789
.. autoclass:: plotpy.tools.HRangeTool
8890
:members:
8991

doc/intro/motivation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ From a developer point of view, PlotPy V2 is a major overhaul of PlotPy V1:
1313
all over the codebase
1414

1515
.. note::
16-
PlotPy V2 is fully typed using Python 3.8+ type annotations.
16+
PlotPy V2 is fully typed using Python type annotations.
1717
This means that you can use your IDE to get autocompletion and type checking
1818
(e.g. with VSCode, Visual Studio, etc.).
1919
This is a major improvement when you write code using PlotPy V2:

0 commit comments

Comments
 (0)