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)
| 182 | |
| 183 | |
| 184 | def 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. |