Skip to content

Commit 3166126

Browse files
committed
record entry_points for runner wheels
tag with stevedore_namespace so that once we enable the pants-plugin for stevedore, pants can install things appropriately for tests to access the setuptools metadata.
1 parent 327f434 commit 3166126

File tree

11 files changed

+90
-0
lines changed

11 files changed

+90
-0
lines changed

contrib/runners/action_chain_runner/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ st2_runner_python_distribution(
44
"Action-Chain workflow action runner "
55
"for the StackStorm event-driven automation platform"
66
),
7+
entry_points={
8+
stevedore_namespace("st2common.runners.runner"): {
9+
"action-chain": "action_chain_runner.action_chain_runner",
10+
},
11+
},
712
)

contrib/runners/announcement_runner/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ st2_runner_python_distribution(
44
"Announcement action runner "
55
"for the StackStorm event-driven automation platform"
66
),
7+
entry_points={
8+
stevedore_namespace("st2common.runners.runner"): {
9+
"announcement": "announcement_runner.announcement_runner",
10+
},
11+
},
712
)

contrib/runners/http_runner/BUILD

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

contrib/runners/inquirer_runner/BUILD

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

contrib/runners/local_runner/BUILD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ st2_runner_python_distribution(
44
"Local Shell Command and Script action runner "
55
"for the StackStorm event-driven automation platform"
66
),
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+
},
713
)

contrib/runners/noop_runner/BUILD

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

contrib/runners/orquesta_runner/BUILD

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,40 @@ st2_runner_python_distribution(
44
"Orquesta workflow runner "
55
"for the StackStorm event-driven automation platform"
66
),
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+
},
743
)

contrib/runners/python_runner/BUILD

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

contrib/runners/remote_runner/BUILD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ st2_runner_python_distribution(
44
"Remote SSH shell command and script action runner "
55
"for the StackStorm event-driven automation platform"
66
),
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+
},
713
)

contrib/runners/winrm_runner/BUILD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@ st2_runner_python_distribution(
1212
"WinRM shell command and PowerShell script action runner "
1313
"for the StackStorm event-driven automation platform"
1414
),
15+
entry_points={
16+
stevedore_namespace("st2common.runners.runner"): {
17+
"winrm-cmd": "winrm_runner.winrm_command_runner",
18+
"winrm-ps-cmd": "winrm_runner.winrm_ps_command_runner",
19+
"winrm-ps-script": "winrm_runner.winrm_ps_script_runner",
20+
},
21+
},
1522
)

pants-plugins/macros.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# limitations under the License.
1414

1515

16+
# this is only here temporarily until we update to pants 2.16+
17+
def stevedore_namespace(ns):
18+
return ns
19+
20+
1621
def st2_publish_repos():
1722
"""Return the list of repos twine should publish to.
1823

0 commit comments

Comments
 (0)