Skip to content

Commit 4de7173

Browse files
Pull please_pex from releases page (#43)
* Pull please_pex from releases page * New release * Link filegroup instead of go_binary because all sources get linked for go_binary Remove hash from pex_tool remote_file pending some work to internally verify hashes
1 parent 949658d commit 4de7173

File tree

5 files changed

+22
-11
lines changed

5 files changed

+22
-11
lines changed

.plzconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ DefaultValue = python3
2121

2222
[PluginConfig "pex_tool"]
2323
ConfigKey = PexTool
24-
DefaultValue = //tools/please_pex
24+
DefaultValue = //tools:please_pex
2525

2626
[PluginConfig "interpreter_options"]
2727
ConfigKey = InterpreterOptions

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 0.4.1
2+
-------------
3+
* Pull please_pex from release page as remote_file
4+
15
Version 0.4.0
26
-------------
37
* Add please_pex tool to releases page

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.0
1+
0.4.1

tools/BUILD

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
# Once pex tool is on the plugin releases page we can download the binary with a remote_file here. Same with the whele_resolver
2-
3-
# remote_file(
4-
# name = "please_pex",
5-
# url = "https://www.github.com/please-build/python_rules/...",
6-
# )
1+
remote_file(
2+
name = "please_pex",
3+
url = "https://github.com/please-build/python-rules/releases/download/v0.4.0/please_pex",
4+
extract = False,
5+
binary = True,
6+
visibility = ["PUBLIC"],
7+
out = "please_pex_tool",
8+
)
79

810
# remote_file(
911
# name = "wheel_resolver",

tools/please_pex/BUILD

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
subinclude("//build_defs:python")
22

3-
go_binary(
3+
filegroup(
44
name = "please_pex",
5+
srcs = [":pex_main"],
6+
visibility = ["PUBLIC"],
7+
labels = ["hlink:plz-out/package"],
8+
)
9+
10+
go_binary(
11+
name = "pex_main",
512
srcs = ["pex_main.go"],
613
deps = [
714
"//third_party/go:cli-init",
815
"//third_party/go:go-logging.v1",
916
"//tools/please_pex/pex",
1017
],
11-
visibility = ["PUBLIC"],
12-
labels = ["hlink:plz-out/package"],
1318
)
1419

1520
python_test(

0 commit comments

Comments
 (0)