| load("//python/entry_points:py_console_script_binary.bzl", "py_console_script_binary") | |
| load("//python/private:distribution_filegroup.bzl", "distribution_filegroup") # buildifier: disable=bzl-visibility | |
| load("//python/uv:lock.bzl", "lock") | |
| package(default_visibility = ["//:__subpackages__"]) | |
| py_console_script_binary( | |
| name = "twine", | |
| # We transition to a specific python version in order to ensure that we | |
| # don't rely on the default version configured by the root module. | |
| pkg = "@rules_python_publish_deps//twine", | |
| python_version = "3.14", | |
| script = "twine", | |
| visibility = ["//visibility:public"], | |
| ) | |
| distribution_filegroup( | |
| name = "distribution", | |
| ) | |
| # Run bazel run //tools/publish:requirements.update to update uv.lock | |
| lock( | |
| name = "requirements", | |
| srcs = ["pyproject.toml"], | |
| out = "uv.lock", | |
| args = [ | |
| "--upgrade", # always upgrade | |
| ], | |
| visibility = ["//:__subpackages__"], | |
| ) |