|
12 | 12 | # See the License for the specific language governing permissions and
|
13 | 13 | # limitations under the License.
|
14 | 14 |
|
15 |
| -load("//python:defs.bzl", "py_library") |
| 15 | +load("//python:defs.bzl", "py_binary", "py_library") |
16 | 16 | load("//python:packaging.bzl", "py_wheel")
|
17 | 17 |
|
18 | 18 | filegroup(
|
@@ -40,12 +40,27 @@ py_wheel(
|
40 | 40 | "Development Status :: 5 - Production/Stable",
|
41 | 41 | "License :: OSI Approved :: Apache Software License",
|
42 | 42 | ],
|
43 |
| - description_file = "README.md", |
| 43 | + description_file = "README.rst", |
44 | 44 | dist_folder = "dist",
|
45 | 45 | distribution = "bazel_runfiles",
|
46 | 46 | homepage = "https://github.com/bazelbuild/rules_python",
|
47 | 47 | strip_path_prefixes = ["python"],
|
| 48 | + # this can be replaced by building with --stamp --embed_label=1.2.3 |
48 | 49 | version = "{BUILD_EMBED_LABEL}",
|
49 | 50 | visibility = ["//visibility:public"],
|
50 | 51 | deps = [":runfiles"],
|
51 | 52 | )
|
| 53 | + |
| 54 | +# TODO(alexeagle): carry forward #1015 to make this part of the py_wheel macro |
| 55 | +py_binary( |
| 56 | + name = "wheel.publish", |
| 57 | + srcs = ["@publish_deps_twine//:rules_python_wheel_entry_point_twine.py"], |
| 58 | + args = [ |
| 59 | + "upload", |
| 60 | + "$(execpath :wheel.dist)/*", |
| 61 | + ], |
| 62 | + data = [":wheel.dist"], |
| 63 | + imports = ["."], |
| 64 | + main = "@publish_deps_twine//:rules_python_wheel_entry_point_twine.py", |
| 65 | + deps = ["@publish_deps_twine//:pkg"], |
| 66 | +) |
0 commit comments