Skip to content

Commit

Permalink
add gazelle repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattem committed Sep 13, 2023
1 parent 570fc93 commit 97f8abf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
8 changes: 4 additions & 4 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@pypi//:requirements.bzl", "all_whl_requirements")
load("@rules_python//gazelle:def.bzl", "GAZELLE_PYTHON_RUNTIME_DEPS")
load("@rules_python//gazelle/manifest:defs.bzl", "gazelle_python_manifest")
load("@rules_python//gazelle/modules_mapping:def.bzl", "modules_mapping")
load("@rules_python_gazelle_plugin//:def.bzl", "GAZELLE_PYTHON_RUNTIME_DEPS")
load("@rules_python_gazelle_plugin//manifest:defs.bzl", "gazelle_python_manifest")
load("@rules_python_gazelle_plugin//modules_mapping:def.bzl", "modules_mapping")
load("@rules_python//python:defs.bzl", "py_runtime", "py_runtime_pair")
load("@rules_python//python/pip_install:requirements.bzl", "compile_pip_requirements")

Expand All @@ -22,7 +22,7 @@ gazelle_binary(
name = "gazelle_bin",
languages = [
"@bazel_skylib//gazelle/bzl",
"@rules_python//gazelle",
"@rules_python_gazelle_plugin//python",
],
)

Expand Down
2 changes: 1 addition & 1 deletion gazelle_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -948,4 +948,4 @@ manifest:
tomli: tomli
pip_repository:
name: pypi
integrity: 96cfc547ea1fbcaa1475f4d19aa40e3116c802ef2416adc30f3f005e94846d54
integrity: 344699ff59f4dcbff73cf7e91bbc51efcfe6ab9bf1e3d98a152f7d156640ce33
7 changes: 7 additions & 0 deletions internal_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,10 @@ def rules_py_internal_deps():
strip_prefix = "rules_docker-8e70c6bcb584a15a8fd061ea489b933c0ff344ca",
urls = ["https://github.com/bazelbuild/rules_docker/archive/8e70c6bcb584a15a8fd061ea489b933c0ff344ca.zip"],
)

http_archive(
name = "rules_python_gazelle_plugin",
sha256 = "36362b4d54fcb17342f9071e4c38d63ce83e2e57d7d5599ebdde4670b9760664",
strip_prefix = "rules_python-0.18.0/gazelle",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.18.0/rules_python-0.18.0.tar.gz",
)
6 changes: 3 additions & 3 deletions py/tests/external-deps/expected_pathing
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Python: (pwd)/bazel-out/[exec]/bin/py/tests/external-deps/pathing.runfiles/pathing.venv/bin/python
version: 3.9.15 (main, REDACTED)
[Clang 14.0.3 ]
version info: sys.version_info(major=3, minor=9, micro=15, releaselevel='final', serial=0)
version: 3.9.16 (main, REDACTED)
[Clang 15.0.7 ]
version info: sys.version_info(major=3, minor=9, micro=16, releaselevel='final', serial=0)
cwd: (pwd)
site-packages folder: ['(pwd)/bazel-out/[exec]/bin/py/tests/external-deps/pathing.runfiles/pathing.venv/lib/python3.9/site-packages']

Expand Down

0 comments on commit 97f8abf

Please sign in to comment.