Merge pull request #470 from vkbo/python_version
Change Python minimal version to 3.6
This commit is contained in:
@@ -89,9 +89,8 @@ to make those. Feel free to submit more if you are able to make them.
|
|||||||
|
|
||||||
## Package Dependencies
|
## Package Dependencies
|
||||||
|
|
||||||
It is recommended that novelWriter runs with Qt 5.10 or later, and Python 3.6 or later. Running with
|
It is recommended that novelWriter runs with Qt 5.10 or later, and requires Python 3.6 or later.
|
||||||
Qt as low as 5.2.1 and Python 3.4.3 has been tested, and worked in the past, but there are no
|
Minimum version of Qt is 5.2.
|
||||||
guarantees that this will keep working as these are not a part of the test builds.
|
|
||||||
|
|
||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
@@ -146,7 +145,6 @@ C:\...\AppData\Local\Programs\Python\Python38\python.exe novelWriter.py
|
|||||||
|
|
||||||
### Package Versions
|
### Package Versions
|
||||||
|
|
||||||
PyQt/Qt should be at least 5.3, 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
|
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
|
was originally written with 4.2. The optional spell check library must be at least 3.0.0 to work
|
||||||
with Windows 64 bit systems. On Linux, 2.0.0 also works fine.
|
with Windows 64 bit systems. On Linux, 2.0.0 also works fine.
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ than the document editor itself are hidden away.
|
|||||||
The colour scheme of the user interface defaults to that of the host operating system. In addition,
|
The colour scheme of the user interface defaults to that of the host operating system. In addition,
|
||||||
a dark theme is provided, and can be enabled in :guilabel:`Preferences` from the :guilabel:`Tools`
|
a dark theme is provided, and can be enabled in :guilabel:`Preferences` from the :guilabel:`Tools`
|
||||||
menu. A number of syntax highlighting themes are also available in :guilabel:`Preferences`. A set of
|
menu. A number of syntax highlighting themes are also available in :guilabel:`Preferences`. A set of
|
||||||
icon themes in colour and greyscale are also offered. The icons are based on the Typicon_ icon set
|
icon themes in colour and greyscale are also offered. The icons are based on the Typicons_ icon set
|
||||||
designed by Stephen Hutchings.
|
designed by Stephen Hutchings.
|
||||||
|
|
||||||
The main window is split in two, or optionally three, panels. The left-most contains the project
|
The main window is split in two, or optionally three, panels. The left-most contains the project
|
||||||
@@ -58,7 +58,7 @@ entire novel structure can be displayed, with all the tags and references listed
|
|||||||
you structure your novel project files, this outline can be quite different than your project tree.
|
you structure your novel project files, this outline can be quite different than your project tree.
|
||||||
Your project tree lists files, your Outline tree lists the structure of the novel itself.
|
Your project tree lists files, your Outline tree lists the structure of the novel itself.
|
||||||
|
|
||||||
.. _Typicon: https://github.com/stephenhutchings/typicons.font
|
.. _Typicons: https://github.com/stephenhutchings/typicons.font
|
||||||
|
|
||||||
|
|
||||||
.. _a_intro_project:
|
.. _a_intro_project:
|
||||||
|
|||||||
+2
-2
@@ -35,7 +35,7 @@ except getopt.GetoptError:
|
|||||||
for inOpt, inArg in inOpts:
|
for inOpt, inArg in inOpts:
|
||||||
if inOpt in ("-h", "--help"):
|
if inOpt in ("-h", "--help"):
|
||||||
print(helpMsg)
|
print(helpMsg)
|
||||||
sys.exit()
|
sys.exit(0)
|
||||||
elif inOpt in ("-d", "--debug"):
|
elif inOpt in ("-d", "--debug"):
|
||||||
buildWindowed = False
|
buildWindowed = False
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ if buildWindowed:
|
|||||||
|
|
||||||
instOpt.append("novelWriter.py")
|
instOpt.append("novelWriter.py")
|
||||||
|
|
||||||
import PyInstaller.__main__ # noqa: F401
|
import PyInstaller.__main__ # noqa: E402
|
||||||
PyInstaller.__main__.run(instOpt)
|
PyInstaller.__main__.run(instOpt)
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
|
|||||||
+2
-2
@@ -200,9 +200,9 @@ def main(sysArgs=None):
|
|||||||
# Check Packages and Versions
|
# Check Packages and Versions
|
||||||
errorData = []
|
errorData = []
|
||||||
errorCode = 0
|
errorCode = 0
|
||||||
if sys.hexversion < 0x030403f0:
|
if sys.hexversion < 0x030600f0:
|
||||||
errorData.append(
|
errorData.append(
|
||||||
"At least Python 3.4.3 is required, but 3.6 is highly recommended."
|
"At least Python 3.6.0 is required, found %s." % CONFIG.verPyString
|
||||||
)
|
)
|
||||||
errorCode |= 4
|
errorCode |= 4
|
||||||
if CONFIG.verQtValue < 50200:
|
if CONFIG.verQtValue < 50200:
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
license_files = LICENSE.md
|
license_files = LICENSE.md
|
||||||
|
version = attr: nw.__version__
|
||||||
|
|
||||||
[bdist_wheel]
|
[bdist_wheel]
|
||||||
universal = 0
|
universal = 0
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ import sys
|
|||||||
import subprocess
|
import subprocess
|
||||||
import setuptools
|
import setuptools
|
||||||
|
|
||||||
from nw import __version__, __url__, __docurl__, __issuesurl__, __sourceurl__
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Build the Package
|
# Build the Package
|
||||||
##
|
##
|
||||||
@@ -119,19 +117,16 @@ if len(sys.argv) == 1:
|
|||||||
with open("README.md", "r") as inFile:
|
with open("README.md", "r") as inFile:
|
||||||
longDescription = inFile.read()
|
longDescription = inFile.read()
|
||||||
|
|
||||||
with open("requirements.txt", "r") as inFile:
|
|
||||||
pkgRequirements = inFile.read().strip().splitlines()
|
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name = "novelWriter",
|
name = "novelWriter",
|
||||||
version = __version__,
|
# version = __version__, # Set in setup.cfg
|
||||||
author = "Veronica Berglyd Olsen",
|
author = "Veronica Berglyd Olsen",
|
||||||
author_email = "code@vkbo.net",
|
author_email = "code@vkbo.net",
|
||||||
description = "A markdown-like document editor for writing novels",
|
description = "A markdown-like document editor for writing novels",
|
||||||
long_description = longDescription,
|
long_description = longDescription,
|
||||||
long_description_content_type = "text/markdown",
|
long_description_content_type = "text/markdown",
|
||||||
license = "GNU General Public License v3",
|
license = "GNU General Public License v3",
|
||||||
url = __url__,
|
url = "https://novelwriter.io",
|
||||||
entry_points = {
|
entry_points = {
|
||||||
"console_scripts" : ["novelWriter-cli=nw:main"],
|
"console_scripts" : ["novelWriter-cli=nw:main"],
|
||||||
"gui_scripts" : ["novelWriter=nw:main"],
|
"gui_scripts" : ["novelWriter=nw:main"],
|
||||||
@@ -140,9 +135,9 @@ setuptools.setup(
|
|||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
package_data = {"": ["*.conf"]},
|
package_data = {"": ["*.conf"]},
|
||||||
project_urls = {
|
project_urls = {
|
||||||
"Bug Tracker": __issuesurl__,
|
"Bug Tracker": "https://github.com/vkbo/novelWriter/issues",
|
||||||
"Documentation": __docurl__,
|
"Documentation": "https://github.com/vkbo/novelWriter/issues",
|
||||||
"Source Code": __sourceurl__,
|
"Source Code": "https://github.com/vkbo/novelWriter",
|
||||||
},
|
},
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Programming Language :: Python :: 3 :: Only",
|
"Programming Language :: Python :: 3 :: Only",
|
||||||
@@ -159,5 +154,9 @@ setuptools.setup(
|
|||||||
"Topic :: Text Editors",
|
"Topic :: Text Editors",
|
||||||
],
|
],
|
||||||
python_requires = ">=3.6",
|
python_requires = ">=3.6",
|
||||||
install_requires = pkgRequirements,
|
install_requires = [
|
||||||
|
"pyqt5>=5.2.1",
|
||||||
|
"lxml>=4.2.0",
|
||||||
|
"pyenchant>=3.0.0",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user