From 6c8ae765564b27f202b12700e4cc91ed494bd82c Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Wed, 8 Feb 2023 10:33:37 -0600 Subject: [PATCH] fix(release): wrong replacement for $(location) during code review (#1051) --- python/runfiles/BUILD.bazel | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/runfiles/BUILD.bazel b/python/runfiles/BUILD.bazel index 835c9b4ae..19d7804c0 100644 --- a/python/runfiles/BUILD.bazel +++ b/python/runfiles/BUILD.bazel @@ -52,12 +52,16 @@ py_wheel( ) # TODO(alexeagle): carry forward #1015 to make this part of the py_wheel macro +# Typical command-line to run this: +# TWINE_USERNAME=__token__ TWINE_PASSWORD=pypi-*** \ +# bazel run --stamp --embed_label=1.2.4 -- \ +# //python/runfiles:wheel.publish --repository testpypi py_binary( name = "wheel.publish", srcs = ["@publish_deps_twine//:rules_python_wheel_entry_point_twine.py"], args = [ "upload", - "$(execpath :wheel.dist)/*", + "$(rootpath :wheel.dist)/*", ], data = [":wheel.dist"], imports = ["."],