Lines Matching +full:pkg +full:- +full:dir
7 # http://www.apache.org/licenses/LICENSE-2.0
21 # Re-export as public API
35 # Based on https://github.com/aspect-build/bazel-lib/tree/main/lib/private/copy_to_directory.bzl
36 # Avoiding a bazelbuild -> aspect-build dependency :(
38 dir = ctx.actions.declare_directory(ctx.attr.out)
41 "mkdir -p \"%s\"" % dir.path,
42 """cp "{}" "{}/$(cat "{}")" """.format(ctx.files.wheel[0].path, dir.path, name_file.path),
46 outputs = [dir],
53 DefaultInfo(files = depset([dir]), runfiles = ctx.runfiles([dir])),
60 See https://packaging.python.org/en/latest/tutorials/packaging-projects/#generating-distribution-ar…
75 Wheels are Python distribution format defined in https://www.python.org/dev/peps/pep-0427/.
80 Currently only pure-python wheels are supported.
88 # Package data. We're building "example_minimal_library-0.0.1-py3-none-any.whl"
109 # Package data. We're building "example_minimal_package-0.0.1-py3-none-any.whl"
129 twine = "@publish_deps_twine//:pkg",
137 % TWINE_USERNAME=__token__ TWINE_PASSWORD=pypi-*** \\
138 bazel run --stamp --embed_label=1.2.4 -- \\
139 //path/to:my_wheel.publish --repository testpypi
145 … publish_args: arguments passed to twine, e.g. ["--repository-url", "https://pypi.my.org/simple/"].
161 if not twine.endswith(":pkg"):
162 fail("twine label should look like @my_twine_repo//:pkg")
163 twine_main = twine.replace(":pkg", ":rules_python_wheel_entry_point_twine.py")
169 # buildifier: disable=native-py