summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-09-13 09:29:35 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-09-13 09:29:35 +0200
commit3527f21121c3a4c7d627d4787307b33e92ddf847 (patch)
treed7a9d05ea635570b71f26d74b69dadaea2d32ce9
parentcaf63452514c800a3b1d6be653b150b1510705ab (diff)
downloadqutebrowser-3527f21121c3a4c7d627d4787307b33e92ddf847.tar.gz
qutebrowser-3527f21121c3a4c7d627d4787307b33e92ddf847.zip
scripts: Clean up pylint build files
-rw-r--r--scripts/dev/recompile_requirements.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/dev/recompile_requirements.py b/scripts/dev/recompile_requirements.py
index 7a7d66c0e..1aff76745 100644
--- a/scripts/dev/recompile_requirements.py
+++ b/scripts/dev/recompile_requirements.py
@@ -27,6 +27,8 @@ import glob
import subprocess
import tempfile
import argparse
+import shutil
+import pathlib
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir,
os.pardir))
@@ -571,6 +573,13 @@ def test_requirements(name, outfile, *, force=False):
init_venv(host_python, tmpdir, outfile, pip_args=comments['pip_args'])
+def cleanup_pylint_build():
+ """Clean up pylint_checkers build files."""
+ path = pathlib.Path(__file__).parent / 'pylint_checkers' / 'build'
+ utils.print_col(f'$ rm -r {path}', 'blue')
+ shutil.rmtree(path)
+
+
def main():
"""Re-compile the given (or all) requirement files."""
args = parse_args()
@@ -584,6 +593,8 @@ def main():
utils.print_title(name)
outfile = build_requirements(name)
test_requirements(name, outfile, force=args.force_test)
+ if name == 'pylint':
+ cleanup_pylint_build()
utils.print_title('Testing via tox')
if args.names and not args.force_test: