Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions python/runfiles/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ bazel-runfiles library

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

Learn about runfiles: read `Runfiles guide <https://bazel.build/extending/rules#runfiles>`_
or watch `Fabian's BazelCon talk <https://www.youtube.com/watch?v=5NbgUMH1OGo>`_.

Typical Usage
-------------

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

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

py_binary(
name = "my_binary",
...
deps = [requirement("runfiles")],
deps = [requirement("bazel-runfiles")],
)

3. Import the runfiles library::
Expand Down