Skip to content

Commit adbad47

Browse files
committed
PlotPy is the new guiqwt
1 parent b4792b8 commit adbad47

File tree

15 files changed

+534
-25
lines changed

15 files changed

+534
-25
lines changed

.vscode/tasks.json

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "gettext - Scan",
6+
"type": "shell",
7+
"command": "cmd",
8+
"args": [
9+
"/c",
10+
"gettext.bat",
11+
"rescan",
12+
],
13+
"options": {
14+
"cwd": "scripts",
15+
"env": {
16+
"UNATTENDED": "1",
17+
"PYTHONUTF8": "1",
18+
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
19+
}
20+
},
21+
"group": {
22+
"kind": "build",
23+
"isDefault": true
24+
},
25+
"presentation": {
26+
"echo": true,
27+
"reveal": "always",
28+
"focus": false,
29+
"panel": "shared",
30+
"showReuseMessage": true,
31+
"clear": false
32+
}
33+
},
34+
{
35+
"label": "gettext - Compile",
36+
"type": "shell",
37+
"command": "cmd",
38+
"args": [
39+
"/c",
40+
"gettext.bat",
41+
"compile",
42+
],
43+
"options": {
44+
"cwd": "scripts",
45+
"env": {
46+
"UNATTENDED": "1",
47+
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
48+
}
49+
},
50+
"group": {
51+
"kind": "build",
52+
"isDefault": true
53+
},
54+
"presentation": {
55+
"echo": true,
56+
"reveal": "always",
57+
"focus": false,
58+
"panel": "shared",
59+
"showReuseMessage": true,
60+
"clear": false
61+
}
62+
},
63+
{
64+
"label": "Run Pylint",
65+
"type": "shell",
66+
"command": "cmd",
67+
"args": [
68+
"/c",
69+
"run_pylint.bat",
70+
// "--disable=R0801,C0103,C0114,C0115,C0116,W0612,W0613",
71+
"--disable=fixme,C,R,W",
72+
],
73+
"options": {
74+
"cwd": "scripts",
75+
"env": {
76+
"UNATTENDED": "1",
77+
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
78+
}
79+
},
80+
"group": {
81+
"kind": "build",
82+
"isDefault": true
83+
},
84+
"presentation": {
85+
"echo": true,
86+
"reveal": "always",
87+
"focus": false,
88+
"panel": "dedicated",
89+
"showReuseMessage": true,
90+
"clear": true
91+
}
92+
},
93+
{
94+
"label": "Clean Up",
95+
"type": "shell",
96+
"command": "cmd",
97+
"args": [
98+
"/c",
99+
"clean_up.bat"
100+
],
101+
"options": {
102+
"cwd": "scripts",
103+
},
104+
"group": {
105+
"kind": "build",
106+
"isDefault": true
107+
},
108+
"presentation": {
109+
"echo": true,
110+
"reveal": "always",
111+
"focus": false,
112+
"panel": "shared",
113+
"showReuseMessage": true,
114+
"clear": false
115+
}
116+
},
117+
{
118+
"label": "Build documentation",
119+
"type": "shell",
120+
"command": "cmd",
121+
"options": {
122+
"cwd": "scripts",
123+
"env": {
124+
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
125+
"UNATTENDED": "1",
126+
}
127+
},
128+
"args": [
129+
"/c",
130+
"build_doc.bat"
131+
],
132+
"problemMatcher": [],
133+
"group": {
134+
"kind": "build",
135+
"isDefault": true
136+
},
137+
"presentation": {
138+
"echo": true,
139+
"reveal": "always",
140+
"focus": false,
141+
"panel": "shared",
142+
"showReuseMessage": true,
143+
"clear": true
144+
}
145+
},
146+
{
147+
"label": "Build all wheels",
148+
"type": "shell",
149+
"command": "cmd",
150+
"options": {
151+
"cwd": "scripts",
152+
"env": {
153+
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
154+
"UNATTENDED": "1",
155+
}
156+
},
157+
"args": [
158+
"/c",
159+
"build_wheels.bat"
160+
],
161+
"problemMatcher": [],
162+
"group": {
163+
"kind": "build",
164+
"isDefault": true
165+
},
166+
"presentation": {
167+
"echo": true,
168+
"reveal": "always",
169+
"focus": false,
170+
"panel": "shared",
171+
"showReuseMessage": true,
172+
"clear": true
173+
},
174+
"dependsOrder": "sequence",
175+
"dependsOn": [
176+
"Clean Up",
177+
]
178+
}
179+
]
180+
}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# guiqwt Releases #
22

3+
## Version 4.4.5 ##
4+
5+
Added warning regarding package obsolescence.
6+
[PlotPy](https://github.com/PlotPyStack/plotpy) is the new version of guiqwt.
7+
38
## Version 4.4.4 ##
49

510
Added compatibility with Python 3.12.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
<img src="https://raw.githubusercontent.com/PlotPyStack/plotpy/master/doc/images/plotpy-banner.png">
1616

17-
guiqwt will soon be replaced by [plotpy](https://github.com/PlotPyStack/plotpy) which is a complete rewrite of the library, under more permissive license terms (BSD) with a lot of improvements (automatic test suite with ~70% test coverage, unified curve/image ready-to-use widgets, new documentation, ...).
17+
guiqwt has been replaced by [PlotPy](https://github.com/PlotPyStack/plotpy) which is a complete rewrite of the library, under more permissive license terms (BSD) with a lot of improvements (automatic test suite with ~70% test coverage, unified curve/image ready-to-use widgets, new documentation, ...).
18+
We strongly recommend to use PlotPy instead of guiqwt. First, because guiqwt is not maintained anymore and second, because PlotPy is far more robust and tested.
19+
Moreover, you can easily migrate your existing guiqwt-based code to PlotPy thanks to the [migration guide](https://plotpy.readthedocs.io/en/latest/dev/guiqwt_to_plotpy.html).
1820

1921
------
2022

doc/images/plotpy-banner.png

9.58 KB
Loading

doc/index.rst

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
.. automodule:: guiqwt
22

3-
.. only:: html and not htmlhelp
4-
5-
.. note::
6-
7-
Windows users may download the :download:`CHM Manual <../guiqwt.chm.zip>`.
8-
9-
After downloading this file, you may see blank pages in the documentation.
10-
That's because Windows is blocking CHM files for security reasons.
11-
Fixing this problem is easy:
12-
13-
* Right-click the CHM file, select properties, then click “Unblock”.
14-
* Or compress the CHM file into a zip archive and decompress it in
15-
another directory.
16-
* Do not open the CHM file on a network drive.
17-
183
Contents:
194

205
.. toctree::
216
:maxdepth: 2
22-
7+
238
overview
249
installation
2510
migrating_from_v2_to_v3
@@ -28,7 +13,7 @@ Contents:
2813
disthelpers
2914
reference/index
3015
development
31-
16+
3217

3318
Indices and tables:
3419

guiqwt/__init__.py

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# -*- coding: utf-8 -*-
22
"""
3+
.. warning::
4+
5+
*guiqwt* has been replaced by a new package called `PlotPy`_, which is a complete
6+
rewrite of the library, under more permissive license terms (BSD) with a lot of
7+
improvements (automatic test suite with ~70% test coverage, unified curve/image
8+
ready-to-use widgets, new documentation, ...).
9+
10+
.. figure:: images/plotpy-banner.png
11+
:align: center
12+
13+
We strongly recommend to use `PlotPy`_ instead of guiqwt. First, because guiqwt is
14+
not maintained anymore and second, because `PlotPy`_ is far more robust and tested.
15+
Moreover, you can easily migrate your existing guiqwt-based code to `PlotPy`_
16+
thanks to the `migration guide <https://plotpy.readthedocs.io/en/latest/dev/guiqwt_to_plotpy.html>`_.
17+
18+
.. _PlotPy: https://github.com/PlotPyStack/plotpy
19+
320
guiqwt
421
======
522
@@ -23,16 +40,24 @@
2340
"""
2441

2542

26-
__version__ = "4.4.4" # Update here *AND* in setup.py!
43+
__version__ = "4.4.5" # Update here *AND* in setup.py!
2744
# (Until setup.py has been fully retrofitted, this manual sync is mandatory)
2845

2946

3047
def about(html=True, copyright_only=False):
3148
"""Return text about this package"""
32-
import sys, os, os.path as osp, platform, guidata, guiqwt, qwt
33-
from guiqwt.config import _
49+
import os
50+
import os.path as osp
51+
import platform
52+
import sys
53+
54+
import guidata
55+
import qwt
3456
from qtpy import QtCore as QC
3557

58+
import guiqwt
59+
from guiqwt.config import _
60+
3661
name = __file__.split(osp.sep)[-2]
3762
tf1 = (
3863
name,
@@ -599,3 +624,11 @@ def about(html=True, copyright_only=False):
599624
#
600625
#
601626
# Version 2.0 dated 2006-09-05.
627+
#
628+
# 13.2 Failing an amicable solution within two (2) months as from their
629+
# occurrence, and unless emergency proceedings are necessary, the
630+
# disagreements or disputes shall be referred to the Paris Courts having
631+
# jurisdiction, by the more diligent Party.
632+
#
633+
#
634+
# Version 2.0 dated 2006-09-05.

scripts/build_dist.bat

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@echo off
2+
REM This script was copied from PythonQwt project
3+
REM ======================================================
4+
REM Package build script
5+
REM ======================================================
6+
REM Licensed under the terms of the MIT License
7+
REM Copyright (c) 2020 Pierre Raybaut
8+
REM (see PythonQwt LICENSE file for more details)
9+
REM ======================================================
10+
call %~dp0utils GetScriptPath SCRIPTPATH
11+
call %FUNC% GetLibName LIBNAME
12+
call %FUNC% GetModName MODNAME
13+
call %FUNC% SetPythonPath
14+
call %FUNC% UsePython
15+
if exist MANIFEST ( del /q MANIFEST )
16+
%PYTHON% -m build
17+
rmdir /s /q %LIBNAME%.egg-info
18+
call %FUNC% EndOfScript

scripts/build_doc.bat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@echo off
2+
REM This script was copied from PythonQwt project
3+
REM ======================================================
4+
REM Documentation build script
5+
REM ======================================================
6+
REM Licensed under the terms of the MIT License
7+
REM Copyright (c) 2020 Pierre Raybaut
8+
REM (see PythonQwt LICENSE file for more details)
9+
REM ======================================================
10+
setlocal
11+
call %~dp0utils GetScriptPath SCRIPTPATH
12+
call %FUNC% GetLibName LIBNAME
13+
call %FUNC% GetModName MODNAME
14+
call %FUNC% SetPythonPath
15+
call %FUNC% UsePython
16+
cd %SCRIPTPATH%\..
17+
%PYTHON% doc\update_requirements.py
18+
sphinx-build -b html doc build\doc
19+
start build\doc\index.html
20+
call %FUNC% EndOfScript

scripts/build_inplace.bat

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@echo off
2+
REM This script was copied from PythonQwt project
3+
REM ======================================================
4+
REM Package build script
5+
REM ======================================================
6+
REM Licensed under the terms of the MIT License
7+
REM Copyright (c) 2020 Pierre Raybaut
8+
REM (see PythonQwt LICENSE file for more details)
9+
REM ======================================================
10+
setlocal enabledelayedexpansion
11+
call %~dp0utils GetScriptPath SCRIPTPATH
12+
call %FUNC% GetModName MODNAME
13+
call %FUNC% SetPythonPath
14+
15+
if exist MANIFEST ( del /q MANIFEST )
16+
:: Iterate over all directories in the grandparent directory
17+
:: (WinPython base directories)
18+
call %FUNC% GetPythonExeGrandParentDir DIR0
19+
for /D %%d in ("%DIR0%*") do (
20+
:: Get the directory name without the path
21+
for %%n in (%%d) do set "DIRNAME=%%~nxn"
22+
23+
:: Check if the directory ends with "-PyQt6" or "-PySide6"
24+
if not "!DIRNAME:~-6!"=="-PyQt6" (
25+
if not "!DIRNAME:~-8!"=="-PySide6" (
26+
set WINPYDIRBASE=%%d
27+
call !WINPYDIRBASE!\scripts\env.bat
28+
echo ******************************************************************************
29+
echo Building %MODNAME% from "%%d"
30+
echo ******************************************************************************
31+
python setup.py build_ext --inplace
32+
echo ----
33+
)
34+
)
35+
)
36+
call %FUNC% EndOfScript

0 commit comments

Comments
 (0)