Bump Qt version requirement to 5.15

This commit is contained in:
Veronica Berglyd Olsen
2024-04-16 23:40:48 +02:00
parent e5c9ed4b80
commit 1733938eb4
6 changed files with 13 additions and 15 deletions
+4 -6
View File
@@ -39,11 +39,9 @@ The following Python packages are needed to run all features of novelWriter:
* ``PyQt5`` needed for connecting with the Qt5 libraries. * ``PyQt5`` needed for connecting with the Qt5 libraries.
* ``PyEnchant`` needed for spell checking (optional). * ``PyEnchant`` needed for spell checking (optional).
PyQt/Qt should be at least 5.10, but ideally 5.13 or higher for all features to work. For instance, PyQt/Qt must be at least 5.15.0. If you want spell checking, you must install the ``PyEnchant``
searching using regular expressions with full Unicode support requires 5.13. package. The spell check library must be at least 3.0 to work with Windows. On Linux, 2.0 also
works fine.
If you want spell checking, you must install the ``PyEnchant`` package. The spell check library
must be at least 3.0 to work with Windows. On Linux, 2.0 also works fine.
If you install from PyPi, these dependencies should be installed automatically. If you install from If you install from PyPi, these dependencies should be installed automatically. If you install from
source, dependencies can still be installed from PyPi with: source, dependencies can still be installed from PyPi with:
@@ -55,7 +53,7 @@ source, dependencies can still be installed from PyPi with:
.. note:: .. note::
On Linux distros, the Qt library is usually split up into multiple packages. In some cases, On Linux distros, the Qt library is usually split up into multiple packages. In some cases,
secondary dependencies may not be installed automatically. For novelWriter, the library files secondary dependencies may not be installed automatically. For novelWriter, the library files
for renderring the SVG icons may be left out and needs to be installed manually. This is the for rendering the SVG icons may be left out and needs to be installed manually. This is the
case on for instance Arch Linux. case on for instance Arch Linux.
+4 -4
View File
@@ -167,14 +167,14 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
"At least Python 3.8 is required, found %s" % CONFIG.verPyString "At least Python 3.8 is required, found %s" % CONFIG.verPyString
) )
errorCode |= 0x04 errorCode |= 0x04
if CONFIG.verQtValue < 0x050a00: if CONFIG.verQtValue < 0x050f00:
errorData.append( errorData.append(
"At least Qt5 version 5.10 is required, found %s" % CONFIG.verQtString "At least Qt5 version 5.15.0 is required, found %s" % CONFIG.verQtString
) )
errorCode |= 0x08 errorCode |= 0x08
if CONFIG.verPyQtValue < 0x050a00: if CONFIG.verPyQtValue < 0x050f00:
errorData.append( errorData.append(
"At least PyQt5 version 5.10 is required, found %s" % CONFIG.verPyQtString "At least PyQt5 version 5.15.0 is required, found %s" % CONFIG.verPyQtString
) )
errorCode |= 0x10 errorCode |= 0x10
+1 -1
View File
@@ -27,7 +27,7 @@ classifiers = [
] ]
requires-python = ">=3.8" requires-python = ">=3.8"
dependencies = [ dependencies = [
"pyqt5>=5.10", "pyqt5>=5.15",
"pyenchant>=3.0.0", "pyenchant>=3.0.0",
] ]
dynamic = ["version"] dynamic = ["version"]
+1 -1
View File
@@ -1,2 +1,2 @@
pyqt5>=5.10 pyqt5>=5.15
pyenchant>=3.0.0 pyenchant>=3.0.0
+2 -2
View File
@@ -2,14 +2,14 @@ Source: novelwriter
Maintainer: Veronica Berglyd Olsen <code@vkbo.net> Maintainer: Veronica Berglyd Olsen <code@vkbo.net>
Section: text Section: text
Priority: optional Priority: optional
Build-Depends: dh-python, python3-setuptools, python3-all, debhelper (>= 9), python3 (>=3.8), python3-pyqt5 (>= 5.10), python3-enchant (>= 2.0) Build-Depends: dh-python, python3-setuptools, python3-all, debhelper (>= 9), python3 (>=3.8), python3-pyqt5 (>= 5.15), python3-enchant (>= 2.0)
Standards-Version: 4.5.1 Standards-Version: 4.5.1
Homepage: https://novelwriter.io Homepage: https://novelwriter.io
X-Python3-Version: >= 3.8 X-Python3-Version: >= 3.8
Package: novelwriter Package: novelwriter
Architecture: all Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python3 (>=3.8), python3-pyqt5 (>= 5.10), python3-enchant (>= 2.0) Depends: ${misc:Depends}, ${python3:Depends}, python3 (>=3.8), python3-pyqt5 (>= 5.15), python3-enchant (>= 2.0)
Description: A markdown-like text editor for planning and writing novels Description: A markdown-like text editor for planning and writing novels
novelWriter is a plain text editor designed for writing novels assembled from novelWriter is a plain text editor designed for writing novels assembled from
many smaller text documents. It uses a minimal formatting syntax inspired by many smaller text documents. It uses a minimal formatting syntax inspired by
+1 -1
View File
@@ -34,7 +34,7 @@ python_requires = >=3.8
include_package_data = True include_package_data = True
packages = find_namespace: packages = find_namespace:
install_requires = install_requires =
pyqt5>=5.10 pyqt5>=5.15
pyenchant>=3.0.0 pyenchant>=3.0.0
[options.packages.find] [options.packages.find]