Skip to content

Commit

Permalink
Ensure that some deps for ipynb are in the venv
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemnmez committed Sep 29, 2024
1 parent 3fb2167 commit 5b4f93d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 69 deletions.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ py_venv(
"//py/ci/postUpgrade:postUpgrade_bin",
"//py/hello_world:hello_world_bin",
"//py/ibazel:ibazel_bin",
"//py/ipynb",
"//py/ipynb:ipynb_bin",
"//py/sectxt:sectxt_bin",
],
Expand Down
12 changes: 11 additions & 1 deletion py/ipynb/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//bzl:rules.bzl", "bazel_lint")
load("//py:rules.bzl", "py_binary")
load("//py:rules.bzl", "py_binary", "py_library")

py_binary(
name = "ipynb_bin",
Expand All @@ -13,3 +13,13 @@ bazel_lint(
name = "bazel_lint",
srcs = ["BUILD.bazel"],
)

py_library(
name = "ipynb",
srcs = ["lib.py"],
visibility = ["//:__subpackages__"],
deps = [
"@pip//ipykernel",
"@pip//pip",
],
)
5 changes: 5 additions & 0 deletions py/ipynb/lib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"Ensures that the ipython modules are in the venv before I get gazelle working"
import ipykernel
import pip

print(ipykernel, pip)
Loading

0 comments on commit 5b4f93d

Please sign in to comment.