Commit Graph

2350 Commits

Author SHA1 Message Date
Florian Bruhin 488dc175e0 doc: Adjust some PyQt5 references 2022-04-14 13:40:31 +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 96425c93bf Merge remote-tracking branch 'origin/pr/7103' 2022-04-05 12:14:53 +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 ab7a2ee558 Switch to Python 3.7 subprocess API
Follow-up for #6905
2022-04-04 16:58:31 +02:00
qutebrowser bot 5efd72470b Update dependencies 2022-04-04 09:09:33 +00: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
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 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
Florian Bruhin 0a2940622c Fix some userscript syntax issues
Thanks to (a hacked) pyupgrade
2022-04-03 21:04:33 +02:00
Florian Bruhin 7580eca147 Actually mark qute-pass executable 2022-04-02 12:50:10 +02:00
Florian Bruhin 01a402dcfc Release v2.5.0 2022-04-01 16:59:20 +02:00
Florian Bruhin 3f58605ad1 Merge remote-tracking branch 'origin/pr/6543' 2022-03-31 21:14:40 +02:00
Florian Bruhin 50922bf620 Merge remote-tracking branch 'origin/pr/6957' 2022-03-31 14:40:33 +02:00
Florian Bruhin 887253f70c Add missing space 2022-03-31 14:37:20 +02:00
Florian Bruhin c832be9b95 Merge remote-tracking branch 'origin/pr/6996' 2022-03-31 14:37:01 +02:00
Florian Bruhin d671887777 Merge remote-tracking branch 'origin/pr/7048' 2022-03-31 12:06:13 +02:00
Florian Bruhin 0489f6a090 Merge remote-tracking branch 'origin/pr/7068' 2022-03-31 11:50:43 +02:00
Florian Bruhin f654c0fdfc cast userscript: Fix error message
Avoid SC2140 shellcheck false-positive: https://github.com/koalaman/shellcheck/issues/2479

Also remove extra quoting
2022-03-31 11:41:30 +02:00
Florian Bruhin 08fa205560 Merge remote-tracking branch 'origin/pr/7074' 2022-03-31 11:27:36 +02:00
Florian Bruhin 757532e568 Fix version specifiers for importlib-metadata 2022-03-30 13:57:56 +02:00
Florian Bruhin ab3fb74bb3 Do the Python 3.6 dance for pallets 2022-03-30 12:59:24 +02:00
qutebrowser bot da9ef56fa6 Update dependencies 2022-03-30 10:31:43 +00:00
Florian Bruhin 485b22a6ef requirements: Remove --use-feature=in-tree-build
This is the default now according to pip output
2022-03-30 11:56:34 +02:00
Florian Bruhin c0677c0f6f Do the Python 3.6 dance for Jinja2 2022-03-30 09:52:13 +02:00
Florian Bruhin 396442a7cd Do the Python 3.6 dance for importlib-resources 2022-03-29 22:16:20 +02:00
qutebrowser bot fe22b2b0b0 Update dependencies 2022-03-28 04:23:33 +00:00
David Vaughan 0321577cc3 Fix a couple tab lengths (cast) 2022-03-21 21:13:56 -07:00
David Vaughan 065edd67fa Change cast configuration to use an env var
Also some other small improvements / fixes.
2022-03-21 21:06:36 -07:00
qutebrowser bot 87b9dab1d8 Update dependencies 2022-03-21 04:23:12 +00:00
David Vaughan 88aa165d48 Disable shellcheck on source line (cast) 2022-03-16 16:46:12 -07:00
David Vaughan e38b31af0b Make cast dl program configurable (default yt-dlp)
I am making the yt-dl program used in the `cast` userscript
configurable, via a pattern borrowed from some of the other
userscripts here (e.g. `password_fill` and `kodi`): we look for an
optional "cast_rc" file in the qutebrowser config directory and source
it if it exists.

(Technically this allows for overriding any variables used in `cast`,
but this is in line with how the pattern works in the other scripts
already.)

If the config file is not found, we default to yt-dlp, and if that
doesn't exist then youtube-dl. If after all this no program is
available, we emit an error message

(note, the error messaging function as currently written in the cast script
seems broken and doesn't display the full error message, but fixing this
existing bug is outside of the scope of this change. May be good for a
followup).

I recognize there's some danger of breakage for some users by switching
the default to yt-dlp, but I think it's reasonable to assume that almost
everybody who has yt-dlp installed would prefer it to be used anyway.
Those who don't will experience no difference.
2022-03-16 16:39:57 -07:00
DavidRV00 3ba49366d1
Switch `cast` userscript from youtube-dl to yt-dlp
The `cast` userscript hasn't worked for me in a while, because it attempts to launch youtube-dl which has been replaced by yt-dlp for some time. Switching this one command gets `cast` working for me.
2022-03-15 23:30:36 -07:00
Joakim Hansen 3b54d45cd9 qute-pass: Support folder prefixes in gopass-mode 2022-03-14 12:36:11 +01:00
Florian Bruhin d4304511f3 requirements: Do the Python 3.6 dance 2022-03-14 09:14:58 +01:00
qutebrowser bot eb132a5830 Update dependencies 2022-03-14 04:20:38 +00:00
qutebrowser bot d50d9e8019 Update dependencies 2022-03-07 04:21:14 +00:00
Daniel Dimijian 68f683a8ad make url grabbing more robust 2022-03-02 10:59:30 -05:00
Daniel Dimijian 5eb57f4354 remove python 2 compatibility imports 2022-03-02 10:58:03 -05:00
Jetfrog28 b6c658a958
include qutebrowser in user agent
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2022-03-02 03:35:32 -05:00
Daniel Dimijian ed61390bde change user agent to ripbang 2022-03-02 02:24:22 -05:00
Daniel Dimijian b5c1cf9144 fix ripbang url snipping and set command 2022-03-02 01:54:18 -05:00
Daniel Dimijian dc50793d2d fix ripbang userscript for command line (not spawned) 2022-03-02 01:54:18 -05:00
qutebrowser bot bf16444389 Update dependencies 2022-02-28 04:21:34 +00:00
Jimmy 6e119a8508 pin tldextract for 3.6
I'm almost tempted to get pyenv working, almost.
2022-02-21 21:49:09 +13:00
Jimmy 0aa5558888 pin itsdangerous for python3.6
I wonder how many else will fail.
Also it would be nice if the compiled requirements files said where the
requirements come from, as in what they are dependencies of, if
anything. Like pip-compile does.
2022-02-21 21:32:08 +13:00
Jimmy fa232daa10 try to pin markupsafe for 3.6
Hopefully that works. This was confusing. Grepping for 3.6 to see how
other places pin it there were a bunch of normal pins in .txt files and
then some comment-but-actually-instruction comments in the -raw files.
There is a readme in the requirements folder but it just says what
instructions are allowed. Not why you would want to add them, seems to
very high cognitive load setup.
Trying to run the recompile_requirements.py script it did some stuff
then quit because it couldn't find python3.7. Yeah I don't have that
installed. It doesn't try to use pyenv or anything, just runs venv
expecting you have everything installed?
Turns out you take the name of the requirements file you added the
instructions to (eq requirements-test.txt-raw -> test) and run it with
that as argument. The requirements file you modify should be the highest
level one that mentions the requirement you want to pin.

Anyway I edited the qutebrowser.text-raw one because that seems like the
main one and it mentions MarkupSafe (because of jinja2?) and ran
`scripts/dev/recompile_requirements qutebrowser` in my existing venv.
Lets see what the CI thinks.

Also got lots of `pkg_resources==0.0.0` in a bunch of requirements files
which seems problematic.
2022-02-21 21:16:41 +13:00
qutebrowser bot 1d75436b7f Update dependencies 2022-02-21 04:20:20 +00:00
Florian Bruhin 21cf983501 Merge remote-tracking branch 'origin/update-dependencies' 2022-02-14 16:17:57 +01:00