Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95d1721f01 | ||
|
|
410be07f54 | ||
|
|
01de52c23a | ||
|
|
a84807ed05 | ||
|
|
2795ae9478 |
@@ -14,6 +14,17 @@ This project adheres to http://semver.org/[Semantic Versioning].
|
||||
// `Fixed` for any bug fixes.
|
||||
// `Security` to invite users to upgrade in case of vulnerabilities.
|
||||
|
||||
v0.8.1
|
||||
------
|
||||
|
||||
Fixed
|
||||
~~~~~
|
||||
|
||||
- Fix crash when pressing enter without a command
|
||||
- Adjust error message to point out QtWebEngine is unsupported with the OS
|
||||
X .app currently.
|
||||
- Hide Harfbuzz warning with the OS X .app
|
||||
|
||||
v0.8.0
|
||||
------
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ __copyright__ = "Copyright 2014-2016 Florian Bruhin (The Compiler)"
|
||||
__license__ = "GPL"
|
||||
__maintainer__ = __author__
|
||||
__email__ = "mail@qutebrowser.org"
|
||||
__version_info__ = (0, 8, 0)
|
||||
__version_info__ = (0, 8, 1)
|
||||
__version__ = '.'.join(str(e) for e in __version_info__)
|
||||
__description__ = "A keyboard-driven, vim-like browser based on PyQt5 and QtWebKit."
|
||||
|
||||
|
||||
@@ -119,6 +119,9 @@ class CommandRunner(QObject):
|
||||
Yields:
|
||||
ParseResult tuples.
|
||||
"""
|
||||
if not text:
|
||||
raise cmdexc.NoSuchCommandError("No command given")
|
||||
|
||||
if aliases:
|
||||
text = self._get_alias(text, text)
|
||||
|
||||
|
||||
@@ -59,9 +59,13 @@ def _missing_str(name, *, windows=None, pip=None, webengine=False):
|
||||
'distributions packages, or install it via pip.'.format(name)]
|
||||
blocks.append('<br />'.join(lines))
|
||||
if webengine:
|
||||
lines = ['Note QtWebEngine is not available for some distributions '
|
||||
'(like Debian/Ubuntu), so you need to start without '
|
||||
'--backend webengine there.']
|
||||
lines = [
|
||||
'Note QtWebEngine is not available for some distributions '
|
||||
'(like Debian/Ubuntu), so you need to start without '
|
||||
'--backend webengine there.',
|
||||
'QtWebEngine is currently unsupported with the OS X .app, see '
|
||||
'https://github.com/The-Compiler/qutebrowser/issues/1692',
|
||||
]
|
||||
else:
|
||||
lines = ['<b>If you installed a qutebrowser package for your '
|
||||
'distribution, please report this as a bug.</b>']
|
||||
@@ -166,8 +170,11 @@ def fix_harfbuzz(args):
|
||||
from qutebrowser.utils import log
|
||||
from PyQt5.QtCore import qVersion
|
||||
if 'PyQt5.QtWidgets' in sys.modules:
|
||||
log.init.warning("Harfbuzz fix attempted but QtWidgets is already "
|
||||
"imported!")
|
||||
msg = "Harfbuzz fix attempted but QtWidgets is already imported!"
|
||||
if getattr(sys, 'frozen', False):
|
||||
log.init.debug(msg)
|
||||
else:
|
||||
log.init.warning(msg)
|
||||
if sys.platform.startswith('linux') and args.harfbuzz == 'auto':
|
||||
if qVersion() == '5.3.0':
|
||||
log.init.debug("Using new harfbuzz engine (auto)")
|
||||
|
||||
@@ -24,7 +24,7 @@ SOURCE_DIR ?= .
|
||||
SOURCE_FILES ?= dist/qutebrowser.app COPYING
|
||||
|
||||
TEMPLATE_DMG ?= template.dmg
|
||||
TEMPLATE_SIZE ?= 120m
|
||||
TEMPLATE_SIZE ?= 300m
|
||||
|
||||
################################################################################
|
||||
# DMG building. No editing should be needed beyond this point.
|
||||
@@ -37,17 +37,12 @@ WC_DIR=wc
|
||||
.PHONY: all
|
||||
all: $(MASTER_DMG)
|
||||
|
||||
$(TEMPLATE_DMG): $(TEMPLATE_DMG).bz2
|
||||
bunzip2 -k $<
|
||||
|
||||
$(TEMPLATE_DMG).bz2:
|
||||
$(TEMPLATE_DMG):
|
||||
@echo
|
||||
@echo --------------------- Generating empty template --------------------
|
||||
mkdir template
|
||||
hdiutil create -fs HFSX -layout SPUD -size $(TEMPLATE_SIZE) "$(TEMPLATE_DMG)" -srcfolder template -format UDRW -volname "$(NAME)" -quiet
|
||||
rmdir template
|
||||
bzip2 "$(TEMPLATE_DMG)"
|
||||
@echo
|
||||
|
||||
$(WC_DMG): $(TEMPLATE_DMG)
|
||||
cp $< $@
|
||||
|
||||
@@ -28,6 +28,7 @@ import shutil
|
||||
import subprocess
|
||||
import argparse
|
||||
import tarfile
|
||||
import tempfile
|
||||
import collections
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir,
|
||||
@@ -94,7 +95,7 @@ def build_osx():
|
||||
utils.print_title("Updating 3rdparty content")
|
||||
update_3rdparty.update_pdfjs()
|
||||
utils.print_title("Building .app via pyinstaller")
|
||||
call_tox('pyinstaller')
|
||||
call_tox('pyinstaller', '-r')
|
||||
utils.print_title("Building .dmg")
|
||||
subprocess.check_call(['make', '-f', 'scripts/dev/Makefile-dmg'])
|
||||
utils.print_title("Cleaning up...")
|
||||
@@ -103,6 +104,17 @@ def build_osx():
|
||||
for d in ['dist', 'build']:
|
||||
shutil.rmtree(d)
|
||||
|
||||
utils.print_title("Running smoke test")
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
subprocess.check_call(['hdiutil', 'attach', 'qutebrowser.dmg',
|
||||
'-mountpoint', tmpdir])
|
||||
try:
|
||||
binary = os.path.join(tmpdir, 'qutebrowser.app', 'Contents',
|
||||
'MacOS', 'qutebrowser')
|
||||
smoke_test(binary)
|
||||
finally:
|
||||
subprocess.check_call(['hdiutil', 'detach', tmpdir])
|
||||
|
||||
|
||||
def build_windows():
|
||||
"""Build windows executables/setups."""
|
||||
@@ -116,6 +128,8 @@ def build_windows():
|
||||
python_x86 = r'C:\Python{}_x32'.format(ver)
|
||||
python_x64 = r'C:\Python{}'.format(ver)
|
||||
|
||||
utils.print_title("Rebuilding tox environment")
|
||||
call_tox('cxfreeze-windows', '-r', '--notest')
|
||||
utils.print_title("Running 32bit freeze.py build_exe")
|
||||
call_tox('cxfreeze-windows', 'build_exe', python=python_x86)
|
||||
utils.print_title("Running 32bit freeze.py bdist_msi")
|
||||
|
||||
@@ -53,6 +53,15 @@ class TestCommandRunner:
|
||||
with pytest.raises(cmdexc.NoSuchCommandError):
|
||||
list(cr.parse_all("alias_name"))
|
||||
|
||||
def test_parse_empty_with_alias(self):
|
||||
"""An empty command should not crash.
|
||||
|
||||
See https://github.com/The-Compiler/qutebrowser/issues/1690
|
||||
"""
|
||||
cr = runners.CommandRunner(0)
|
||||
with pytest.raises(cmdexc.NoSuchCommandError):
|
||||
list(cr.parse_all(''))
|
||||
|
||||
def test_parse_with_count(self):
|
||||
"""Test parsing of commands with a count."""
|
||||
cr = runners.CommandRunner(0)
|
||||
|
||||
@@ -329,7 +329,7 @@ class TestDefaultConfig:
|
||||
If it did change, place a new qutebrowser-vx.y.z.conf in old_configs
|
||||
and then increment the version.
|
||||
"""
|
||||
assert qutebrowser.__version__ == '0.8.0'
|
||||
assert qutebrowser.__version__ == '0.8.1'
|
||||
|
||||
@pytest.mark.parametrize('filename',
|
||||
os.listdir(os.path.join(os.path.dirname(__file__), 'old_configs')),
|
||||
|
||||
Reference in New Issue
Block a user