Skip to content

Commit d442fd5

Browse files
committed
pants: Add/adjust targets for executables
Most of the shell_source(s) targets were created with `./pants tailor ::`. That missed a few of our scripts that do not have a `.sh` extension, as well as a few executable python scripts that did not have a `.py` extension, so we let pants know about them.
1 parent 6b2f993 commit d442fd5

File tree

9 files changed

+33
-1
lines changed

9 files changed

+33
-1
lines changed

contrib/core/actions/send_mail/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
shell_source(
2+
source="send_mail",
3+
)

st2actions/bin/BUILD

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
python_sources(
2+
sources=["st2*"],
3+
)
4+
15
shell_sources(
26
name="shell",
37
)

st2api/bin/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_sources(
2+
sources=["st2*"],
3+
)

st2auth/bin/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_sources(
2+
sources=["st2*"],
3+
)

st2common/bin/BUILD

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
python_sources()
1+
python_sources(
2+
sources=["*.py", "st2*", "!st2ctl", "!st2-self-check", "!st2-run-pack-tests"],
3+
)
4+
5+
shell_sources(
6+
name="shell",
7+
sources=["st2ctl", "st2-self-check", "st2-run-pack-tests"],
8+
)

st2common/bin/migrations/v3.5/BUILD

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# TODO: what to do about st2-migrate-db-dict-field-values ?
2+
# st2_migrate_db_dict_field_values.py is a symlink to st2-migrate-db-dict-field-values
13
python_sources()

st2reactor/bin/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_sources(
2+
sources=["st2*"],
3+
)

st2stream/bin/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_sources(
2+
sources=["st2*"],
3+
)

tools/BUILD

+4
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ python_sources()
22

33
shell_sources(
44
name="shell",
5+
sources=[
6+
"*.sh",
7+
"st2-setup-*",
8+
],
59
)

0 commit comments

Comments
 (0)