diff --git a/pylib/tests/run_mypy.py b/pylib/tests/run_mypy.py index 0ae77db7c..74edf429f 100644 --- a/pylib/tests/run_mypy.py +++ b/pylib/tests/run_mypy.py @@ -36,7 +36,7 @@ if __name__ == "__main__": # bazel passes in \\?\c:\... path; mypy can't handle it, so we # strip off prefix for entry in sys.path: - if entry.endswith("__mypy"): + if entry.endswith("deps_mypy"): typeshed = f"{entry[4:]}\\mypy\\typeshed" args.append("--custom-typeshed-dir") args.append(typeshed) diff --git a/python/stubs/gatherstubs.py b/python/stubs/gatherstubs.py index 358233a75..4c5db6456 100644 --- a/python/stubs/gatherstubs.py +++ b/python/stubs/gatherstubs.py @@ -17,7 +17,7 @@ def copy_folder(pkgname, path, outbase): shutil.copytree(path, os.path.join(outbase, f"{stubname}-stubs")) -name_re = re.compile("__types_(.+?)$") +name_re = re.compile("deps_types_(.+?)$") if __name__ == "__main__": outbase = os.path.abspath(sys.argv[1]) diff --git a/qt/tests/run_mypy.py b/qt/tests/run_mypy.py index 81e83f301..3bd4b8968 100644 --- a/qt/tests/run_mypy.py +++ b/qt/tests/run_mypy.py @@ -44,7 +44,7 @@ if __name__ == "__main__": # bazel passes in \\?\c:\... path; mypy can't handle it, so we # strip off prefix for entry in sys.path: - if entry.endswith("__mypy"): + if entry.endswith("deps_mypy"): typeshed = entry[4:] + "\\mypy\\typeshed" args.append("--custom-typeshed-dir") args.append(typeshed) diff --git a/repos.bzl b/repos.bzl index d3f5a75a8..93bf221dc 100644 --- a/repos.bzl +++ b/repos.bzl @@ -61,11 +61,9 @@ def register_repos(): maybe( http_archive, name = "rules_python", - sha256 = "954aa89b491be4a083304a2cb838019c8b8c3720a7abb9c4cb81ac7a24230cea", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz", - "https://github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz", - ], + sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502", + strip_prefix = "rules_python-0.6.0", + url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz", ) # javascript