Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PythonQwt and guidata.

### Technology Stack

- **Python**: 3.9+ (`from __future__ import annotations`)
- **Python**: 3.10+ (`from __future__ import annotations`)
- **Core**: NumPy, SciPy, scikit-image
- **GUI**: Qt via QtPy, guidata, PythonQwt
- **Build**: Some features rely on Cython extensions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_pyqt5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.13", "3.14"]
python-version: ["3.10", "3.13", "3.14"]

steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion doc/dev/platforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The following sections describe the reference platforms for the project.

.. note::

The officially supported Python versions are 3.9, 3.10, 3.11, 3.12 and 3.13.
The officially supported Python versions are 3.10, 3.11, 3.12, 3.13 and 3.14.

The officially supported Qt binding is PyQt5. However, efforts have been
made and will continue to be made to support PyQt6 and PySide6 as well.
Expand Down
4 changes: 4 additions & 0 deletions doc/release_notes/release_2.11.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Version 2.11 #

## Unreleased ##

* Python 3.10 or later is now required, and wheels are no longer built for Python 3.9. Python 3.9 users must keep an earlier compatible release.

## PlotPy Version 2.11.2 ##

🛠️ Bug fixes:
Expand Down
2 changes: 1 addition & 1 deletion doc/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The `PlotPy` package requires the following Python modules:
- Version
- Summary
* - Python
- >=3.9, <4
- >=3.10, <4
- Python programming language
* - guidata
- >= 3.14.1
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ classifiers = [
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: Microsoft :: Windows :: Windows 11",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -36,7 +35,7 @@ classifiers = [
"Topic :: Software Development :: Widget Sets",
"Topic :: Utilities",
]
requires-python = ">=3.9, <4"
requires-python = ">=3.10, <4"
dependencies = [
"guidata >= 3.14.1",
"PythonQwt >= 0.16",
Expand Down Expand Up @@ -86,7 +85,7 @@ testpaths = ["plotpy"]
exclude = [".git", ".vscode", "build", "dist","venv*",".venv*"]
line-length = 88 # Same as Black.
indent-width = 4 # Same as Black.
target-version = "py39" # Assume Python 3.9.
target-version = "py310" # Assume Python 3.10.

[tool.ruff.lint]
# all rules can be found here: https://beta.ruff.rs/docs/rules/
Expand Down Expand Up @@ -117,5 +116,5 @@ line-ending = "auto" # Like Black, automatically detect the appropr
convention = "google"

[tool.cibuildwheel]
build = ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
skip = ["*-manylinux_i686", "*-musllinux*"]
22 changes: 11 additions & 11 deletions scripts/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ set -e -u -x
ARCH=$(uname -m)
export PLAT=manylinux_2_24_$ARCH

# Accurately check if Python version is 3.9 or greater
function is_python_version_ge_39 {
# Accurately check if Python version is 3.10 or greater
function is_python_version_ge_310 {
local pydir="$1"
if [[ $pydir =~ cp([0-9]+)([0-9]+)-cp ]]; then
if [[ $pydir =~ cp([0-9])([0-9]+)-cp ]]; then
local version="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}"
# Use sort with version sort flag to compare version against 3.9
if [[ $(echo -e "3.9\n$version" | sort -V | head -n1) == "3.9" ]]; then
return 0 # True, version is >= 3.9
# Use sort with version sort flag to compare version against 3.10
if [[ $(echo -e "3.10\n$version" | sort -V | head -n1) == "3.10" ]]; then
return 0 # True, version is >= 3.10
fi
fi
return 1 # False, version is < 3.9
return 1 # False, version is < 3.10
}

# Compile wheels, only for CPython 3.9+
# Compile wheels, only for CPython 3.10+
for PYDIR in /opt/python/*; do
if is_python_version_ge_39 "$PYDIR"; then
if is_python_version_ge_310 "$PYDIR"; then
PYBIN="$PYDIR/bin"
"${PYBIN}/pip" install -r /io/requirements.txt
"${PYBIN}/pip" wheel /io/ --no-deps -w wheelhouse/
Expand All @@ -33,9 +33,9 @@ for wheel in wheelhouse/*.whl; do
fi
done

# Install packages and test, only for CPython 3.9+
# Install packages and test, only for CPython 3.10+
for PYDIR in /opt/python/*; do
if is_python_version_ge_39 "$PYDIR"; then
if is_python_version_ge_310 "$PYDIR"; then
PYBIN="$PYDIR/bin"
"${PYBIN}/pip" install plotpy --no-index -f /io/wheelhouse
(cd "$HOME"; INSTDIR=$("${PYBIN}/python" -c "import plotpy, os.path as osp; print(osp.dirname(plotpy.__file__))"); export QT_QPA_PLATFORM=offscreen; "${PYBIN}/pytest" "$INSTDIR")
Expand Down
Loading