MCPcopy Index your code
hub / github.com/StackStorm/st2 / st2_shell_sources_and_resources

Function st2_shell_sources_and_resources

pants-plugins/macros.py:184–197  ·  view source on GitHub ↗

This creates a shell_sources and a resources target. This is needed because python_sources dependencies on shell_sources are silently ignored. So, we also need the resources target to allow depending on them.

(**kwargs)

Source from the content-addressed store, hash-verified

182
183
184def st2_shell_sources_and_resources(**kwargs):
185 """This creates a shell_sources and a resources target.
186
187 This is needed because python_sources dependencies on shell_sources
188 are silently ignored. So, we also need the resources target
189 to allow depending on them.
190 """
191 shell_sources(**kwargs) # noqa: F821
192
193 kwargs.pop("skip_shellcheck", None)
194 kwargs.pop("skip_shfmt", None)
195
196 kwargs["name"] += "_resources"
197 resources(**kwargs) # noqa: F821
198
199
200# these are referenced by the logging.*.conf files.

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected