Skip to content

Commit 6bcee35

Browse files
authored
docs: fix requirement line for runfiles example (bazel-contrib#1052)
The PyPI name is "bazel-runfiles", which is what should be used in `requirement()`; "runfiles" is the import name.
1 parent d9ed9c9 commit 6bcee35

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

python/runfiles/README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@ bazel-runfiles library
33

44
This is a Bazel Runfiles lookup library for Bazel-built Python binaries and tests.
55

6+
Learn about runfiles: read `Runfiles guide <https://bazel.build/extending/rules#runfiles>`_
7+
or watch `Fabian's BazelCon talk <https://www.youtube.com/watch?v=5NbgUMH1OGo>`_.
8+
69
Typical Usage
710
-------------
811

9-
1. Add the 'runfiles' dependency along with other third-party dependencies, for example in your
12+
1. Add the 'bazel-runfiles' dependency along with other third-party dependencies, for example in your
1013
``requirements.txt`` file.
1114

1215
2. Depend on this runfiles library from your build rule, like you would other third-party libraries::
1316

1417
py_binary(
1518
name = "my_binary",
1619
...
17-
deps = [requirement("runfiles")],
20+
deps = [requirement("bazel-runfiles")],
1821
)
1922

2023
3. Import the runfiles library::

0 commit comments

Comments
 (0)