Commit Graph

89 Commits

Author SHA1 Message Date
Lesserkuma
97d4a3a00b 3.29 2023-05-14 14:16:19 +02:00
Lesserkuma
c94e76d8cb 3.28 2023-05-05 12:51:56 +02:00
Lesserkuma
e694b8927c 3.27 2023-04-26 18:57:51 +02:00
Lesserkuma
2cf0e1fb09 3.27 2023-04-26 11:53:23 +02:00
Lesserkuma
fff59a36fa
Merge pull request #73 from ide/pyside2-version
Require PySide2>=5.14 during installation, avoid incompatible PySide2 at runtime
2023-04-26 11:34:58 +02:00
James Ide
25076c3824
Require PySide2>=5.14 during installation, avoid incompatible PySide2 at runtime
These changes help prevent users from installing incompatible versions of PySide2. If they already have an incompatible version installed, we also don't want to use it at runtime.

A notable feature of this change is that running `pip install 'FlashGBX[qt5]'` should now fail with Python 3.11. Newer, required versions of PySide2 don't support Python 3.11, so pip installs an old, incompatible version. It is better to fail early when running pip than when running FlashGBX.

Finding the minimum version
---
FlashGBX requires PySide2 5.14.0 or newer. This is now expressed in setup.py. Additionally, if an older version of PySide2 is installed, the pyside.py helper script will check its version and avoid using it if it's too old.

I tested manually installing 5.13.2, 5.14.0, 5.15.0, and the latest, 5.15.2.1. With 5.13.2, `python -m FlashGBX` prints:
```
NOTE: GUI mode couldn’t be launched, but the application can be run in CLI mode.
      Optional command line switches are explained above.

Traceback (most recent call last):
  File "~/.venv/lib/python3.11/site-packages/FlashGBX/FlashGBX.py", line 187, in main
    app = FlashGBX_GUI.FlashGBX_GUI(args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.venv/lib/python3.11/site-packages/FlashGBX/FlashGBX_GUI.py", line 44, in __init__
    self.setWindowFlags(self.windowFlags() | QtCore.Qt.MSWindowsFixedSizeDialogHint)
TypeError: 'PySide2.QtCore.Qt.WindowType' object cannot be interpreted as an integer
```

FlashGBX launches successfully with newer versions of PySide2.

Testing
---
Installed PySide2==5.13.2 and PySide6==6.5.0 with pip. Launched FlashGBX to verify that although an incompatible version of PySide2 was available, FlashGBX's new version check made it use PySide6 and launched successfully.
2023-04-25 19:48:40 -07:00
Lesserkuma
47a334a143 3.26 2023-04-18 13:26:18 +02:00
Lesserkuma
be37fcf1d6 3.25 2023-04-14 20:15:02 +02:00
Lesserkuma
c475e722c4 3.25 2023-04-14 19:48:16 +02:00
Lesserkuma
305e343290 3.24 2023-04-09 02:26:40 +02:00
Lesserkuma
6597449fad 3.23.1 2023-04-06 23:37:01 +02:00
Lesserkuma
98b388f297 3.23 2023-04-06 13:17:18 +02:00
Lesserkuma
f556702f1c 3.22 2023-02-09 22:14:23 +01:00
Lesserkuma
a6fe80a56b 3.21 2023-01-17 10:45:22 +01:00
Lesserkuma
288dbf8216 3.21 2023-01-16 22:38:23 +01:00
Lesserkuma
3b360b28d0 3.20 2022-11-30 14:23:21 +01:00
Lesserkuma
9c8714fc38 3.20 2022-11-30 14:14:36 +01:00
Lesserkuma
8b7d51f894 3.19 2022-10-24 16:26:19 +02:00
Lesserkuma
c760fb1139 3.18 2022-08-18 15:13:42 +02:00
Lesserkuma
167dd0a3d7 3.18 2022-08-18 15:09:22 +02:00
Lesserkuma
ced09c6457 3.17 2022-08-01 14:31:03 +02:00
Lesserkuma
79605b9b16 3.16.1 2022-07-26 22:49:57 +02:00
Lesserkuma
6a76a388ca 3.16 2022-07-26 18:50:26 +02:00
Lesserkuma
14d401a3f9 3.15 2022-07-05 16:41:32 +02:00
Lesserkuma
9b44a9959b 3.14 2022-06-11 02:01:46 +02:00
Lesserkuma
f417cede30 3.13 2022-05-30 13:14:39 +02:00
Lesserkuma
c63ca1647f 3.13 2022-05-30 12:41:23 +02:00
Lesserkuma
c7faf277b4 3.13 2022-05-30 12:00:56 +02:00
Lesserkuma
2dffc534ca 3.12 2022-05-27 11:06:35 +02:00
Lesserkuma
a8ce26c54e 3.11 2022-05-25 16:49:22 +02:00
Lesserkuma
4aca77d911 3.11 2022-05-25 16:47:39 +02:00
Lesserkuma
0eeff68d81 3.10 2022-05-17 12:21:26 +02:00
Lesserkuma
f9da20f7c5 3.10 2022-05-17 12:07:16 +02:00
Lesserkuma
681cfcd1de 3.9 2022-04-29 12:25:54 +02:00
Lesserkuma
75d9886e3a 3.8 2022-04-21 22:14:52 +02:00
Lesserkuma
de20ea8b13 3.8 2022-04-21 11:44:35 +02:00
Lesserkuma
50b4601d72 3.8 2022-04-21 11:39:01 +02:00
Lesserkuma
4a91df2f71 Added support for 39VF512 with MSP55LV100G (thanks EmperorOfTigers) 2022-04-03 12:44:11 +02:00
Lesserkuma
feaf89c3f5 3.7 2022-03-31 00:45:47 +02:00
Lesserkuma
0deedd5956 3.7 2022-03-30 21:27:13 +02:00
Lesserkuma
b4d6a40077 3.6 2022-03-10 10:52:39 +01:00
Lesserkuma
ca458f1022 3.6 2022-03-10 10:20:08 +01:00
Lesserkuma
fc699e084b 3.6 2022-03-09 20:15:48 +01:00
Lesserkuma
fd7f20d546 3.5 2022-02-14 19:33:16 +01:00
Lesserkuma
25ebacf290 - 2022-02-06 13:09:26 +01:00
Lesserkuma
eb79f39b54 3.4 2022-02-04 18:40:47 +01:00
Lesserkuma
c9bd5978f1 - 2022-01-13 22:06:54 +01:00
Lesserkuma
b783c6975d - 2022-01-10 15:16:05 +01:00
Lesserkuma
6c27d6c929 3.3 2022-01-10 14:36:55 +01:00
Lesserkuma
b605d7a813 - 2021-12-25 18:36:45 +01:00