Python: Update bazel dependencies

This commit is contained in:
Taus
2025-06-30 14:57:42 +00:00
parent 76f15a890c
commit 5fb28b9f6d
9 changed files with 63 additions and 271 deletions

View File

@@ -89,8 +89,8 @@ use_repo(
"vendor_py__cc-1.2.14", "vendor_py__cc-1.2.14",
"vendor_py__clap-4.5.30", "vendor_py__clap-4.5.30",
"vendor_py__regex-1.11.1", "vendor_py__regex-1.11.1",
"vendor_py__tree-sitter-0.20.4", "vendor_py__tree-sitter-0.24.7",
"vendor_py__tree-sitter-graph-0.7.0", "vendor_py__tree-sitter-graph-0.12.0",
) )
# deps for ruby+rust # deps for ruby+rust

View File

@@ -80,26 +80,26 @@ alias(
) )
alias( alias(
name = "tree-sitter-0.20.4", name = "tree-sitter-0.24.7",
actual = "@vendor_py__tree-sitter-0.20.4//:tree_sitter", actual = "@vendor_py__tree-sitter-0.24.7//:tree_sitter",
tags = ["manual"], tags = ["manual"],
) )
alias( alias(
name = "tree-sitter", name = "tree-sitter",
actual = "@vendor_py__tree-sitter-0.20.4//:tree_sitter", actual = "@vendor_py__tree-sitter-0.24.7//:tree_sitter",
tags = ["manual"], tags = ["manual"],
) )
alias( alias(
name = "tree-sitter-graph-0.7.0", name = "tree-sitter-graph-0.12.0",
actual = "@vendor_py__tree-sitter-graph-0.7.0//:tree_sitter_graph", actual = "@vendor_py__tree-sitter-graph-0.12.0//:tree_sitter_graph",
tags = ["manual"], tags = ["manual"],
) )
alias( alias(
name = "tree-sitter-graph", name = "tree-sitter-graph",
actual = "@vendor_py__tree-sitter-graph-0.7.0//:tree_sitter_graph", actual = "@vendor_py__tree-sitter-graph-0.12.0//:tree_sitter_graph",
tags = ["manual"], tags = ["manual"],
) )

View File

@@ -1,99 +0,0 @@
###############################################################################
# @generated
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
# regenerate this file, run the following:
#
# bazel run @@//misc/bazel/3rdparty:vendor_py_deps
###############################################################################
load("@rules_rust//cargo:defs.bzl", "cargo_toml_env_vars")
load("@rules_rust//rust:defs.bzl", "rust_library")
package(default_visibility = ["//visibility:public"])
cargo_toml_env_vars(
name = "cargo_toml_env_vars",
src = "Cargo.toml",
)
rust_library(
name = "hashbrown",
srcs = glob(
include = ["**/*.rs"],
allow_empty = True,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
),
crate_features = [
"ahash",
"inline-more",
],
crate_root = "src/lib.rs",
edition = "2018",
rustc_env_files = [
":cargo_toml_env_vars",
],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=hashbrown",
"manual",
"noclippy",
"norustfmt",
],
target_compatible_with = select({
"@rules_rust//rust/platform:aarch64-apple-darwin": [],
"@rules_rust//rust/platform:aarch64-apple-ios": [],
"@rules_rust//rust/platform:aarch64-apple-ios-sim": [],
"@rules_rust//rust/platform:aarch64-linux-android": [],
"@rules_rust//rust/platform:aarch64-pc-windows-msvc": [],
"@rules_rust//rust/platform:aarch64-unknown-fuchsia": [],
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [],
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [],
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [],
"@rules_rust//rust/platform:aarch64-unknown-uefi": [],
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [],
"@rules_rust//rust/platform:armv7-linux-androideabi": [],
"@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [],
"@rules_rust//rust/platform:i686-apple-darwin": [],
"@rules_rust//rust/platform:i686-linux-android": [],
"@rules_rust//rust/platform:i686-pc-windows-msvc": [],
"@rules_rust//rust/platform:i686-unknown-freebsd": [],
"@rules_rust//rust/platform:i686-unknown-linux-gnu": [],
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [],
"@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [],
"@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [],
"@rules_rust//rust/platform:s390x-unknown-linux-gnu": [],
"@rules_rust//rust/platform:thumbv7em-none-eabi": [],
"@rules_rust//rust/platform:thumbv8m.main-none-eabi": [],
"@rules_rust//rust/platform:wasm32-unknown-unknown": [],
"@rules_rust//rust/platform:wasm32-wasip1": [],
"@rules_rust//rust/platform:x86_64-apple-darwin": [],
"@rules_rust//rust/platform:x86_64-apple-ios": [],
"@rules_rust//rust/platform:x86_64-linux-android": [],
"@rules_rust//rust/platform:x86_64-pc-windows-msvc": [],
"@rules_rust//rust/platform:x86_64-unknown-freebsd": [],
"@rules_rust//rust/platform:x86_64-unknown-fuchsia": [],
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [],
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [],
"@rules_rust//rust/platform:x86_64-unknown-none": [],
"@rules_rust//rust/platform:x86_64-unknown-uefi": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
version = "0.9.1",
deps = [
"@vendor_py__ahash-0.4.8//:ahash",
],
)

View File

@@ -17,7 +17,7 @@ cargo_toml_env_vars(
) )
rust_library( rust_library(
name = "ahash", name = "streaming_iterator",
srcs = glob( srcs = glob(
include = ["**/*.rs"], include = ["**/*.rs"],
allow_empty = True, allow_empty = True,
@@ -44,7 +44,7 @@ rust_library(
], ],
tags = [ tags = [
"cargo-bazel", "cargo-bazel",
"crate-name=ahash", "crate-name=streaming-iterator",
"manual", "manual",
"noclippy", "noclippy",
"norustfmt", "norustfmt",
@@ -88,5 +88,5 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-uefi": [], "@rules_rust//rust/platform:x86_64-unknown-uefi": [],
"//conditions:default": ["@platforms//:incompatible"], "//conditions:default": ["@platforms//:incompatible"],
}), }),
version = "0.4.8", version = "0.1.9",
) )

View File

@@ -1,101 +0,0 @@
###############################################################################
# @generated
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
# regenerate this file, run the following:
#
# bazel run @@//misc/bazel/3rdparty:vendor_py_deps
###############################################################################
load("@rules_rust//cargo:defs.bzl", "cargo_toml_env_vars")
load("@rules_rust//rust:defs.bzl", "rust_library")
package(default_visibility = ["//visibility:public"])
cargo_toml_env_vars(
name = "cargo_toml_env_vars",
src = "Cargo.toml",
)
rust_library(
name = "string_interner",
srcs = glob(
include = ["**/*.rs"],
allow_empty = True,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
),
crate_features = [
"backends",
"inline-more",
"std",
],
crate_root = "src/lib.rs",
edition = "2018",
rustc_env_files = [
":cargo_toml_env_vars",
],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=string-interner",
"manual",
"noclippy",
"norustfmt",
],
target_compatible_with = select({
"@rules_rust//rust/platform:aarch64-apple-darwin": [],
"@rules_rust//rust/platform:aarch64-apple-ios": [],
"@rules_rust//rust/platform:aarch64-apple-ios-sim": [],
"@rules_rust//rust/platform:aarch64-linux-android": [],
"@rules_rust//rust/platform:aarch64-pc-windows-msvc": [],
"@rules_rust//rust/platform:aarch64-unknown-fuchsia": [],
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [],
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [],
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [],
"@rules_rust//rust/platform:aarch64-unknown-uefi": [],
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [],
"@rules_rust//rust/platform:armv7-linux-androideabi": [],
"@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [],
"@rules_rust//rust/platform:i686-apple-darwin": [],
"@rules_rust//rust/platform:i686-linux-android": [],
"@rules_rust//rust/platform:i686-pc-windows-msvc": [],
"@rules_rust//rust/platform:i686-unknown-freebsd": [],
"@rules_rust//rust/platform:i686-unknown-linux-gnu": [],
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [],
"@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [],
"@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [],
"@rules_rust//rust/platform:s390x-unknown-linux-gnu": [],
"@rules_rust//rust/platform:thumbv7em-none-eabi": [],
"@rules_rust//rust/platform:thumbv8m.main-none-eabi": [],
"@rules_rust//rust/platform:wasm32-unknown-unknown": [],
"@rules_rust//rust/platform:wasm32-wasip1": [],
"@rules_rust//rust/platform:x86_64-apple-darwin": [],
"@rules_rust//rust/platform:x86_64-apple-ios": [],
"@rules_rust//rust/platform:x86_64-linux-android": [],
"@rules_rust//rust/platform:x86_64-pc-windows-msvc": [],
"@rules_rust//rust/platform:x86_64-unknown-freebsd": [],
"@rules_rust//rust/platform:x86_64-unknown-fuchsia": [],
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [],
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [],
"@rules_rust//rust/platform:x86_64-unknown-none": [],
"@rules_rust//rust/platform:x86_64-unknown-uefi": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
version = "0.12.2",
deps = [
"@vendor_py__cfg-if-1.0.0//:cfg_if",
"@vendor_py__hashbrown-0.9.1//:hashbrown",
],
)

View File

@@ -38,6 +38,10 @@ rust_library(
"WORKSPACE.bazel", "WORKSPACE.bazel",
], ],
), ),
crate_features = [
"default",
"std",
],
crate_root = "binding_rust/lib.rs", crate_root = "binding_rust/lib.rs",
edition = "2018", edition = "2018",
rustc_env_files = [ rustc_env_files = [
@@ -92,10 +96,13 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-uefi": [], "@rules_rust//rust/platform:x86_64-unknown-uefi": [],
"//conditions:default": ["@platforms//:incompatible"], "//conditions:default": ["@platforms//:incompatible"],
}), }),
version = "0.20.4", version = "0.24.7",
deps = [ deps = [
"@vendor_py__regex-1.11.1//:regex", "@vendor_py__regex-1.11.1//:regex",
"@vendor_py__tree-sitter-0.20.4//:build_script_build", "@vendor_py__regex-syntax-0.8.5//:regex_syntax",
"@vendor_py__streaming-iterator-0.1.9//:streaming_iterator",
"@vendor_py__tree-sitter-0.24.7//:build_script_build",
"@vendor_py__tree-sitter-language-0.1.5//:tree_sitter_language",
], ],
) )
@@ -118,6 +125,10 @@ cargo_build_script(
"WORKSPACE.bazel", "WORKSPACE.bazel",
], ],
), ),
crate_features = [
"default",
"std",
],
crate_name = "build_script_build", crate_name = "build_script_build",
crate_root = "binding_rust/build.rs", crate_root = "binding_rust/build.rs",
data = glob( data = glob(
@@ -132,7 +143,8 @@ cargo_build_script(
"WORKSPACE.bazel", "WORKSPACE.bazel",
], ],
), ),
edition = "2018", edition = "2021",
links = "tree-sitter",
pkg_name = "tree-sitter", pkg_name = "tree-sitter",
rustc_env_files = [ rustc_env_files = [
":cargo_toml_env_vars", ":cargo_toml_env_vars",
@@ -147,7 +159,7 @@ cargo_build_script(
"noclippy", "noclippy",
"norustfmt", "norustfmt",
], ],
version = "0.20.4", version = "0.24.7",
visibility = ["//visibility:private"], visibility = ["//visibility:private"],
deps = [ deps = [
"@vendor_py__cc-1.2.14//:cc", "@vendor_py__cc-1.2.14//:cc",

View File

@@ -88,15 +88,15 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-uefi": [], "@rules_rust//rust/platform:x86_64-unknown-uefi": [],
"//conditions:default": ["@platforms//:incompatible"], "//conditions:default": ["@platforms//:incompatible"],
}), }),
version = "0.7.0", version = "0.12.0",
deps = [ deps = [
"@vendor_py__log-0.4.25//:log", "@vendor_py__log-0.4.25//:log",
"@vendor_py__regex-1.11.1//:regex", "@vendor_py__regex-1.11.1//:regex",
"@vendor_py__serde-1.0.217//:serde", "@vendor_py__serde-1.0.217//:serde",
"@vendor_py__serde_json-1.0.138//:serde_json", "@vendor_py__serde_json-1.0.138//:serde_json",
"@vendor_py__smallvec-1.14.0//:smallvec", "@vendor_py__smallvec-1.14.0//:smallvec",
"@vendor_py__string-interner-0.12.2//:string_interner", "@vendor_py__streaming-iterator-0.1.9//:streaming_iterator",
"@vendor_py__thiserror-1.0.69//:thiserror", "@vendor_py__thiserror-1.0.69//:thiserror",
"@vendor_py__tree-sitter-0.20.4//:tree_sitter", "@vendor_py__tree-sitter-0.24.7//:tree_sitter",
], ],
) )

View File

@@ -17,7 +17,7 @@ cargo_toml_env_vars(
) )
rust_library( rust_library(
name = "cfg_if", name = "tree_sitter_language",
srcs = glob( srcs = glob(
include = ["**/*.rs"], include = ["**/*.rs"],
allow_empty = True, allow_empty = True,
@@ -44,7 +44,7 @@ rust_library(
], ],
tags = [ tags = [
"cargo-bazel", "cargo-bazel",
"crate-name=cfg-if", "crate-name=tree-sitter-language",
"manual", "manual",
"noclippy", "noclippy",
"norustfmt", "norustfmt",
@@ -88,5 +88,5 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-uefi": [], "@rules_rust//rust/platform:x86_64-unknown-uefi": [],
"//conditions:default": ["@platforms//:incompatible"], "//conditions:default": ["@platforms//:incompatible"],
}), }),
version = "1.0.0", version = "0.1.5",
) )

80
misc/bazel/3rdparty/py_deps/defs.bzl generated vendored
View File

@@ -298,13 +298,13 @@ _NORMAL_DEPENDENCIES = {
"anyhow": Label("@vendor_py__anyhow-1.0.95//:anyhow"), "anyhow": Label("@vendor_py__anyhow-1.0.95//:anyhow"),
"clap": Label("@vendor_py__clap-4.5.30//:clap"), "clap": Label("@vendor_py__clap-4.5.30//:clap"),
"regex": Label("@vendor_py__regex-1.11.1//:regex"), "regex": Label("@vendor_py__regex-1.11.1//:regex"),
"tree-sitter": Label("@vendor_py__tree-sitter-0.20.4//:tree_sitter"), "tree-sitter": Label("@vendor_py__tree-sitter-0.24.7//:tree_sitter"),
"tree-sitter-graph": Label("@vendor_py__tree-sitter-graph-0.7.0//:tree_sitter_graph"), "tree-sitter-graph": Label("@vendor_py__tree-sitter-graph-0.12.0//:tree_sitter_graph"),
}, },
}, },
"python/extractor/tsg-python/tsp": { "python/extractor/tsg-python/tsp": {
_COMMON_CONDITION: { _COMMON_CONDITION: {
"tree-sitter": Label("@vendor_py__tree-sitter-0.20.4//:tree_sitter"), "tree-sitter": Label("@vendor_py__tree-sitter-0.24.7//:tree_sitter"),
}, },
}, },
} }
@@ -452,16 +452,6 @@ def crate_repositories():
Returns: Returns:
A list of repos visible to the module through the module extension. A list of repos visible to the module through the module extension.
""" """
maybe(
http_archive,
name = "vendor_py__ahash-0.4.8",
sha256 = "0453232ace82dee0dd0b4c87a59bd90f7b53b314f3e0f61fe2ee7c8a16482289",
type = "tar.gz",
urls = ["https://static.crates.io/crates/ahash/0.4.8/download"],
strip_prefix = "ahash-0.4.8",
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.ahash-0.4.8.bazel"),
)
maybe( maybe(
http_archive, http_archive,
name = "vendor_py__aho-corasick-1.1.3", name = "vendor_py__aho-corasick-1.1.3",
@@ -542,16 +532,6 @@ def crate_repositories():
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.cc-1.2.14.bazel"), build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.cc-1.2.14.bazel"),
) )
maybe(
http_archive,
name = "vendor_py__cfg-if-1.0.0",
sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd",
type = "tar.gz",
urls = ["https://static.crates.io/crates/cfg-if/1.0.0/download"],
strip_prefix = "cfg-if-1.0.0",
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.cfg-if-1.0.0.bazel"),
)
maybe( maybe(
http_archive, http_archive,
name = "vendor_py__clap-4.5.30", name = "vendor_py__clap-4.5.30",
@@ -592,16 +572,6 @@ def crate_repositories():
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.colorchoice-1.0.3.bazel"), build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.colorchoice-1.0.3.bazel"),
) )
maybe(
http_archive,
name = "vendor_py__hashbrown-0.9.1",
sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04",
type = "tar.gz",
urls = ["https://static.crates.io/crates/hashbrown/0.9.1/download"],
strip_prefix = "hashbrown-0.9.1",
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.hashbrown-0.9.1.bazel"),
)
maybe( maybe(
http_archive, http_archive,
name = "vendor_py__is_terminal_polyfill-1.70.1", name = "vendor_py__is_terminal_polyfill-1.70.1",
@@ -764,12 +734,12 @@ def crate_repositories():
maybe( maybe(
http_archive, http_archive,
name = "vendor_py__string-interner-0.12.2", name = "vendor_py__streaming-iterator-0.1.9",
sha256 = "383196d1876517ee6f9f0864d1fc1070331b803335d3c6daaa04bbcccd823c08", sha256 = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520",
type = "tar.gz", type = "tar.gz",
urls = ["https://static.crates.io/crates/string-interner/0.12.2/download"], urls = ["https://static.crates.io/crates/streaming-iterator/0.1.9/download"],
strip_prefix = "string-interner-0.12.2", strip_prefix = "streaming-iterator-0.1.9",
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.string-interner-0.12.2.bazel"), build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.streaming-iterator-0.1.9.bazel"),
) )
maybe( maybe(
@@ -814,22 +784,32 @@ def crate_repositories():
maybe( maybe(
http_archive, http_archive,
name = "vendor_py__tree-sitter-0.20.4", name = "vendor_py__tree-sitter-0.24.7",
sha256 = "4e34327f8eac545e3f037382471b2b19367725a242bba7bc45edb9efb49fe39a", sha256 = "a5387dffa7ffc7d2dae12b50c6f7aab8ff79d6210147c6613561fc3d474c6f75",
type = "tar.gz", type = "tar.gz",
urls = ["https://static.crates.io/crates/tree-sitter/0.20.4/download"], urls = ["https://static.crates.io/crates/tree-sitter/0.24.7/download"],
strip_prefix = "tree-sitter-0.20.4", strip_prefix = "tree-sitter-0.24.7",
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.tree-sitter-0.20.4.bazel"), build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.tree-sitter-0.24.7.bazel"),
) )
maybe( maybe(
http_archive, http_archive,
name = "vendor_py__tree-sitter-graph-0.7.0", name = "vendor_py__tree-sitter-graph-0.12.0",
sha256 = "639d21e886f581d293de5f5081f09af003c54607ff3fa85efa159b243ba1f97a", sha256 = "63f86eb73c7d891c4b9b6fe4d4e63dd94c506e4788af7c2296afdcfbeea626cc",
type = "tar.gz", type = "tar.gz",
urls = ["https://static.crates.io/crates/tree-sitter-graph/0.7.0/download"], urls = ["https://static.crates.io/crates/tree-sitter-graph/0.12.0/download"],
strip_prefix = "tree-sitter-graph-0.7.0", strip_prefix = "tree-sitter-graph-0.12.0",
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.tree-sitter-graph-0.7.0.bazel"), build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.tree-sitter-graph-0.12.0.bazel"),
)
maybe(
http_archive,
name = "vendor_py__tree-sitter-language-0.1.5",
sha256 = "c4013970217383f67b18aef68f6fb2e8d409bc5755227092d32efb0422ba24b8",
type = "tar.gz",
urls = ["https://static.crates.io/crates/tree-sitter-language/0.1.5/download"],
strip_prefix = "tree-sitter-language-0.1.5",
build_file = Label("//misc/bazel/3rdparty/py_deps:BUILD.tree-sitter-language-0.1.5.bazel"),
) )
maybe( maybe(
@@ -957,6 +937,6 @@ def crate_repositories():
struct(repo = "vendor_py__cc-1.2.14", is_dev_dep = False), struct(repo = "vendor_py__cc-1.2.14", is_dev_dep = False),
struct(repo = "vendor_py__clap-4.5.30", is_dev_dep = False), struct(repo = "vendor_py__clap-4.5.30", is_dev_dep = False),
struct(repo = "vendor_py__regex-1.11.1", is_dev_dep = False), struct(repo = "vendor_py__regex-1.11.1", is_dev_dep = False),
struct(repo = "vendor_py__tree-sitter-0.20.4", is_dev_dep = False), struct(repo = "vendor_py__tree-sitter-0.24.7", is_dev_dep = False),
struct(repo = "vendor_py__tree-sitter-graph-0.7.0", is_dev_dep = False), struct(repo = "vendor_py__tree-sitter-graph-0.12.0", is_dev_dep = False),
] ]