-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply nanobind_bazel patch via git instead (#53)
* Apply nanobind_bazel patch via git instead This is way less complicated and not as error-prone. Update `setup-uv` to v5 everywhere to incorporate caching into CI. The example test could probably also be simplified, since venvs are automatically created now, but this will happen in another PR.
- Loading branch information
1 parent
62fa253
commit 3fdbc38
Showing
4 changed files
with
33 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/MODULE.bazel b/MODULE.bazel | ||
index 7723d4c..a15a36b 100644 | ||
--- a/MODULE.bazel | ||
+++ b/MODULE.bazel | ||
@@ -1,6 +1,10 @@ | ||
module(name = "nanobind_example", version = "0.1.0") | ||
|
||
-bazel_dep(name = "nanobind_bazel", version = "2.4.0") | ||
+bazel_dep(name = "nanobind_bazel", version = "") | ||
+local_path_override( | ||
+ module_name = "nanobind_bazel", | ||
+ path = "../", | ||
+) | ||
bazel_dep(name = "rules_python", version = "1.0.0") | ||
|
||
python = use_extension("@rules_python//python/extensions:python.bzl", "python") | ||
diff --git a/src/BUILD b/src/BUILD | ||
index 5562dca..95e210e 100644 | ||
--- a/src/BUILD | ||
+++ b/src/BUILD | ||
@@ -20,6 +20,6 @@ nanobind_stubgen( | ||
name = "nanobind_example_ext_stubgen", | ||
module = ":nanobind_example_ext", | ||
marker_file = "src/py.typed", | ||
- output_directory = "src", | ||
- recursive = True, | ||
+# output_directory = "src", | ||
+# recursive = True, | ||
) |
This file was deleted.
Oops, something went wrong.