Merge branch 'main' into dev
This commit is contained in:
+4
-2
@@ -1,4 +1,4 @@
|
|||||||
# novelWriter Change Log
|
# novelWriter Changelog
|
||||||
|
|
||||||
## Version 1.2 Dev (Alpha)
|
## Version 1.2 Dev (Alpha)
|
||||||
|
|
||||||
@@ -31,6 +31,8 @@ clearer categories and hopefully better help text. Some new options have been ad
|
|||||||
syntax highlighting of multi-paragraph quotes. The highlighter can now optionally accept quotes to
|
syntax highlighting of multi-paragraph quotes. The highlighter can now optionally accept quotes to
|
||||||
be left "hanging", that is, no closing quote in the same paragraph.
|
be left "hanging", that is, no closing quote in the same paragraph.
|
||||||
|
|
||||||
|
_These Release Notes also include the changes from 1.1 RC 1._
|
||||||
|
|
||||||
### Detailed Changelog
|
### Detailed Changelog
|
||||||
|
|
||||||
**Bugfixes**
|
**Bugfixes**
|
||||||
@@ -101,7 +103,7 @@ functionality has been added to the main setup script to create desktop and star
|
|||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
## Version 1.1 RC1 [2021-01-31]
|
## Version 1.1 RC 1 [2021-01-31]
|
||||||
|
|
||||||
### Release Notes
|
### Release Notes
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,26 @@ issue tracker or the discussions page with the owner of this repository before m
|
|||||||
you just want to make a minor correction, like fix a typo or similar, feel free to just make a pull
|
you just want to make a minor correction, like fix a typo or similar, feel free to just make a pull
|
||||||
request directly.
|
request directly.
|
||||||
|
|
||||||
|
## Branching Structure
|
||||||
|
|
||||||
|
There are three protected branches on this repository. They are used in the following way:
|
||||||
|
|
||||||
|
* `main` – This is the Stable branch. It is used for releases and subsequent patches. No
|
||||||
|
development code should be merged into this branch starting from version 1.0.
|
||||||
|
* `dev` – This is the Unstable (development) branch. It is where new features are merged, and where
|
||||||
|
pre-releases are taken from.
|
||||||
|
* `testing` – This is the Testing branch. It is populated from the `dev` branch for pre-releases
|
||||||
|
that need a longer testing phase.
|
||||||
|
|
||||||
|
Stable releases and patches will be tagged in the `main` branch, pre-releases may be tagged from
|
||||||
|
either `testing` or `dev` branch.
|
||||||
|
|
||||||
|
### What Branch to Use for Contributions
|
||||||
|
|
||||||
|
* If your contribution is a fix for the latest stable release, branch from the `main` branch.
|
||||||
|
* If your contribution is a fix for the latest testing release, branch from the `testing` branch.
|
||||||
|
* If your contribution is a new feature, branch from the `dev` branch.
|
||||||
|
|
||||||
## Pull Request Process
|
## Pull Request Process
|
||||||
|
|
||||||
1. Make sure your code passes all tests and conforms to the style guide. You can check that the
|
1. Make sure your code passes all tests and conforms to the style guide. You can check that the
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
|
include setup.py
|
||||||
include LICENSE.md
|
include LICENSE.md
|
||||||
|
include CHANGELOG.md
|
||||||
recursive-include setup *
|
recursive-include setup *
|
||||||
recursive-include nw/assets *
|
recursive-include nw/assets *
|
||||||
recursive-include sample *.nwx *.nwd
|
recursive-include sample *.nwx *.nwd
|
||||||
|
|||||||
+5
-2
@@ -273,8 +273,11 @@ class Config:
|
|||||||
self.appPath = getattr(sys, "_MEIPASS", os.path.abspath(os.path.dirname(__file__)))
|
self.appPath = getattr(sys, "_MEIPASS", os.path.abspath(os.path.dirname(__file__)))
|
||||||
self.appRoot = os.path.abspath(os.path.join(self.appPath, os.path.pardir))
|
self.appRoot = os.path.abspath(os.path.join(self.appPath, os.path.pardir))
|
||||||
|
|
||||||
if self.appRoot.endswith(".pyz"):
|
if os.path.isfile(self.appRoot):
|
||||||
self.appRoot = os.path.abspath(os.path.join(self.appRoot, os.path.pardir))
|
# novelWriter is packaged as a single file, so the app and
|
||||||
|
# root paths are the same, and equal to the folder that
|
||||||
|
# contains the single executable.
|
||||||
|
self.appRoot = os.path.dirname(self.appRoot)
|
||||||
self.appPath = self.appRoot
|
self.appPath = self.appRoot
|
||||||
|
|
||||||
# Assets
|
# Assets
|
||||||
|
|||||||
+7
-4
@@ -203,14 +203,17 @@ class GuiTheme:
|
|||||||
return
|
return
|
||||||
|
|
||||||
def updateFont(self):
|
def updateFont(self):
|
||||||
"""Updated the GUI's font style from settings,
|
"""Update the GUI's font style from settings.
|
||||||
"""
|
"""
|
||||||
theFont = QFont()
|
theFont = QFont()
|
||||||
if self.mainConf.guiFont not in self.guiFontDB.families():
|
if self.mainConf.guiFont not in self.guiFontDB.families():
|
||||||
if self.mainConf.osWindows:
|
if self.mainConf.osWindows:
|
||||||
# On Windows, default to Cantarell provided by novelWriter
|
if "Arial" in self.guiFontDB.families():
|
||||||
theFont.setFamily("Cantarell")
|
theFont.setFamily("Arial")
|
||||||
theFont.setPointSize(11)
|
else:
|
||||||
|
# On Windows, fall back to Cantarell provided by novelWriter
|
||||||
|
theFont.setFamily("Cantarell")
|
||||||
|
theFont.setPointSize(10)
|
||||||
else:
|
else:
|
||||||
theFont = self.guiFontDB.systemFont(QFontDatabase.GeneralFont)
|
theFont = self.guiFontDB.systemFont(QFontDatabase.GeneralFont)
|
||||||
self.mainConf.guiFont = theFont.family()
|
self.mainConf.guiFont = theFont.family()
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# Minimal PEP 518 pyproject file
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools", "wheel"]
|
requires = ["setuptools", "wheel"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
[pytest]
|
[pytest]
|
||||||
markers =
|
markers =
|
||||||
base: Base functionality tests
|
base: Base classes tests
|
||||||
core: Core functionality tests
|
core: Core classes tests
|
||||||
gui: Qt5 GUI tests
|
gui: Qt5 GUI tests
|
||||||
serial
|
serial
|
||||||
qt_api = pyqt5
|
qt_api = pyqt5
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ def makeSimplePackage(embedPython):
|
|||||||
print("Writing: __main__.py")
|
print("Writing: __main__.py")
|
||||||
with open(os.path.join(zipDir, "__main__.py"), mode="w") as outFile:
|
with open(os.path.join(zipDir, "__main__.py"), mode="w") as outFile:
|
||||||
outFile.write(
|
outFile.write(
|
||||||
"#!\"pythonw.exe\"\n"
|
"#!/usr/bin/env python3\n"
|
||||||
"\n"
|
"\n"
|
||||||
"import os\n"
|
"import os\n"
|
||||||
"import sys\n"
|
"import sys\n"
|
||||||
@@ -419,7 +419,7 @@ def makeSimplePackage(embedPython):
|
|||||||
print("")
|
print("")
|
||||||
|
|
||||||
pyzFile = os.path.join(outDir, "novelWriter.pyz")
|
pyzFile = os.path.join(outDir, "novelWriter.pyz")
|
||||||
zipapp.create_archive(zipDir, target=pyzFile, interpreter="python3")
|
zipapp.create_archive(zipDir, target=pyzFile, interpreter="/usr/bin/env python3")
|
||||||
|
|
||||||
# Install Dependencies
|
# Install Dependencies
|
||||||
# ====================
|
# ====================
|
||||||
|
|||||||
Reference in New Issue
Block a user