summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authortoofar <toofar@spalge.com>2023-02-07 20:16:21 +1300
committerGitHub <noreply@github.com>2023-02-07 20:16:21 +1300
commit1e67b26df1d19ca34571e828b68ec03b98a776d8 (patch)
tree16d5a68ec15d182144030fa24c9f2f0dee138e9a /scripts
parent6e491f23cd7393a0509a52a41a3f1be5fec0013c (diff)
parent2c4f6625139424e36045f219626c18baef5a90da (diff)
downloadqutebrowser-1e67b26df1d19ca34571e828b68ec03b98a776d8.tar.gz
qutebrowser-1e67b26df1d19ca34571e828b68ec03b98a776d8.zip
Merge pull request #7576 from qutebrowser/update-dependencies
Update dependencies
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dev/build_release.py5
-rwxr-xr-xscripts/dev/src2asciidoc.py6
-rwxr-xr-xscripts/dev/update_3rdparty.py2
3 files changed, 8 insertions, 5 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py
index 39c730472..18658f920 100755
--- a/scripts/dev/build_release.py
+++ b/scripts/dev/build_release.py
@@ -223,7 +223,7 @@ def smoke_test(executable: pathlib.Path, debug: bool) -> None:
"",
]
- raise Exception("\n".join(lines))
+ raise Exception("\n".join(lines)) # pylint: disable=broad-exception-raised
def verify_windows_exe(exe_path: pathlib.Path) -> None:
@@ -598,7 +598,7 @@ def read_github_token(
if optional:
return None
else:
- raise Exception(
+ raise Exception( # pylint: disable=broad-exception-raised
"GitHub token needed, but ~/.gh_token not found, "
"and --gh-token not given.")
@@ -614,6 +614,7 @@ def github_upload(artifacts: List[Artifact], tag: str, gh_token: str) -> None:
tag: The name of the release tag
gh_token: The GitHub token to use
"""
+ # pylint: disable=broad-exception-raised
import github3
import github3.exceptions
utils.print_title("Uploading to github...")
diff --git a/scripts/dev/src2asciidoc.py b/scripts/dev/src2asciidoc.py
index 1267a278a..2ad4dd60b 100755
--- a/scripts/dev/src2asciidoc.py
+++ b/scripts/dev/src2asciidoc.py
@@ -499,6 +499,7 @@ def _format_block(filename, what, data):
what: What to change (authors, options, etc.)
data; A list of strings which is the new data.
"""
+ # pylint: disable=broad-exception-raised
what = what.upper()
oshandle, tmpname = tempfile.mkstemp()
try:
@@ -525,9 +526,8 @@ def _format_block(filename, what, data):
except:
os.remove(tmpname)
raise
- else:
- os.remove(filename)
- shutil.move(tmpname, filename)
+ os.remove(filename)
+ shutil.move(tmpname, filename)
def regenerate_manpage(filename):
diff --git a/scripts/dev/update_3rdparty.py b/scripts/dev/update_3rdparty.py
index b1991fa1f..71d7ae7b5 100755
--- a/scripts/dev/update_3rdparty.py
+++ b/scripts/dev/update_3rdparty.py
@@ -66,6 +66,7 @@ def download_nsis_plugins():
def find_pdfjs_asset(assets, legacy):
"""Find the PDF.js asset to use."""
+ # pylint: disable=broad-exception-raised
for asset in assets:
name = asset["name"]
if (
@@ -82,6 +83,7 @@ def get_latest_pdfjs_url(gh_token, legacy):
Returns a (version, url)-tuple.
"""
+ # pylint: disable=broad-exception-raised
github_api = 'https://api.github.com'
endpoint = 'repos/mozilla/pdf.js/releases/latest'
request = urllib.request.Request(f'{github_api}/{endpoint}')