From d998900a3a4b24856c0bdc1b7083bac3bc2eaa84 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 24 May 2020 13:44:32 +0200 Subject: [PATCH] Pin some dependency versions now that some of the limits are known --- README.md | 6 ++++++ docs/source/started.txt | 5 +++++ requirements.txt | 6 +++--- setup.py | 6 +++--- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a69a866b..bf1efa1c 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,12 @@ python3 -m pip install lxml python3 -m pip install pyenchant ``` +PyQt/Qt should be at least 5.2.1, but ideally 5.10 or higher for nearly all features to work. +Exporting to markdown requires PyQt/Qt 5.14. +There are no known minimum for lxml, but the code was originally written with 4.2. +The optional spell check library must be at least 3.0.0 to work with Windows. +On Linux, 2.0.0 also works fine. + If no external spell checking tool is installed, novelWriter will use a basic spell checker based on standard Python package `difflib`. Currently, only English dictionaries are available for this spell checker, but more can be added to the `nw/assets/dict` folder. See the [nw/assets/dict/README.md](README.md) file in that folder for how to generate more dictionaries. diff --git a/docs/source/started.txt b/docs/source/started.txt index 5c279e14..c27ff27e 100644 --- a/docs/source/started.txt +++ b/docs/source/started.txt @@ -35,6 +35,11 @@ The following are optional, but recommended: * ``pyenchant`` for spell checking +PyQt/Qt should be at least 5.2.1, but ideally 5.10 or higher for nearly all features to work. +Exporting to markdown requires PyQt/Qt 5.14. +There are no known minimum for lxml, but the code was originally written with 4.2. +The optional spell check library must be at least 3.0.0 to work with Windows. +On Linux, 2.0.0 also works fine. Running novelWriter =================== diff --git a/requirements.txt b/requirements.txt index 08fc42c3..c50e7b68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -pyqt5 -lxml -pyenchant +pyqt5>=5.2.1 +lxml>=4.2.0 +pyenchant>=3.0.0 diff --git a/setup.py b/setup.py index f9736fee..9a59bccf 100755 --- a/setup.py +++ b/setup.py @@ -37,8 +37,8 @@ setuptools.setup( ], python_requires = ">=3.6", install_requires = [ - "pyqt5", - "lxml", - "pyenchant", + "pyqt5>=5.2.1", + "lxml>=4.2.0", + "pyenchant>=3.0.0", ], )