Skip to content

Commit

Permalink
Use Python deps from rules_python
Browse files Browse the repository at this point in the history
  • Loading branch information
mering committed Sep 9, 2024
1 parent 32a0218 commit c574f50
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 461 deletions.
5 changes: 4 additions & 1 deletion bazel/cython_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def pyx_library(name, deps = [], py_deps = [], srcs = [], **kwargs):
native.cc_binary(
name = shared_object_name,
srcs = [stem + ".cpp"],
deps = deps + ["@local_config_python//:python_headers"],
deps = deps + [
"@rules_python//python/cc:current_py_cc_headers",
"@rules_python//python/cc:current_py_cc_libs",
],
defines = defines,
linkshared = 1,
)
Expand Down
14 changes: 3 additions & 11 deletions bazel/grpc_python_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,18 @@
"""Load dependencies needed to compile and test the grpc python library as a 3rd-party consumer."""

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@com_github_grpc_grpc//third_party/py:python_configure.bzl", "python_configure")

# buildifier: disable=unnamed-macro
def grpc_python_deps():
"""Loads dependencies for gRPC Python."""
if "rules_python" not in native.existing_rules():
http_archive(
name = "rules_python",
sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b",
strip_prefix = "rules_python-0.26.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar.gz",
sha256 = "3b8b4cdc991bc9def8833d118e4c850f1b7498b3d65d5698eea92c3528b8cf2c",
strip_prefix = "rules_python-0.30.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.30.0/rules_python-0.30.0.tar.gz",
)

python_configure(name = "local_config_python")

native.bind(
name = "python_headers",
actual = "@local_config_python//:python_headers",
)

if "cython" not in native.existing_rules():
http_archive(
name = "cython",
Expand Down
2 changes: 1 addition & 1 deletion third_party/boringssl-with-bazel
Submodule boringssl-with-bazel updated 95 files
+10 −2 src/CMakeLists.txt
+2 −6 src/PORTING.md
+3 −1 src/README.md
+3 −5 src/crypto/bytestring/cbs.c
+7 −0 src/crypto/cipher_extra/e_chacha20poly1305.c
+4 −1 src/crypto/cpu_arm_linux.c
+0 −15 src/crypto/cpu_intel.c
+7 −61 src/crypto/crypto.c
+12 −7 src/crypto/crypto_test.cc
+14 −2 src/crypto/curve25519/x25519_test.cc
+43 −1 src/crypto/dilithium/dilithium.c
+102 −120 src/crypto/dilithium/dilithium_test.cc
+21 −0 src/crypto/fipsmodule/aes/aes.c
+14 −0 src/crypto/fipsmodule/aes/aes_test.cc
+166 −156 src/crypto/fipsmodule/aes/asm/aesni-x86.pl
+213 −191 src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl
+31 −7 src/crypto/fipsmodule/aes/internal.h
+0 −2 src/crypto/fipsmodule/bcm.c
+5 −0 src/crypto/fipsmodule/ec/p256-nistz.c
+0 −6 src/crypto/fipsmodule/modes/gcm_test.cc
+6 −4 src/crypto/fipsmodule/self_check/fips.c
+22 −10 src/crypto/internal.h
+1 −0 src/crypto/kyber/kyber.c
+1 −0 src/crypto/kyber/kyber_test.cc
+3 −3 src/crypto/perlasm/x86asm.pl
+0 −2 src/crypto/test/gtest_main.h
+0 −14 src/crypto/thread_test.cc
+215 −190 src/gen/bcm/aesni-x86-apple.S
+222 −193 src/gen/bcm/aesni-x86-linux.S
+212 −186 src/gen/bcm/aesni-x86-win.asm
+208 −183 src/gen/bcm/aesni-x86_64-apple.S
+212 −188 src/gen/bcm/aesni-x86_64-linux.S
+221 −197 src/gen/bcm/aesni-x86_64-win.asm
+6 −6 src/gen/bcm/vpaes-x86-apple.S
+6 −6 src/gen/bcm/vpaes-x86-linux.S
+6 −6 src/gen/bcm/vpaes-x86-win.asm
+2,580 −2,580 src/gen/sources.bzl
+4 −4 src/go.mod
+8 −8 src/go.sum
+6 −11 src/include/openssl/crypto.h
+6 −0 src/include/openssl/experimental/dilithium.h
+10 −0 src/include/openssl/experimental/kyber.h
+26 −12 src/include/openssl/span.h
+83 −33 src/include/openssl/ssl.h
+2 −5 src/pki/cert_error_params.cc
+1 −3 src/pki/input.cc
+2 −4 src/pki/input.h
+1 −2 src/pki/parse_name.cc
+1 −2 src/pki/verify.cc
+2 −4 src/rust/bssl-sys/src/lib.rs
+6 −8 src/ssl/d1_both.cc
+4 −4 src/ssl/d1_pkt.cc
+14 −13 src/ssl/dtls_record.cc
+22 −16 src/ssl/extensions.cc
+2 −1 src/ssl/handshake_client.cc
+2 −1 src/ssl/handshake_server.cc
+15 −15 src/ssl/internal.h
+1 −0 src/ssl/ssl_key_share.cc
+38 −27 src/ssl/ssl_lib.cc
+59 −20 src/ssl/ssl_privkey.cc
+42 −5 src/ssl/ssl_test.cc
+1 −1 src/ssl/ssl_versions.cc
+1 −3 src/ssl/test/bssl_shim.cc
+11 −0 src/ssl/test/runner/common.go
+33 −25 src/ssl/test/runner/conn.go
+11 −7 src/ssl/test/runner/handshake_client.go
+5 −9 src/ssl/test/runner/handshake_server.go
+5 −5 src/ssl/test/runner/key_agreement.go
+202 −73 src/ssl/test/runner/runner.go
+14 −9 src/ssl/test/runner/sign.go
+14 −6 src/ssl/test/test_config.cc
+3 −0 src/ssl/test/test_config.h
+2 −1 src/ssl/tls13_both.cc
+1 −1 src/ssl/tls_record.cc
+1 −0 src/third_party/fiat/README.chromium
+2 −3 src/tool/speed.cc
+0 −2 src/tool/tool.cc
+11 −2 src/util/all_tests.go
+4 −4 src/util/bot/DEPS
+1 −1 src/util/bot/UPDATING
+1 −1 src/util/bot/sde-linux64.tar.xz.sha1
+1 −1 src/util/bot/sde-win32.tar.xz.sha1
+2 −2 src/util/bot/update_clang.py
+5 −7 src/util/fipstools/CMakeLists.txt
+1 −0 src/util/fipstools/acvp/acvptool/subprocess/subprocess.go
+9 −0 src/util/fipstools/delocate/delocate.go
+3 −2 src/util/fipstools/delocate/delocate.peg
+2,421 −2,283 src/util/fipstools/delocate/delocate.peg.go
+1 −0 src/util/fipstools/delocate/testdata/x86_64-Basic/in.s
+1 −0 src/util/fipstools/delocate/testdata/x86_64-Basic/out.s
+7 −0 src/util/fipstools/delocate/testdata/x86_64-LabelRewrite/in1.s
+11 −0 src/util/fipstools/delocate/testdata/x86_64-LabelRewrite/out.s
+33 −18 src/util/fipstools/test_fips.c
+27 −0 src/util/gotools/gotools.go
+6 −3 src/util/pregenerate/build.go
2 changes: 1 addition & 1 deletion third_party/envoy-api
Submodule envoy-api updated 108 files
2 changes: 1 addition & 1 deletion third_party/googleapis
Submodule googleapis updated 8629 files
2 changes: 1 addition & 1 deletion third_party/protobuf
Submodule protobuf updated 1029 files
5 changes: 0 additions & 5 deletions third_party/py/BUILD

This file was deleted.

30 changes: 0 additions & 30 deletions third_party/py/BUILD.tpl

This file was deleted.

Loading

0 comments on commit c574f50

Please sign in to comment.