Skip to content

Commit cd8bb4c

Browse files
authored
Merge pull request #5907: Pants: add python_distribution BUILD metadata for runners
2 parents 05ca9c5 + 69c32d7 commit cd8bb4c

File tree

12 files changed

+159
-1
lines changed

12 files changed

+159
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Added
1616
to pants' use of PEX lockfiles. This is not a user-facing addition.
1717
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
1818
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
19-
#5890 #5898 #5901 #5906 #5899
19+
#5890 #5898 #5901 #5906 #5899 #5907
2020
Contributed by @cognifloyd
2121

2222
* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
st2_runner_python_distribution(
2+
runner_name="action_chain",
3+
description=(
4+
"Action-Chain workflow action runner "
5+
"for the StackStorm event-driven automation platform"
6+
),
7+
entry_points={
8+
stevedore_namespace("st2common.runners.runner"): {
9+
"action-chain": "action_chain_runner.action_chain_runner",
10+
},
11+
},
12+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
st2_runner_python_distribution(
2+
runner_name="announcement",
3+
description=(
4+
"Announcement action runner "
5+
"for the StackStorm event-driven automation platform"
6+
),
7+
entry_points={
8+
stevedore_namespace("st2common.runners.runner"): {
9+
"announcement": "announcement_runner.announcement_runner",
10+
},
11+
},
12+
)

contrib/runners/http_runner/BUILD

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
st2_runner_python_distribution(
2+
runner_name="http",
3+
description=(
4+
"HTTP(s) action runner for the StackStorm event-driven automation platform"
5+
),
6+
entry_points={
7+
stevedore_namespace("st2common.runners.runner"): {
8+
"http-request": "http_runner.http_runner",
9+
},
10+
},
11+
)

contrib/runners/inquirer_runner/BUILD

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
st2_runner_python_distribution(
2+
runner_name="inquirer",
3+
description=(
4+
"Inquirer action runner for the StackStorm event-driven automation platform"
5+
),
6+
entry_points={
7+
stevedore_namespace("st2common.runners.runner"): {
8+
"inquirer": "inquirer_runner.inquirer_runner",
9+
},
10+
},
11+
)

contrib/runners/local_runner/BUILD

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
st2_runner_python_distribution(
2+
runner_name="local",
3+
description=(
4+
"Local Shell Command and Script action runner "
5+
"for the StackStorm event-driven automation platform"
6+
),
7+
entry_points={
8+
stevedore_namespace("st2common.runners.runner"): {
9+
"local-shell-cmd": "local_runner.local_shell_command_runner",
10+
"local-shell-script": "local_runner.local_shell_script_runner",
11+
},
12+
},
13+
)

contrib/runners/noop_runner/BUILD

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
st2_runner_python_distribution(
2+
runner_name="noop",
3+
description=(
4+
"No-Op action runner for the StackStorm event-driven automation platform"
5+
),
6+
entry_points={
7+
stevedore_namespace("st2common.runners.runner"): {
8+
"noop": "noop_runner.noop_runner",
9+
},
10+
},
11+
)

contrib/runners/orquesta_runner/BUILD

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
st2_runner_python_distribution(
2+
runner_name="orquesta",
3+
description=(
4+
"Orquesta workflow runner "
5+
"for the StackStorm event-driven automation platform"
6+
),
7+
entry_points={
8+
stevedore_namespace("st2common.runners.runner"): {
9+
"orquesta": "orquesta_runner.orquesta_runner",
10+
},
11+
stevedore_namespace("orquesta.expressions.functions"): {
12+
"st2kv": "orquesta_functions.st2kv:st2kv_",
13+
"task": "orquesta_functions.runtime:task",
14+
"basename": "st2common.expressions.functions.path:basename",
15+
"dirname": "st2common.expressions.functions.path:dirname",
16+
"from_json_string": "st2common.expressions.functions.data:from_json_string",
17+
"from_yaml_string": "st2common.expressions.functions.data:from_yaml_string",
18+
"json_dump": "st2common.expressions.functions.data:to_json_string",
19+
"json_parse": "st2common.expressions.functions.data:from_json_string",
20+
"json_escape": "st2common.expressions.functions.data:json_escape",
21+
"jsonpath_query": "st2common.expressions.functions.data:jsonpath_query",
22+
"regex_match": "st2common.expressions.functions.regex:regex_match",
23+
"regex_replace": "st2common.expressions.functions.regex:regex_replace",
24+
"regex_search": "st2common.expressions.functions.regex:regex_search",
25+
"regex_substring": "st2common.expressions.functions.regex:regex_substring",
26+
"to_human_time_from_seconds": "st2common.expressions.functions.time:to_human_time_from_seconds",
27+
"to_json_string": "st2common.expressions.functions.data:to_json_string",
28+
"to_yaml_string": "st2common.expressions.functions.data:to_yaml_string",
29+
"use_none": "st2common.expressions.functions.data:use_none",
30+
"version_compare": "st2common.expressions.functions.version:version_compare",
31+
"version_more_than": "st2common.expressions.functions.version:version_more_than",
32+
"version_less_than": "st2common.expressions.functions.version:version_less_than",
33+
"version_equal": "st2common.expressions.functions.version:version_equal",
34+
"version_match": "st2common.expressions.functions.version:version_match",
35+
"version_bump_major": "st2common.expressions.functions.version:version_bump_major",
36+
"version_bump_minor": "st2common.expressions.functions.version:version_bump_minor",
37+
"version_bump_patch": "st2common.expressions.functions.version:version_bump_patch",
38+
"version_strip_patch": "st2common.expressions.functions.version:version_strip_patch",
39+
"yaml_dump": "st2common.expressions.functions.data:to_yaml_string",
40+
"yaml_parse": "st2common.expressions.functions.data:from_yaml_string",
41+
},
42+
},
43+
)

contrib/runners/python_runner/BUILD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
st2_runner_python_distribution(
2+
runner_name="python",
3+
description=(
4+
"Python action runner for the StackStorm event-driven automation platform"
5+
),
6+
entry_points={
7+
stevedore_namespace("st2common.runners.runner"): {
8+
"python-script": "python_runner.python_runner",
9+
},
10+
},
11+
zip_safe=False,
12+
)

contrib/runners/remote_runner/BUILD

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
st2_runner_python_distribution(
2+
runner_name="remote",
3+
description=(
4+
"Remote SSH shell command and script action runner "
5+
"for the StackStorm event-driven automation platform"
6+
),
7+
entry_points={
8+
stevedore_namespace("st2common.runners.runner"): {
9+
"remote-shell-cmd": "remote_runner.remote_command_runner",
10+
"remote-shell-script": "remote_runner.remote_script_runner",
11+
},
12+
},
13+
)

0 commit comments

Comments
 (0)