Compare commits

..

6 Commits

Author SHA1 Message Date
Florian Bruhin
21adb2cc54 Make link_pyqt work with PyQt 5.11
(cherry picked from commit 14205ae14f)
2018-07-10 16:09:44 +02:00
Florian Bruhin
6b406899f1 Allow PyQt 5.10 to fail on Travis
See #4055

(cherry picked from commit 727b418d8b)
2018-07-10 16:09:44 +02:00
Florian Bruhin
2a3663a6e6 Add workaround for chrome-extension:// URLs
Fixes #4049

(cherry picked from commit b9e3d3cab9)
2018-07-10 16:09:44 +02:00
Florian Bruhin
3970464891 Strip trailing newlines from pastebin URL
(cherry picked from commit 274b66ec46)
2018-07-10 16:09:44 +02:00
Florian Bruhin
af2eabdbfa Add a mkvenv-pypi-old environment
Fixes #4038
See #3662

(cherry picked from commit e80e695a56)
2018-07-10 15:29:21 +02:00
Florian Bruhin
5c299278c2 Handle download errors when the reply is already gone
Fixes #1270

(cherry picked from commit 0a31e19eda)
2018-07-10 15:29:17 +02:00
12 changed files with 18 additions and 60 deletions

View File

@@ -1,8 +1,3 @@
IMPORTANT: I'm currently (July 2018) more busy than usual until September,
because of exams coming up. Review of non-trivial pull requests will thus be
delayed until then. If you're reading this note after mid-September, please
open an issue.
- Before you start to work on something, please leave a comment on the relevant
issue (or open one). This makes sure there is no duplicate work done.

View File

@@ -18,24 +18,10 @@ breaking changes (such as renamed commands) can happen in minor releases.
v1.5.0 (unreleased)
-------------------
Added
~~~~~
- The qute-pass userscript now has optional OTP support.
v1.4.1 (unreleased)
-------------------
Fixed
~~~~~
- Rare crash when an error occurs in downloads.
- Newlines are now stripped from the :version pastebin URL.
- There's a new `mkvenv-pypi-old` environment in `tox.ini` which installs an
older Qt, which is needed on Ubuntu 16.04.
- Worked around a Qt issue which redirects to a `chrome-error://` page when
trying to use U2F.
- The `link_pyqt.py` script now works correctly with PyQt 5.11.
v1.4.0
------

View File

@@ -5,11 +5,6 @@ The Compiler <mail@qutebrowser.org>
:data-uri:
:toc:
IMPORTANT: I'm currently (July 2018) more busy than usual until September,
because of exams coming up. Review of non-trivial pull requests will thus be
delayed until then. If you're reading this note after mid-September, please
open an issue.
I `&lt;3` footnote:[Of course, that says `<3` in HTML.] contributors!
This document contains guidelines for contributing to qutebrowser, as well as

View File

@@ -3,6 +3,6 @@
appdirs==1.4.3
packaging==17.1
pyparsing==2.2.0
setuptools==40.0.0
setuptools==39.2.0
six==1.11.0
wheel==0.31.1

View File

@@ -1,7 +1,9 @@
Jinja2
Pygments
pyPEG2
PyYAML
PyYAML!=4.1
colorama
cssutils
attrs
#@ filter: PyYAML != 4.1

View File

@@ -2,7 +2,7 @@
attrs==18.1.0
beautifulsoup4==4.6.0
cheroot==6.3.2.post0
cheroot==6.3.2
click==6.7
# colorama==0.3.9
coverage==4.5.1
@@ -11,7 +11,7 @@ fields==5.0.0
Flask==1.0.2
glob2==0.6
hunter==2.0.2
hypothesis==3.66.1
hypothesis==3.65.0
itsdangerous==0.24
# Jinja2==2.10
Mako==1.0.7
@@ -22,7 +22,7 @@ parse-type==0.4.2
pluggy==0.6.0
py==1.5.4
py-cpuinfo==4.0.0
pytest==3.6.3
pytest==3.6.2
pytest-bdd==2.21.0
pytest-benchmark==3.1.1
pytest-cov==2.5.1
@@ -36,5 +36,5 @@ pytest-travis-fold==1.3.0
pytest-xvfb==1.1.0
PyVirtualDisplay==0.2.1
six==1.11.0
vulture==0.28
vulture==0.27
Werkzeug==0.14.1

View File

@@ -3,5 +3,5 @@
pluggy==0.6.0
py==1.5.4
six==1.11.0
tox==3.1.1
tox==3.0.0
virtualenv==16.0.0

View File

@@ -1,3 +1,3 @@
# This file is automatically generated by scripts/dev/recompile_requirements.py
vulture==0.28
vulture==0.27

View File

@@ -25,17 +25,9 @@ demonstration can be seen here: https://i.imgur.com/KN3XuZP.gif.
USAGE = """The domain of the site has to appear as a segment in the pass path, for example: "github.com/cryzed" or
"websites/github.com". How the username and password are determined is freely configurable using the CLI arguments. The
login information is inserted by emulating key events using qutebrowser's fake-key command in this manner:
[USERNAME]<Tab>[PASSWORD], which is compatible with almost all login forms.
[USERNAME]<Tab>[PASSWORD], which is compatible with almost all login forms."""
Suggested bindings similar to Uzbl's `formfiller` script:
config.bind('<z><l>', 'spawn --userscript qute-pass')
config.bind('<z><u><l>', 'spawn --userscript qute-pass --username-only')
config.bind('<z><p><l>', 'spawn --userscript qute-pass --password-only')
config.bind('<z><o><l>', 'spawn --userscript qute-pass --otp-only')
"""
EPILOG = """Dependencies: tldextract (Python 3 module), pass, pass-otp (optional).
EPILOG = """Dependencies: tldextract (Python 3 module), pass.
For issues and feedback please use: https://github.com/cryzed/qutebrowser-userscripts.
WARNING: The login details are viewable as plaintext in qutebrowser's debug log (qute://log) and might be shared if
@@ -74,7 +66,6 @@ argument_parser.add_argument('--merge-candidates', '-m', action='store_true',
group = argument_parser.add_mutually_exclusive_group()
group.add_argument('--username-only', '-e', action='store_true', help='Only insert username')
group.add_argument('--password-only', '-w', action='store_true', help='Only insert password')
group.add_argument('--otp-only', '-o', action='store_true', help='Only insert OTP code')
stderr = functools.partial(print, file=sys.stderr)
@@ -107,17 +98,9 @@ def find_pass_candidates(domain, password_store_path):
return candidates
def _run_pass(command, encoding):
process = subprocess.run(command, stdout=subprocess.PIPE)
return process.stdout.decode(encoding).strip()
def pass_(path, encoding):
return _run_pass(['pass', path], encoding)
def pass_otp(path, encoding):
return _run_pass(['pass', 'otp', path], encoding)
process = subprocess.run(['pass', path], stdout=subprocess.PIPE)
return process.stdout.decode(encoding).strip()
def dmenu(items, invocation, encoding):
@@ -186,9 +169,6 @@ def main(arguments):
fake_key_raw(username)
elif arguments.password_only:
fake_key_raw(password)
elif arguments.otp_only:
otp = pass_otp(selection, arguments.io_encoding)
fake_key_raw(otp)
else:
# Enter username and password using fake-key and <Tab> (which seems to work almost universally), then switch
# back into insert-mode, so the form can be directly submitted by hitting enter afterwards

View File

@@ -681,6 +681,7 @@ class Quitter:
@cmdutils.argument('session', completion=miscmodels.session)
def quit(self, save=False, session=None):
"""Quit qutebrowser.
Args:
save: When given, save the open windows even if auto_save.session
is turned off.

View File

@@ -3,9 +3,8 @@
aliases:
default:
w: session-save
q: close
qa: quit
wqa: quit --save
q: quit
wq: quit --save
type:
name: Dict
keytype:

View File

@@ -7,4 +7,4 @@ Jinja2==2.10
MarkupSafe==1.0
Pygments==2.2.0
pyPEG2==2.15.2
PyYAML==3.13
PyYAML==3.13b1 # rq.filter: != 4.1