File tree 2 files changed +8
-5
lines changed
Filter options
2 files changed +8
-5
lines changed
Original file line number Diff line number Diff line change @@ -47,9 +47,11 @@ http_archive(
47
47
url = " https://github.com/bazelbuild/rules_python/releases/download/<RELEASE>/rules_python-<RELEASE>.tar.gz" ,
48
48
sha256 = " <SHA>" ,
49
49
)
50
- load(" @rules_python//python:repositories.bzl" , " py_repositories" , " rules_python_toolchains " )
50
+ load(" @rules_python//python:repositories.bzl" , " py_repositories" )
51
51
py_repositories()
52
- rules_python_toolchains()
52
+ # Only needed if using the packaging rules.
53
+ load(" @rules_python//python:pip.bzl" , " pip_repositories" )
54
+ pip_repositories()
53
55
```
54
56
55
57
Otherwise, you may import rules_python in a standalone way by copying the
@@ -63,10 +65,9 @@ git_repository(
63
65
# NOT VALID: Replace with actual Git commit SHA.
64
66
commit = " {HEAD} " ,
65
67
)
66
- # This call should always be present.
67
68
load(" @rules_python//python:repositories.bzl" , " py_repositories" )
68
69
py_repositories()
69
- # This one is only needed if you're using the packaging rules.
70
+ # Only needed if using the packaging rules.
70
71
load(" @rules_python//python:pip.bzl" , " pip_repositories" )
71
72
pip_repositories()
72
73
```
Original file line number Diff line number Diff line change @@ -21,12 +21,14 @@ pkg_tar(
21
21
strip_prefix = "." ,
22
22
)
23
23
24
+ # TODO(brandjon): print_rel_notes doesn't appear to handle our use case of
25
+ # emitting an optional additional deps method from a different file. For now we
26
+ # manually adjust our release notes.
24
27
print_rel_notes (
25
28
name = "relnotes" ,
26
29
outs = ["relnotes.txt" ],
27
30
deps_method = "py_repositories" ,
28
31
repo = "rules_python" ,
29
32
setup_file = "python:repositories.bzl" ,
30
- toolchains_method = "rules_python_toolchains" ,
31
33
version = version ,
32
34
)
You can’t perform that action at this time.
0 commit comments