Bazel Python Rules
Repo bazel-contrib/rules_python, read from GitHub 4 h ago. bazel-contrib has not joined Take My Repo.
For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html
For the user-facing changelog see here
Add to your MODULE.bazel file:
bazel_dep(name = "rules_python", version = "1.9.3") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( python_version = "3.13", ) pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") pip.parse( hub_name = "pypi", python_version = "3.13", requirements_lock = "//:requirements_lock.txt", ) use_repo(pip, "pypi")
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python", sha256 = "9075d61cb4aaccb81da50f826b0fd7c1a859f52821f6aa7dbd2a0340b6bc0717", strip_prefix = "rules_python-1.9.3", url = "https://github.com/bazel-contrib/rules_python/releases/download/1.9.3/rules_python-1.9.3.tar.gz", ) load("@rules_python//python:repositories.bzl", "py_repositories") py_repositories()
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python_gazelle_plugin", sha256 = "9075d61cb4aaccb81da50f826b0fd7c1a859f52821f6aa7dbd2a0340b6bc0717", strip_prefix = "rules_python-1.9.3/gazelle", url = "https://github.com/bazel-contrib/rules_python/releases/download/1.9.3/rules_python-1.9.3.tar.gz", ) # To compile the rules_python gazelle extension from source, # we must fetch some third-party go dependencies that it uses. load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps") _py_gazelle_deps()
Full Changelog: 1.9.2...1.9.3
For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html
For the user-facing changelog see here
Add to your MODULE.bazel file:
bazel_dep(name = "rules_python", version = "2.5.1") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( python_version = "3.14", ) pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") pip.parse( hub_name = "pypi", python_version = "3.14", requirements_lock = "//:requirements_lock.txt", ) use_repo(pip, "pypi")
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python", sha256 = "693759df31e7cd2efa44378207a7d487c40145d32a54878005af47dee27bef72", strip_prefix = "rules_python-2.5.1", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.1/rules_python-2.5.1.tar.gz", ) load("@rules_python//python:repositories.bzl", "py_repositories") py_repositories()
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python_gazelle_plugin", sha256 = "693759df31e7cd2efa44378207a7d487c40145d32a54878005af47dee27bef72", strip_prefix = "rules_python-2.5.1/gazelle", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.1/rules_python-2.5.1.tar.gz", ) # To compile the rules_python gazelle extension from source, # we must fetch some third-party go dependencies that it uses. load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps") _py_gazelle_deps()
Full Changelog: 2.5.0...2.5.1
For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html
For the user-facing changelog see here
Add to your MODULE.bazel file:
bazel_dep(name = "rules_python", version = "2.5.0") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( python_version = "3.14", ) pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") pip.parse( hub_name = "pypi", python_version = "3.14", requirements_lock = "//:requirements_lock.txt", ) use_repo(pip, "pypi")
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python", sha256 = "48be9437dd9a6f2ccaecc78930277a4fd3246b4513ac8308e710f6f3e1cc8876", strip_prefix = "rules_python-2.5.0", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.0/rules_python-2.5.0.tar.gz", ) load("@rules_python//python:repositories.bzl", "py_repositories") py_repositories()
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python_gazelle_plugin", sha256 = "48be9437dd9a6f2ccaecc78930277a4fd3246b4513ac8308e710f6f3e1cc8876", strip_prefix = "rules_python-2.5.0/gazelle", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.0/rules_python-2.5.0.tar.gz", ) # To compile the rules_python gazelle extension from source, # we must fetch some third-party go dependencies that it uses. load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps") _py_gazelle_deps()
For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html
For the user-facing changelog see here
Add to your MODULE.bazel file:
bazel_dep(name = "rules_python", version = "2.5.0-rc4") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( python_version = "3.14", ) pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") pip.parse( hub_name = "pypi", python_version = "3.14", requirements_lock = "//:requirements_lock.txt", ) use_repo(pip, "pypi")
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python", sha256 = "b17466277d9a49239289d3a87c4c354e27f7366107842a1b0f5c96a61a159656", strip_prefix = "rules_python-2.5.0-rc4", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.0-rc4/rules_python-2.5.0-rc4.tar.gz", ) load("@rules_python//python:repositories.bzl", "py_repositories") py_repositories()
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python_gazelle_plugin", sha256 = "b17466277d9a49239289d3a87c4c354e27f7366107842a1b0f5c96a61a159656", strip_prefix = "rules_python-2.5.0-rc4/gazelle", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.0-rc4/rules_python-2.5.0-rc4.tar.gz", ) # To compile the rules_python gazelle extension from source, # we must fetch some third-party go dependencies that it uses. load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps") _py_gazelle_deps()
Full Changelog: 2.5.0-rc3...2.5.0-rc4
For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html
For the user-facing changelog see here
Add to your MODULE.bazel file:
bazel_dep(name = "rules_python", version = "2.5.0-rc3") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( python_version = "3.14", ) pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") pip.parse( hub_name = "pypi", python_version = "3.14", requirements_lock = "//:requirements_lock.txt", ) use_repo(pip, "pypi")
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python", sha256 = "9567509d7bf5b4e2fcaad522a98a720fe216368463f20012e281186555c27f14", strip_prefix = "rules_python-2.5.0-rc3", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.0-rc3/rules_python-2.5.0-rc3.tar.gz", ) load("@rules_python//python:repositories.bzl", "py_repositories") py_repositories()
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python_gazelle_plugin", sha256 = "9567509d7bf5b4e2fcaad522a98a720fe216368463f20012e281186555c27f14", strip_prefix = "rules_python-2.5.0-rc3/gazelle", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.0-rc3/rules_python-2.5.0-rc3.tar.gz", ) # To compile the rules_python gazelle extension from source, # we must fetch some third-party go dependencies that it uses. load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps") _py_gazelle_deps()
Full Changelog: 2.5.0-rc0...2.5.0-rc3
For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html
For the user-facing changelog see here
Add to your MODULE.bazel file:
bazel_dep(name = "rules_python", version = "2.5.0-rc2") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( python_version = "3.14", ) pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") pip.parse( hub_name = "pypi", python_version = "3.14", requirements_lock = "//:requirements_lock.txt", ) use_repo(pip, "pypi")
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python", sha256 = "010464cc8227ed9d771e4c30d07814ed0da94eecb154c68ee266fb1b24c59edb", strip_prefix = "rules_python-2.5.0-rc2", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.0-rc2/rules_python-2.5.0-rc2.tar.gz", ) load("@rules_python//python:repositories.bzl", "py_repositories") py_repositories()
Paste this snippet into your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python_gazelle_plugin", sha256 = "010464cc8227ed9d771e4c30d07814ed0da94eecb154c68ee266fb1b24c59edb", strip_prefix = "rules_python-2.5.0-rc2/gazelle", url = "https://github.com/bazel-contrib/rules_python/releases/download/2.5.0-rc2/rules_python-2.5.0-rc2.tar.gz", ) # To compile the rules_python gazelle extension from source, # we must fetch some third-party go dependencies that it uses. load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps") _py_gazelle_deps()
Full Changelog: 2.5.0-rc0...2.5.0-rc2