Florian Bruhin
3eb826f664
reuse: Update remaining copyright texts
...
git ls-files | \
xargs sed -Ei 's/Copyright [0-9]{4}(-[0-9]{4}) ([^<]*)<([^>]*)>/SPDX-FileCopyrightText: \2<\3>/'
2023-07-23 12:52:01 +02:00
Florian Bruhin
0718b25796
reuse: Initial copyright text update for myself
...
git ls-files | \
xargs sed -Ei 's/Copyright [0-9]{4}(-[0-9]{4}) Florian Bruhin \(The Compiler\) <mail@qutebrowser\.org>/SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>/'
2023-07-23 12:49:05 +02:00
Florian Bruhin
77ca342cff
reuse: Remove some more old license headers
...
git ls-files | \
xargs grep -l "This file is part of qutebrowser" | \
xargs grep -l SPDX-License-Identifier | \
xargs sed -i '/# This file is part of qutebrowser\./,/along with qutebrowser\. If not, see <https:\/\/www\.gnu.org\/licenses\/>./d'
2023-07-23 12:15:03 +02:00
Florian Bruhin
b2aaba6043
reuse: Adjust most license headers
...
git ls-files | xargs grep -l "is free software" | xargs reuse annotate --license="GPL-3.0-or-later" --skip-unrecognised
2023-07-23 12:11:07 +02:00
Florian Bruhin
273230eb07
Merge remote-tracking branch 'origin/pr/7789'
2023-07-22 12:36:31 +02:00
Philipp Albrecht
e3a58e84c6
Don't crash on --logfilter
2023-07-20 15:09:48 +02:00
Philipp Albrecht
f91ace9622
Move hide_qt_warning() to qtlog
...
Just to keep related things together.
2023-07-20 15:09:48 +02:00
Philipp Albrecht
ebfe9b7aa0
Move qt_message_handler() to qtlog
...
I had to create `qtlog.init()` to deal with the global variable `_args`.
2023-07-20 15:09:48 +02:00
Florian Bruhin
4e67a1727a
Fix lint/test issues
2023-06-30 19:29:28 +02:00
Florian Bruhin
37791422bf
qt6: Make sure KeyInfo never has ints as members
...
This used to be possible in some situations and was handled in somewhat
unexpected places (e.g. .to_qt()). Instead, we now assume that KeyInfo
is always "clean", and we handle the conversion from an int to a Qt.Key
elsewhere.
This only seems to affect tests, since otherwise we already made sure
we get a Qt.Key and Qt.KeyboardModifier(s) e.g. in .from_event().
2023-06-30 19:29:28 +02:00
Florian Bruhin
729d7ce69d
qt6: Widen env auto tests
2023-06-30 19:29:28 +02:00
Florian Bruhin
342cd9585a
Fix mypy
2023-06-30 19:29:28 +02:00
Florian Bruhin
ffc06e58d6
qt6: Switch most tooling/linting to Qt 6
...
Only mypy missing now...
2023-06-30 19:29:28 +02:00
Florian Bruhin
2ccd49ddf1
qt: Introduce _WRAPPER_OVERRIDE for packagers
2023-06-30 19:29:28 +02:00
Florian Bruhin
73fb5c4c49
qt: Switch to autoselection of Qt backend by default
2023-06-30 19:29:28 +02:00
Florian Bruhin
ad77048d53
qt: blackify
2023-06-30 19:29:28 +02:00
Florian Bruhin
8dd5ba0abe
Fix test_qtargs on Qt 5
2023-06-30 15:59:08 +02:00
Florian Bruhin
8e024ee654
Merge pull request #7761 from pylbrecht/remove-vim-modelines
...
Remove vim modelines in favor of .editorconfig
2023-06-30 15:51:19 +02:00
Florian Bruhin
693b25efd2
Add experimental_web_platform_features setting
...
Closes #7639
2023-06-30 15:32:46 +02:00
Philipp Albrecht
d9e8b638bf
Remove vim modelines
...
We're deprecating vim modelines in favor of `.editorconfig`.
Removing vim modelines could be done using two one-liners. Most of the vim modelines
were followed by an empty line, so this one-liner took care of these ones:
```sh
rg '^# vim: .+\n\n' -l | xargs sed -i '/^# vim: /,+1d'
```
Then some of the vim modelines were followed by a pylint configuration line, so running
this one-liner afterwards took care of that:
```sh
rg '^# vim:' -l | xargs sed -i '/^# vim: /d'
```
2023-06-30 11:03:06 +02:00
Florian Bruhin
93c7fdd60c
Initial Python 3.7 drop
2023-06-26 14:39:54 +02:00
Florian Bruhin
48ea86fcb5
Rename some qt6 FIXMEs
...
Not relevant for v3 and qt6
2023-06-25 23:32:59 +02:00
Florian Bruhin
036af85199
Revert "Work around Python 3.12 test issues"
...
Fixed with newest PyQt snapshot.
This reverts commit c62e9aba5b .
2023-06-25 21:48:12 +02:00
Florian Bruhin
28f437c214
Revert "tests: Add a test for implicit Qt init"
...
This reverts commit 220337f870 .
Has various side-effects during tests due to global state.
2023-06-24 20:44:53 +02:00
Florian Bruhin
220337f870
tests: Add a test for implicit Qt init
2023-06-23 23:28:57 +02:00
Florian Bruhin
89b81c4b3a
tests: Widen xfail range for ELF to Qt 6.6+
2023-06-15 16:24:21 +02:00
Florian Bruhin
d6af539454
qt: Use warning instead if Qt was already imported
2023-06-14 19:09:58 +02:00
Florian Bruhin
69c21a5751
qt: Use outcomes dict instead of attributes for SelectionInfo
2023-06-14 19:03:34 +02:00
Florian Bruhin
54aef75a29
qt: Sort wrappers in SelectionInfo correctly
2023-06-14 19:03:34 +02:00
Florian Bruhin
5be71197d1
qt: Allow opt-in to autoselection and enable tests
2023-06-14 19:03:34 +02:00
Florian Bruhin
b9253c90fe
qt: Improve SelectionInfo.__str__()
2023-06-13 20:13:06 +02:00
Florian Bruhin
ca4cd3a24f
qt: Refactor SelectionInfo.set_module_error
2023-06-13 19:56:21 +02:00
Florian Bruhin
92243041c2
qt: Stop trying other wrappers on ImportError
2023-06-13 19:51:22 +02:00
Florian Bruhin
1313704802
qt: Add wrapper info to backendproblem messages
2023-06-13 19:32:50 +02:00
Florian Bruhin
0175c00d0f
qt: Make sure to undo all global state changes
2023-06-13 18:53:00 +02:00
Florian Bruhin
13c412f13e
qt: Fix lint
2023-06-13 18:53:00 +02:00
Florian Bruhin
d9543de98c
qt: Fix test_version
2023-06-13 17:02:54 +02:00
Florian Bruhin
63e96fa3fe
qt: Split machinery.init() and init_explicit() into two functions
...
This also moves the checking for sys.modules into _select_wrapper.
2023-06-13 17:01:15 +02:00
Florian Bruhin
322834d0e6
qt: Integrate machinery into earlyinit properly
...
This means we will now get errors via the usual mechanisms
(e.g. a Tk error dialog) when all Qt wrappers failed to import.
We also add information about the picked Qt wrapper (and any errors)
to the error message.
2023-06-13 16:36:03 +02:00
Florian Bruhin
7691556ea1
qt: Fix tests for SelectionInfo changes
2023-06-13 15:21:41 +02:00
Florian Bruhin
1cf9d68aba
qt: Fix lint
2023-06-13 15:21:28 +02:00
Florian Bruhin
9588e0aec0
qt: Treat empty QUTE_QT_WRAPPER as unset
2023-06-13 12:18:44 +02:00
Florian Bruhin
a25e8a0987
qt: Less stringly-typed API for SelectionInfo
2023-06-13 12:18:39 +02:00
Florian Bruhin
83bef2ad4b
qt: Add machinery.SelectionInfo
2023-06-13 12:09:48 +02:00
Florian Bruhin
8fdb5b09be
qt: Fix typing/lint
2023-06-12 23:59:11 +02:00
Florian Bruhin
eeb39d6330
qt: Add tests for machinery
2023-06-12 23:34:27 +02:00
Florian Bruhin
c62e9aba5b
Work around Python 3.12 test issues
...
See #7727
2023-06-09 20:06:40 +02:00
Florian Bruhin
e1d0b3c543
tests: Adjust urlmatch exception message patterns for Python 3.11.4
2023-06-08 17:17:40 +02:00
Florian Bruhin
8b058389b7
test: Adjust test_nul_bytes version check
...
Python 3.11.4 also got the fix backported which turns this into a SyntaxError:
https://github.com/python/cpython/pull/104195
2023-06-08 16:59:19 +02:00
Florian Bruhin
368061dc3d
Merge branch 'update-dependencies'
2023-05-31 15:49:46 +02:00