From ed0e82ea031b0fa4e29f0ce741e15ee374c233a4 Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius Date: Thu, 24 Aug 2023 10:11:32 +0900 Subject: [PATCH] fix a docstring reference to entry_points.txt --- docs/py_console_script_binary.md | 2 +- python/private/py_console_script_binary.bzl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/py_console_script_binary.md b/docs/py_console_script_binary.md index 335de71f81..3d7b5e5bbd 100644 --- a/docs/py_console_script_binary.md +++ b/docs/py_console_script_binary.md @@ -79,7 +79,7 @@ Generate a py_binary for a console_script entry_point. | :------------- | :------------- | :------------- | | name | str, The name of the resulting target. | none | | pkg | target, the package for which to generate the script. | none | -| entry_points_txt | optional target, the entry_points.txt file to parse for available console_script values. It may be a single file, or a group of files, but must contain a file named entry_point.txt. If not specified, defaults to the dist_info target in the same package as the pkg Label. | None | +| entry_points_txt | optional target, the entry_points.txt file to parse for available console_script values. It may be a single file, or a group of files, but must contain a file named entry_points.txt. If not specified, defaults to the dist_info target in the same package as the pkg Label. | None | | script | str, The console script name that the py_binary is going to be generated for. Defaults to the normalized name attribute. | None | | binary_rule | callable, The rule/macro to use to instantiate the target. It's expected to behave like py_binary. Defaults to @rules_python//python:py_binary.bzl#py_binary. | <function py_binary> | | kwargs | Extra parameters forwarded to binary_rule. | none | diff --git a/python/private/py_console_script_binary.bzl b/python/private/py_console_script_binary.bzl index 9599f65bc1..b3a1f120c9 100644 --- a/python/private/py_console_script_binary.bzl +++ b/python/private/py_console_script_binary.bzl @@ -51,7 +51,7 @@ def py_console_script_binary( pkg: target, the package for which to generate the script. entry_points_txt: optional target, the entry_points.txt file to parse for available console_script values. It may be a single file, or a - group of files, but must contain a file named `entry_point.txt`. + group of files, but must contain a file named `entry_points.txt`. If not specified, defaults to the `dist_info` target in the same package as the `pkg` Label. script: str, The console script name that the py_binary is going to be