Skip to content

Commit

Permalink
chore: update rules_python (#200)
Browse files Browse the repository at this point in the history
Bumps rules_python to the latest.
  • Loading branch information
Matt Mackay authored Oct 3, 2023
1 parent 6078fd0 commit b2953cc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 29 deletions.
2 changes: 1 addition & 1 deletion gazelle_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -946,4 +946,4 @@ manifest:
typing_extensions: typing_extensions
pip_repository:
name: pypi
integrity: c4090bb6190b056b1a8ca958acebef5c5484f7b08584ec7223c9a35806f16d4c
integrity: 946f371ae9366dd99139e5b647c377506aa93072c835d8df40377c0914c544dc
5 changes: 4 additions & 1 deletion py/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ bzl_library(
name = "py_pytest_main",
srcs = ["py_pytest_main.bzl"],
visibility = ["//py:__subpackages__"],
deps = ["@rules_python//python:defs"],
deps = [
"@rules_python//docs:bazel_repo_tools",
"@rules_python//python:defs_bzl",
],
)

bzl_library(
Expand Down
23 changes: 3 additions & 20 deletions py/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,7 @@ def rules_py_dependencies():

http_archive(
name = "rules_python",
patch_cmds = ["""\
cat >> python/BUILD.bazel <<EOF
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
bzl_library(
name = "defs",
srcs = [
":bzl",
"@bazel_tools//tools/python:srcs_version.bzl",
"@bazel_tools//tools/python:utils.bzl",
"@bazel_tools//tools/python:private/defs.bzl",
"@bazel_tools//tools/python:toolchain.bzl",
],
visibility = ["//visibility:public"],
)
EOF
"""],
sha256 = "36362b4d54fcb17342f9071e4c38d63ce83e2e57d7d5599ebdde4670b9760664",
strip_prefix = "rules_python-0.18.0",
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.18.0.tar.gz",
sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036",
strip_prefix = "rules_python-0.25.0",
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.25.0.tar.gz",
)
6 changes: 3 additions & 3 deletions py/tests/external-deps/expected_pathing
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Python: (pwd)/bazel-out/[exec]/bin/py/tests/external-deps/pathing.runfiles/pathing.venv/bin/python
version: 3.9.16 (main, REDACTED)
[Clang 15.0.7 ]
version info: sys.version_info(major=3, minor=9, micro=16, releaselevel='final', serial=0)
version: 3.9.17 (main, REDACTED)
[Clang 16.0.3 ]
version info: sys.version_info(major=3, minor=9, micro=17, releaselevel='final', serial=0)
cwd: (pwd)
site-packages folder: ['(pwd)/bazel-out/[exec]/bin/py/tests/external-deps/pathing.runfiles/pathing.venv/lib/python3.9/site-packages']

Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ asgiref==3.7.2 \
click==8.1.7 \
--hash=sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28 \
--hash=sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de
# via -r ./requirements.in
# via -r requirements.in
colorama==0.4.6 \
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
# via -r ./requirements.in
# via -r requirements.in
django==4.2.5 \
--hash=sha256:5e5c1c9548ffb7796b4a8a4782e9a2e5a3df3615259fc1bfd3ebc73b646146c1 \
--hash=sha256:b6b2b5cae821077f137dc4dade696a1c2aa292f892eca28fa8d7bfdf2608ddd4
# via -r ./requirements.in
# via -r requirements.in
exceptiongroup==1.1.3 \
--hash=sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9 \
--hash=sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3
Expand All @@ -39,7 +39,7 @@ pluggy==1.3.0 \
pytest==7.4.2 \
--hash=sha256:1d881c6124e08ff0a1bb75ba3ec0bfd8b5354a01c194ddd5a0a870a48d99b002 \
--hash=sha256:a766259cfab564a2ad52cb1aae1b881a75c3eb7e34ca3779697c23ed47c47069
# via -r ./requirements.in
# via -r requirements.in
sqlparse==0.4.4 \
--hash=sha256:5430a4fe2ac7d0f93e66f1efc6e1338a41884b7ddf2a350cedd20ccc4d9d28f3 \
--hash=sha256:d446183e84b8349fa3061f0fe7f06ca94ba65b426946ffebe6e3e8295332420c
Expand Down

0 comments on commit b2953cc

Please sign in to comment.