From 28e48e7cfd9c931b7bdb8ad13ee545bb191bbb5c Mon Sep 17 00:00:00 2001 From: weixiao-huang Date: Wed, 9 Mar 2022 10:56:37 +0800 Subject: [PATCH] feat: update docs --- docs/packaging.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/packaging.md b/docs/packaging.md index 0271750710..a71cda2f79 100755 --- a/docs/packaging.md +++ b/docs/packaging.md @@ -31,7 +31,7 @@ This rule is intended to be used as data dependency to py_wheel rule
 py_wheel(name, abi, author, author_email, classifiers, console_scripts, deps, description_file,
          distribution, entry_points, extra_requires, homepage, license, platform, python_requires,
-         python_tag, requires, stamp, strip_path_prefixes, version)
+         python_tag, requires, requires_file, stamp, strip_path_prefixes, version)
 
@@ -101,6 +101,7 @@ py_wheel( | python_requires | A string specifying what other distributions need to be installed when this one is. See the section on [Declaring required dependency](https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html#declaring-dependencies) for details and examples of the format of this argument. | String | optional | "" | | python_tag | Supported Python version(s), eg py3, cp35.cp36, etc | String | optional | "py3" | | requires | List of requirements for this package | List of strings | optional | [] | +| requires_file | requirements file for List of requirements for this package | Label | optional | None | | stamp | Whether to encode build information into the wheel. Possible values:

- stamp = 1: Always stamp the build information into the wheel, even in [--nostamp](https://docs.bazel.build/versions/main/user-manual.html#flag--stamp) builds. This setting should be avoided, since it potentially kills remote caching for the target and any downstream actions that depend on it.

- stamp = 0: Always replace build information by constant values. This gives good build result caching.

- stamp = -1: Embedding of build information is controlled by the [--[no]stamp](https://docs.bazel.build/versions/main/user-manual.html#flag--stamp) flag.

Stamped targets are not rebuilt unless their dependencies change. | Integer | optional | -1 | | strip_path_prefixes | path prefixes to strip from files added to the generated package | List of strings | optional | [] | | version | Version number of the package. Note that this attribute supports stamp format strings. Eg 1.2.3-{BUILD_TIMESTAMP} | String | required | |