# https://github.com/bazelbuild/rules_python#Migrating-from-the-bundled-rules # We will use the future interface for Python Rules in Bazel I am not focusing on # a hermetic build yet. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python", sha256 = "9fcf91dbcc31fde6d1edb15f117246d912c33c36f44cf681976bd886538deba6", strip_prefix = "rules_python-0.8.0", url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.8.0.tar.gz", ) # PIP STUFFS https://github.com/bazelbuild/rules_python#using-the-packaging-rules load("@rules_python//python:pip.bzl", "pip_install") # Create a central external repo, @my_deps, that contains Bazel targets for all the # third-party packages specified in the requirements.txt file. pip_install( name = "my_py_app_deps", requirements = "//third_party_py:requirements.txt", )