Commit Graph

77 Commits

Author SHA1 Message Date
Florian Bruhin 22f1b57347 lint: Move check-manifest into pyroma
pyroma now runs check-manifest if installed,
so we can simplify things there.
2025-07-07 08:09:47 +02:00
Florian Bruhin 8f274c4e18 mkvenv: Add arm64 to supported platforms 2024-12-10 00:47:04 +01:00
Florian Bruhin 97104b2000 Use builtin list/dict/set/... types for annotations
See https://peps.python.org/pep-0585/
and https://docs.python.org/3/whatsnew/3.9.html#type-hinting-generics-in-standard-collections

Done via:

    ruff check --select 'UP006' --fix --config 'target-version = "py39"' --unsafe-fixes

followed by removing unused imports:

    ruff check --select 'F401' --fix --config 'target-version = "py39"'

and a semi-manual review to find imports that are still needed (but ruff doesn't know about yet):

    git diff | grep '^-' | grep import | grep -v "from typing"

Also see #7098.
2024-10-15 11:54:49 +02:00
Florian Bruhin d145f0c253 scripts: Fix typo 2023-07-24 20:16:11 +02:00
Florian Bruhin 8fcd42fa12 Revert "Create a workaround to install PyQT 6.5.2 until release"
This reverts commit ed70741587.
2023-07-24 20:12:17 +02:00
Florian Bruhin e909f57f4f Fix lint/tests 2023-07-23 14:10:10 +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
Paul Mairo b9450a1356 fixup! fixup! mkvenv: Fix '--pyqt-type link' without --pyqt-version
I broke it oops
2023-07-22 15:03:13 +02:00
Paul Mairo 2a3993e5b8 fixup! mkvenv: Fix '--pyqt-type link' without --pyqt-version 2023-07-22 14:56:20 +02:00
Paul Mairo 5fa531e09e mkvenv: Fix '--pyqt-type link' without --pyqt-version
This is a follow-up of #7770 which was an attempt to fix the script broken in 9212ba9.
Before flipping the QT6 switch.
2023-07-22 14:38:06 +02:00
Paul Mairo ed70741587 Create a workaround to install PyQT 6.5.2 until release
Right now the version of PyQT available on PyPI is 6.5.1 and it's buggy with
Qutebrowser, this is a quick hack to get it working until it's released early next week.
2023-07-22 12:22:53 +02:00
Florian Bruhin 0ac074575d qt 6: Update mkvenv.py for Qt 6 by default 2023-06-30 19:29:28 +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 e97bcff9dc scripts: Allow --pyqt-version in mkvenv with --pyqt-type wheels
To adjust which version to use for the smoketest
2023-06-15 16:30:24 +02:00
Florian Bruhin 665cbfc45a scripts: Check if PyQt wheels directory exists 2023-06-15 15:41:59 +02:00
Florian Bruhin 41ebbc0d73 scripts: Fix indent 2023-03-23 22:17:17 +01:00
Florian Bruhin dabd8ede86 scripts: Use proper Qt version for smoke test
See https://github.com/qutebrowser/qutebrowser/issues/7202#issuecomment-1481877459
2023-03-23 22:01:48 +01:00
Florian Bruhin b4d32e04f4 Merge branch 'master' into qt6-v2 2022-12-13 09:05:32 +01:00
Florian Bruhin bbdc83f638 Fix lint/ci 2022-12-12 13:37:07 +01:00
Florian Bruhin af176f749f scripts: Use pip-installed asciidoc
Fixes #7352, closes #6793
2022-12-12 11:06:28 +01:00
toofar 2d66466194 Merge branch 'master' into qt6-v2
Just a few conflicts around CI and dependencies.
2022-11-20 15:48:00 +13:00
Florian Bruhin fa62360357 Remove unneeded str
Only needed in Python 3.5 times
2022-09-30 20:23:38 +02:00
Florian Bruhin 7623875a18 mkvenv: Work around QT_DEBUG_PLUGINS crash
Fixes https://github.com/qutebrowser/qutebrowser/issues/7257
2022-08-23 18:31:42 +02:00
Florian Bruhin c64a43d44d scripts: Adjust supported architectures for PyQt6
32-bit Windows support got dropped, macOS arm64 (M1) support added.
2022-08-23 18:31:42 +02:00
Florian Bruhin 66b210ea7d scripts: Add _is_qt6_version to mkvenv 2022-08-23 18:31:42 +02:00
Florian Bruhin 38f6de4b0c mkvenv: Apply workaround with --pyqt-version 5 2022-08-23 18:31:42 +02:00
Florian Bruhin 769ef6859f Adjust some fixme comments 2022-08-23 18:31:42 +02:00
Florian Bruhin f4cb011432 mkvenv: Remove sip packages from binary args
e.g. not available for Python 3.11 yet
2022-08-23 18:31:41 +02:00
Florian Bruhin ec8eebf996 lint: Fix remaining pylint issues 2022-08-23 18:31:41 +02:00
Florian Bruhin b44abce26e scripts: Add --pyqt-snapshot to mkvenv.py 2022-08-23 18:31:41 +02:00
Florian Bruhin 9212ba94d6 scripts: Allow linking/installing pyqt-5 or pyqt-6 2022-08-23 18:31:41 +02:00
Florian Bruhin ff1e165be1 mkvenv: Fix comparison
TODO: pick to master?
2022-08-23 18:31:41 +02:00
Florian Bruhin c151183e9d Update mkvenv.py for Qt 6 2022-08-23 18:31:41 +02:00
Florian Bruhin c5a51eb0bc Drop Qt < 5.15
Fixes #7091

TODO: Add changelog
2022-08-23 18:31: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 7c3771f0b1 Add glibc check to mkvenv.py 2021-07-05 09:58:50 +02:00
Florian Bruhin b272fbb0e5 scripts: Add arch check to mkvenv 2021-07-04 11:31:31 +02:00
Florian Bruhin 3c86d44921 mkvenv: Ignore another harmless ldconfig output 2021-06-07 10:04:06 +02:00
Florian Bruhin 2f9b1ef4a7 mkvenv: Also install linters with --dev
Can be useful for editors
2021-05-18 18:31:05 +02:00
Florian Bruhin 1b4daf7c37 mkvenv: Handle failing ldconfig 2021-04-17 09:46:30 +02:00
Florian Bruhin ed49bdd9a4 Fix --asciidoc for mkvenv.py 2021-03-31 13:10:09 +02:00
Florian Bruhin b45ac601c6 Fix version sorting in mkvenv.py for requirements-pyinstaller 2021-03-12 13:57:54 +01:00
Florian Bruhin 9a5fe232cd Mark mkvenv.py as executable 2021-01-29 15:52:13 +01:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 222f1f19a1 Bump copyright years
Closes #6015
2021-01-20 20:06:19 +01:00
Florian Bruhin f33d15242b Add mkvenv.py --update 2020-12-19 20:58:46 +01:00
Florian Bruhin 226df4558b scripts: Actually read --skip-smoke0test 2020-12-03 21:04:18 +01:00
Florian Bruhin 6d189951ea scripts: Add --skip-smoke-test to mkvenv.py 2020-12-03 17:37:31 +01:00