Skip to content

Commit

Permalink
record entry_points for runner wheels
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cognifloyd committed Feb 16, 2023
1 parent 327f434 commit 3166126
Show file tree
Hide file tree
Showing 11 changed files with 90 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/runners/action_chain_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ st2_runner_python_distribution(
"Action-Chain workflow action runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"action-chain": "action_chain_runner.action_chain_runner",
},
},
)
5 changes: 5 additions & 0 deletions contrib/runners/announcement_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ st2_runner_python_distribution(
"Announcement action runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"announcement": "announcement_runner.announcement_runner",
},
},
)
5 changes: 5 additions & 0 deletions contrib/runners/http_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ st2_runner_python_distribution(
"HTTP(s) action runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"http-request": "http_runner.http_runner",
},
},
)
5 changes: 5 additions & 0 deletions contrib/runners/inquirer_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ st2_runner_python_distribution(
"Inquirer action runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"inquirer": "inquirer_runner.inquirer_runner",
},
},
)
6 changes: 6 additions & 0 deletions contrib/runners/local_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ st2_runner_python_distribution(
"Local Shell Command and Script action runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"local-shell-cmd": "local_runner.local_shell_command_runner",
"local-shell-script": "local_runner.local_shell_script_runner",
},
},
)
5 changes: 5 additions & 0 deletions contrib/runners/noop_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ st2_runner_python_distribution(
"No-Op action runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"noop": "noop_runner.noop_runner",
},
},
)
36 changes: 36 additions & 0 deletions contrib/runners/orquesta_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,40 @@ st2_runner_python_distribution(
"Orquesta workflow runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"orquesta": "orquesta_runner.orquesta_runner",
},
stevedore_namespace("orquesta.expressions.functions"): {
"st2kv": "orquesta_functions.st2kv:st2kv_",
"task": "orquesta_functions.runtime:task",
"basename": "st2common.expressions.functions.path:basename",
"dirname": "st2common.expressions.functions.path:dirname",
"from_json_string": "st2common.expressions.functions.data:from_json_string",
"from_yaml_string": "st2common.expressions.functions.data:from_yaml_string",
"json_dump": "st2common.expressions.functions.data:to_json_string",
"json_parse": "st2common.expressions.functions.data:from_json_string",
"json_escape": "st2common.expressions.functions.data:json_escape",
"jsonpath_query": "st2common.expressions.functions.data:jsonpath_query",
"regex_match": "st2common.expressions.functions.regex:regex_match",
"regex_replace": "st2common.expressions.functions.regex:regex_replace",
"regex_search": "st2common.expressions.functions.regex:regex_search",
"regex_substring": "st2common.expressions.functions.regex:regex_substring",
"to_human_time_from_seconds": "st2common.expressions.functions.time:to_human_time_from_seconds",
"to_json_string": "st2common.expressions.functions.data:to_json_string",
"to_yaml_string": "st2common.expressions.functions.data:to_yaml_string",
"use_none": "st2common.expressions.functions.data:use_none",
"version_compare": "st2common.expressions.functions.version:version_compare",
"version_more_than": "st2common.expressions.functions.version:version_more_than",
"version_less_than": "st2common.expressions.functions.version:version_less_than",
"version_equal": "st2common.expressions.functions.version:version_equal",
"version_match": "st2common.expressions.functions.version:version_match",
"version_bump_major": "st2common.expressions.functions.version:version_bump_major",
"version_bump_minor": "st2common.expressions.functions.version:version_bump_minor",
"version_bump_patch": "st2common.expressions.functions.version:version_bump_patch",
"version_strip_patch": "st2common.expressions.functions.version:version_strip_patch",
"yaml_dump": "st2common.expressions.functions.data:to_yaml_string",
"yaml_parse": "st2common.expressions.functions.data:from_yaml_string",
},
},
)
5 changes: 5 additions & 0 deletions contrib/runners/python_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ st2_runner_python_distribution(
"Python action runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"python-script": "python_runner.python_runner",
},
},
zip_safe=False,
)
6 changes: 6 additions & 0 deletions contrib/runners/remote_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ st2_runner_python_distribution(
"Remote SSH shell command and script action runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"remote-shell-cmd": "remote_runner.remote_command_runner",
"remote-shell-script": "remote_runner.remote_script_runner",
},
},
)
7 changes: 7 additions & 0 deletions contrib/runners/winrm_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ st2_runner_python_distribution(
"WinRM shell command and PowerShell script action runner "
"for the StackStorm event-driven automation platform"
),
entry_points={
stevedore_namespace("st2common.runners.runner"): {
"winrm-cmd": "winrm_runner.winrm_command_runner",
"winrm-ps-cmd": "winrm_runner.winrm_ps_command_runner",
"winrm-ps-script": "winrm_runner.winrm_ps_script_runner",
},
},
)
5 changes: 5 additions & 0 deletions pants-plugins/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
# limitations under the License.


# this is only here temporarily until we update to pants 2.16+
def stevedore_namespace(ns):
return ns


def st2_publish_repos():
"""Return the list of repos twine should publish to.
Expand Down

0 comments on commit 3166126

Please sign in to comment.