Skip to content

Commit

Permalink
Replace old branch of absl-py parameterization with a dev dependency
Browse files Browse the repository at this point in the history
#test-continuous

PiperOrigin-RevId: 706910739
  • Loading branch information
mkruskal-google authored and copybara-github committed Dec 17, 2024
1 parent 3502f38 commit aa4e50f
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 525 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test_upb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,13 @@ jobs:
python -m venv env
source env/bin/activate
echo "VIRTUAL ENV:" $VIRTUAL_ENV
- name: Install numpy
run: pip install numpy
- name: Download Requirements
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 #4.1.8
with:
name: requirements
path: requirements
- name: Install requirements
run: pip install -r requirements/requirements.txt
- name: Install Protobuf Wheels
run: pip install -vvv --no-index --find-links wheels protobuf protobuftests
- name: Run the unit tests
Expand Down
6 changes: 6 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ use_repo(maven, "protobuf_maven")
bazel_dep(name = "googletest", version = "1.14.0", dev_dependency = True, repo_name = "com_google_googletest")
bazel_dep(name = "rules_buf", version = "0.3.0", dev_dependency = True)
bazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True)
bazel_dep(
name = "abseil-py",
version = "2.1.0",
repo_name = "com_google_absl_py",
dev_dependency = True,
)

# rules_proto are needed for @com_google_protobuf_v25.0 used in //compatibility/... tests
bazel_dep(name = "rules_proto", version = "4.0.0", dev_dependency = True)
9 changes: 9 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,15 @@ load("@pip_deps//:requirements.bzl", "install_deps")

install_deps()

http_archive(
name = "com_google_absl_py",
sha256 = "8a3d0830e4eb4f66c4fa907c06edf6ce1c719ced811a12e26d9d3162f8471758",
strip_prefix = "abseil-py-2.1.0",
urls = [
"https://github.com/abseil/abseil-py/archive/refs/tags/v2.1.0.tar.gz",
],
)

http_archive(
name = "rules_fuzzing",
patch_args = ["-p1"],
Expand Down
1 change: 1 addition & 0 deletions python/dist/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ py_wheel(
"//:python_test_srcs",
"//python/pb_unit_tests:test_files",
"//src/google/protobuf:testdata",
"@com_google_absl_py//absl/testing:parameterized",
],
)

Expand Down
Loading

0 comments on commit aa4e50f

Please sign in to comment.