Commit Graph

23321 Commits

Author SHA1 Message Date
Tom Hu 7281af35ab
Update .codecov.yml 2022-04-18 10:11:01 -04:00
Tom Hu 0b12ed8beb
ci: add informational Codecov status checks
Hi, Tom from Codecov here. I noticed that you were using Codecov but weren't actually getting any notifications on pull requests. I figured it would be useful to get some idea if code being changed is being tested, but also not blocking CI/merging. Let me know if this makes sense or if we can do something that would be helpful.
2022-04-18 10:05:41 -04:00
Florian Bruhin 488dc175e0 doc: Adjust some PyQt5 references 2022-04-14 13:40:31 +02:00
Florian Bruhin 16d3a99a6b Fix lint 2022-04-13 23:46:35 +02:00
Florian Bruhin ac84cbaad9 Use QFontMetrics::boundingRect()
.width() was deprecated in Qt 5.11 because what it actually does is better
described as .horizontalAdvance():

https://codereview.qt-project.org/c/qt/qtbase/+/201397
(ee2ad9df701b27790e2ab72e99111d255fde42ed in qtbase)

Docs:
https://doc.qt.io/qt-6/qfontmetrics.html#horizontalAdvance-2

What we actually want for the size hint is the bounding box.

(originally cherry picked from commit 78838338c331d74931da31acd2306550721ef121)
2022-04-13 23:19:22 +02:00
Florian Bruhin 3bced54404 Switch to new API for SSL ciphers
This got moved to QSslConfiguration in Qt 5.5:
https://codereview.qt-project.org/c/qt/qtbase/+/113886
(92cda9474245c79b635c21cd140c5d0a3a6d2e5b in qtbase)

(cherry picked from commit 317da1e3cf23bf40d24d186cd6d06b6bc9a09958)
2022-04-13 23:03:43 +02:00
Florian Bruhin ca4d25b203 Remove old resources.py
(cherry picked from commit 18d7e400cd7f61647953f1f1b5e74006246d4276)
2022-04-13 23:01:19 +02:00
Florian Bruhin 991d300a08
Merge pull request #7120 from qutebrowser/update-dependencies
Update dependencies
2022-04-11 15:32:10 +02:00
Florian Bruhin 3e9203b829 tests: Update bs4 argument name 2022-04-11 10:29:44 +02:00
qutebrowser bot ec49047f12 Update dependencies 2022-04-11 04:22:43 +00:00
Florian Bruhin 3f31e36bc7 Merge remote-tracking branch 'origin/feat/remove_pyqt_resources_for_importlib' 2022-04-05 12:18:48 +02:00
Florian Bruhin d8fea0155f Update changelog 2022-04-05 12:17:00 +02:00
Florian Bruhin 96425c93bf Merge remote-tracking branch 'origin/pr/7103' 2022-04-05 12:14:53 +02:00
Florian Bruhin f6a365172a Use legacy PDF.js build for macOS/Windows releases
Fixes #7108
2022-04-05 11:33:19 +02:00
Jimmy 78043bc4f8 fix more moved icons/ references
For Makefile installs (broke while copying stuff over) and pyinstaller
installs (broke on launch).
2022-04-05 08:45:15 +12:00
Florian Bruhin ac8d2949a2 Fix qute-lastpass tests 2022-04-04 17:30:41 +02:00
Florian Bruhin ab7a2ee558 Switch to Python 3.7 subprocess API
Follow-up for #6905
2022-04-04 16:58:31 +02:00
Florian Bruhin ade2a9ffdf Merge branch 'update-dependencies' 2022-04-04 16:35:13 +02:00
Florian Bruhin 0d3af197d9 Revert "pylint: Disable unnecessary-ellipsis for tests"
This reverts commit 2b76b61640.
2022-04-04 11:27:16 +02:00
Florian Bruhin 65fd458833 Update changelog URLs 2022-04-04 11:12:13 +02:00
qutebrowser bot 5efd72470b Update dependencies 2022-04-04 09:09:33 +00:00
Florian Bruhin b29c13c0a5 scripts: Handle root requirements.txt properly
Regressed in ac2cb6bb30
2022-04-04 10:51:35 +02:00
Florian Bruhin dc5dceece5 Update changelog 2022-04-04 10:51:35 +02:00
Florian Bruhin da280df809 Clean up some remaining Python version references 2022-04-04 10:51:34 +02:00
Florian Bruhin 1033913276 Update flake8 config for Python 3.6
The 'generator_stop' future import is default in Python 3.7:
https://docs.python.org/3/library/__future__.html

While we do want 'annotations' eventually, it doesn't bring us any gain
right now, see #7098.
2022-04-04 10:51:24 +02:00
Florian Bruhin 0b0be06e54 Drop types-dataclasses
There is https://github.com/python/typeshed/blob/master/stdlib/dataclasses.pyi for the stdlib one
2022-04-04 09:33:18 +02:00
Florian Bruhin 8f66fc3a4d Merge remote-tracking branch 'origin/pr/7102' 2022-04-04 09:27:59 +02:00
Jimmy e9ed6456fd Load icons via importlib.resources
The PyQt resources system is gone in 6.2 and deprecated before that. This
should be the last usage of it.

Switches icons to be read with `utils.resources.read_file_binary()` in
`notification.py` (fallback desktop notification icon) and `app.py` (icon for
the desktop window).

importlib only loads resources under a package, so the icons are moved under
the `qutebrowser/` directory.

Closes: #6062
2022-04-04 18:03:54 +12:00
Jimmy f15d6e88a9 Add back empty header indexerror workaround
The test case on the bug works for me on py37 but CI is failing on 3.10,
maybe this isn't quite the same issue. Anyway, we are getting rid of
webkit soon.
2022-04-04 12:08:19 +12:00
Jimmy cd4429db25 Remove 3.6 pins from requirements files.
Then regenerate the relevant files.
Also drop dataclasses from requirements files.
TODO: should we drop the dataclasses-types requirement for mypy too?
2022-04-04 12:08:19 +12:00
Jimmy 060e4fbf80 Drop python3.6 support.
Commits for dropping 3.5 support to copy from:

c245b7d855ccd "Initial drop of Python 3.5"
ccdfb44b85 "Drop support for Python 3.6.0"

Anything needed to update regarding OS version support in
doc/install.asciidoc?
TODO: remove 3.6/7 annotations in requirements files and
  rebuild

workflows: not sure I updated it right (run 5.12 with 3.7, same 18.04 OS) but
18.04 seems to have 3.7 on it too so it should work. It'll all change when we
drop <5.15 anyway. Not sure what the minimum ubuntu version will be going
forward.

Regarding mimetype overrides (ebb3046822) the doctring says they can all go
in 3.7 but .h5 is still missing on py39, not sure if we should care.

There are a bunch of old(?) warning messages still ignored in tests/end2end/fixtures/quteprocess.py.
2022-04-04 12:08:19 +12:00
Florian Bruhin d0c1d1ff94 Adjust broken link 2022-04-03 22:15:04 +02:00
Florian Bruhin 0a2940622c Fix some userscript syntax issues
Thanks to (a hacked) pyupgrade
2022-04-03 21:04:33 +02:00
Florian Bruhin bd8c940320 Simplify some syntax
Found via pyupgrade
2022-04-03 12:18:09 +02:00
Florian Bruhin 7580eca147 Actually mark qute-pass executable 2022-04-02 12:50:10 +02:00
Florian Bruhin 3c7d0879a4 Update changelog 2022-04-02 12:47:51 +02:00
Florian Bruhin f7bf9d0c33 Mark qute-pass as executable and add checker
Regressed in #7068
2022-04-02 12:45:40 +02:00
Florian Bruhin 01a402dcfc Release v2.5.0 2022-04-01 16:59:20 +02:00
Florian Bruhin 45d1662607 Update changelog 2022-04-01 16:51:53 +02:00
Florian Bruhin 16a7487f36 Update content.headers.user_agent completions 2022-04-01 16:33:40 +02:00
Florian Bruhin 7270753ed9 Update changelog 2022-04-01 16:29:07 +02:00
Florian Bruhin 18a88c4e87 Update changelog 2022-03-31 21:16:05 +02:00
Florian Bruhin 3f58605ad1 Merge remote-tracking branch 'origin/pr/6543' 2022-03-31 21:14:40 +02:00
Florian Bruhin 8a69226912 Fix spelling 2022-03-31 21:07:24 +02:00
Florian Bruhin ecf63880dc Fix lint / changelog 2022-03-31 20:38:33 +02:00
Florian Bruhin 1af602b258 readline: Properly delete first character 2022-03-31 19:54:19 +02:00
Florian Bruhin ab65c542a0 Add :rl-rubout and :rl-filename-rubout
Closes #4561
2022-03-31 17:46:34 +02:00
Florian Bruhin ebdd791b74 readline: Allow passing args to cmdutils.register 2022-03-31 16:43:33 +02:00
Florian Bruhin 6210870322 Restore deleted test 2022-03-31 15:42:10 +02:00
Florian Bruhin af85f7e6c9 Merge remote-tracking branch 'origin/pr/6599' 2022-03-31 15:41:10 +02:00