summaryrefslogtreecommitdiff
path: root/scripts/dev
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-08-26 16:44:25 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-08-26 16:44:25 +0200
commitb13f2eb4485b03cf237ab699da88620ba88e7b4c (patch)
tree8a395857a32dcb6781a0c986610da0a889e559d2 /scripts/dev
parent2d9e9241265c526ebc97613af8a5063160daaee8 (diff)
downloadqutebrowser-b13f2eb4485b03cf237ab699da88620ba88e7b4c.tar.gz
qutebrowser-b13f2eb4485b03cf237ab699da88620ba88e7b4c.zip
Blanket PyQt5 -> PyQt6
Diffstat (limited to 'scripts/dev')
-rw-r--r--scripts/dev/build_pyqt_wheel.py4
-rwxr-xr-xscripts/dev/build_release.py2
-rw-r--r--scripts/dev/recompile_requirements.py10
-rw-r--r--scripts/dev/run_pylint_on_tests.py2
-rwxr-xr-xscripts/dev/run_vulture.py12
-rw-r--r--scripts/dev/standardpaths_tester.py2
6 files changed, 16 insertions, 16 deletions
diff --git a/scripts/dev/build_pyqt_wheel.py b/scripts/dev/build_pyqt_wheel.py
index b63331341..36fc9cbe4 100644
--- a/scripts/dev/build_pyqt_wheel.py
+++ b/scripts/dev/build_pyqt_wheel.py
@@ -78,8 +78,8 @@ def main():
utils.print_title("Downloading wheels")
subprocess.run([sys.executable, '-m', 'pip', 'download',
- '--no-deps', '--only-binary', 'PyQt5,PyQtWebEngine',
- 'PyQt5', 'PyQtWebEngine'], check=True)
+ '--no-deps', '--only-binary', 'PyQt6,PyQtWebEngine',
+ 'PyQt6', 'PyQtWebEngine'], check=True)
utils.print_title("Patching wheels")
input_files = wheels_dir.glob('*.whl')
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py
index a1c6646eb..b849bc666 100755
--- a/scripts/dev/build_release.py
+++ b/scripts/dev/build_release.py
@@ -226,7 +226,7 @@ def patch_mac_app():
plistlib.dump(plist_data, f)
# Replace some duplicate files by symlinks
- framework_path = os.path.join(app_path, 'Contents', 'MacOS', 'PyQt5',
+ framework_path = os.path.join(app_path, 'Contents', 'MacOS', 'PyQt6',
'Qt', 'lib', 'QtWebEngineCore.framework')
core_lib = os.path.join(framework_path, 'Versions', '5', 'QtWebEngineCore')
diff --git a/scripts/dev/recompile_requirements.py b/scripts/dev/recompile_requirements.py
index d8ed9974b..133735644 100644
--- a/scripts/dev/recompile_requirements.py
+++ b/scripts/dev/recompile_requirements.py
@@ -138,15 +138,15 @@ CHANGELOG_URLS = {
'cryptography': 'https://cryptography.io/en/latest/changelog.html',
'toml': 'https://github.com/uiri/toml/releases',
'tomli': 'https://github.com/hukkin/tomli/blob/master/CHANGELOG.md',
- 'PyQt5': 'https://www.riverbankcomputing.com/news',
- 'PyQt5-Qt': 'https://www.riverbankcomputing.com/news',
- 'PyQt5-Qt5': 'https://www.riverbankcomputing.com/news',
+ 'PyQt6': 'https://www.riverbankcomputing.com/news',
+ 'PyQt6-Qt': 'https://www.riverbankcomputing.com/news',
+ 'PyQt6-Qt5': 'https://www.riverbankcomputing.com/news',
'PyQtWebEngine': 'https://www.riverbankcomputing.com/news',
'PyQtWebEngine-Qt': 'https://www.riverbankcomputing.com/news',
'PyQtWebEngine-Qt5': 'https://www.riverbankcomputing.com/news',
'PyQt-builder': 'https://www.riverbankcomputing.com/news',
- 'PyQt5-sip': 'https://www.riverbankcomputing.com/news',
- 'PyQt5-stubs': 'https://github.com/stlehmann/PyQt5-stubs/blob/master/CHANGELOG.md',
+ 'PyQt6-sip': 'https://www.riverbankcomputing.com/news',
+ 'PyQt6-stubs': 'https://github.com/stlehmann/PyQt6-stubs/blob/master/CHANGELOG.md',
'sip': 'https://www.riverbankcomputing.com/news',
'Pygments': 'https://pygments.org/docs/changelog/',
'vulture': 'https://github.com/jendrikseipp/vulture/blob/master/CHANGELOG.md',
diff --git a/scripts/dev/run_pylint_on_tests.py b/scripts/dev/run_pylint_on_tests.py
index d0385bd17..657f6ca33 100644
--- a/scripts/dev/run_pylint_on_tests.py
+++ b/scripts/dev/run_pylint_on_tests.py
@@ -70,7 +70,7 @@ def main():
args = [
'--disable={}'.format(','.join(disabled)),
- '--ignored-modules=helpers,pytest,PyQt5',
+ '--ignored-modules=helpers,pytest,PyQt6',
r'--ignore-long-lines=(<?https?://|^# Copyright 201\d)|^ *def [a-z]',
r'--method-rgx=[a-z_][A-Za-z0-9_]{1,100}$',
] + sys.argv[2:] + files
diff --git a/scripts/dev/run_vulture.py b/scripts/dev/run_vulture.py
index 1f0018488..519b431b0 100755
--- a/scripts/dev/run_vulture.py
+++ b/scripts/dev/run_vulture.py
@@ -64,11 +64,11 @@ def whitelist_generator(): # noqa: C901
yield 'qutebrowser.misc.guiprocess.GUIProcess.stderr'
# Qt attributes
- yield 'PyQt5.QtWebKit.QWebPage.ErrorPageExtensionReturn().baseUrl'
- yield 'PyQt5.QtWebKit.QWebPage.ErrorPageExtensionReturn().content'
- yield 'PyQt5.QtWebKit.QWebPage.ErrorPageExtensionReturn().encoding'
- yield 'PyQt5.QtWebKit.QWebPage.ErrorPageExtensionReturn().fileNames'
- yield 'PyQt5.QtWidgets.QStyleOptionViewItem.backgroundColor'
+ yield 'PyQt6.QtWebKit.QWebPage.ErrorPageExtensionReturn().baseUrl'
+ yield 'PyQt6.QtWebKit.QWebPage.ErrorPageExtensionReturn().content'
+ yield 'PyQt6.QtWebKit.QWebPage.ErrorPageExtensionReturn().encoding'
+ yield 'PyQt6.QtWebKit.QWebPage.ErrorPageExtensionReturn().fileNames'
+ yield 'PyQt6.QtWidgets.QStyleOptionViewItem.backgroundColor'
## qute://... handlers
for name in qutescheme._HANDLERS: # pylint: disable=protected-access
@@ -86,7 +86,7 @@ def whitelist_generator(): # noqa: C901
yield 'propagate' # logging.getLogger('...).propagate = False
# vulture doesn't notice the hasattr() and thus thinks netrc_used is unused
# in NetworkManager.on_authentication_required
- yield 'PyQt5.QtNetwork.QNetworkReply.netrc_used'
+ yield 'PyQt6.QtNetwork.QNetworkReply.netrc_used'
yield 'qutebrowser.browser.downloads.last_used_directory'
yield 'PaintContext.clip' # from completiondelegate.py
yield 'logging.LogRecord.log_color' # from logging.py
diff --git a/scripts/dev/standardpaths_tester.py b/scripts/dev/standardpaths_tester.py
index 03de7f887..4ec2e1560 100644
--- a/scripts/dev/standardpaths_tester.py
+++ b/scripts/dev/standardpaths_tester.py
@@ -23,7 +23,7 @@
import os
import sys
-from PyQt5.QtCore import (QT_VERSION_STR, PYQT_VERSION_STR, qVersion,
+from PyQt6.QtCore import (QT_VERSION_STR, PYQT_VERSION_STR, qVersion,
QStandardPaths, QCoreApplication)