File tree 9 files changed +37
-37
lines changed
examples/actions/bash_random
pants-plugins/uses_services
9 files changed +37
-37
lines changed Original file line number Diff line number Diff line change @@ -3,30 +3,30 @@ python_requirements(
3
3
source = "requirements-pants.txt" ,
4
4
overrides = {
5
5
# flex and stevedore uses pkg_resources w/o declaring the dep
6
- ("flex" , "stevedore" ): {
7
- " dependencies" : [
6
+ ("flex" , "stevedore" ): dict (
7
+ dependencies = [
8
8
"//:reqs#setuptools" ,
9
9
]
10
- } ,
10
+ ) ,
11
11
# do not use the prance[flex] extra as that pulls in an old version of flex
12
- "prance" : {
13
- " dependencies" : [
12
+ "prance" : dict (
13
+ dependencies = [
14
14
"//:reqs#flex" ,
15
15
]
16
- } ,
16
+ ) ,
17
17
# tooz needs one or more backends (tooz is used by the st2 coordination backend)
18
- "tooz" : {
19
- " dependencies" : [
18
+ "tooz" : dict (
19
+ dependencies = [
20
20
"//:reqs#redis" ,
21
21
"//:reqs#zake" ,
22
22
]
23
- } ,
23
+ ) ,
24
24
# make sure anything that uses st2-auth-ldap gets the st2auth constant
25
- "st2-auth-ldap" : {
26
- " dependencies" : [
25
+ "st2-auth-ldap" : dict (
26
+ dependencies = [
27
27
"st2auth/st2auth/backends/constants.py" ,
28
28
]
29
- } ,
29
+ ) ,
30
30
},
31
31
)
32
32
Original file line number Diff line number Diff line change 17
17
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
18
18
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
19
19
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922 #5926 #5927 #5925 #5928 #5929 #5930
20
- #5931 #5932
20
+ #5931 #5932 #5948
21
21
Contributed by @cognifloyd
22
22
23
23
* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805
Original file line number Diff line number Diff line change 1
1
python_tests (
2
2
skip_pylint = True ,
3
3
overrides = {
4
- "test_action_sendmail.py" : {
5
- " dependencies" : [
4
+ "test_action_sendmail.py" : dict (
5
+ dependencies = [
6
6
# contrib/core is symlinked to st2tests/st2tests/fixtures/packs/core
7
7
# so pants thinks "mail-parser" is defined twice, making it ambiguous.
8
8
# Use contrib/core as the canonical copy.
9
9
"contrib/core:reqs#mail-parser" ,
10
10
],
11
- }
11
+ ),
12
12
},
13
13
)
Original file line number Diff line number Diff line change 1
1
shell_sources (
2
2
overrides = {
3
- "random2.sh" : { " skip_shellcheck" : True } ,
3
+ "random2.sh" : dict ( skip_shellcheck = True ) ,
4
4
},
5
5
)
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ python_tests(
14
14
# is somehow broken, then any failures would prevent these tests
15
15
# from running to tell us what is wrong.
16
16
# overrides={
17
- # "mongo_rules_test.py": {" uses": ["mongo"]} ,
18
- # "rabbitmq_rules_test.py": {" uses": ["rabbitmq"]} ,
19
- # "redis_rules_test.py": {" uses": ["redis"]} ,
17
+ # "mongo_rules_test.py": dict( uses= ["mongo"]) ,
18
+ # "rabbitmq_rules_test.py": dict( uses= ["rabbitmq"]) ,
19
+ # "redis_rules_test.py": dict( uses= ["redis"]) ,
20
20
# },
21
21
)
Original file line number Diff line number Diff line change 7
7
name = "logging" ,
8
8
sources = ["logging*.conf" ],
9
9
overrides = {
10
- "logging.conf" : {
11
- " dependencies" : [
10
+ "logging.conf" : dict (
11
+ dependencies = [
12
12
"//:reqs#python-json-logger" ,
13
13
],
14
- } ,
14
+ ) ,
15
15
},
16
16
)
17
17
Original file line number Diff line number Diff line change @@ -10,21 +10,21 @@ st2_shell_sources_and_resources(
10
10
sources = ["st2ctl" , "st2-self-check" , "st2-run-pack-tests" ],
11
11
skip_shellcheck = True ,
12
12
overrides = {
13
- "st2ctl" : {
14
- " dependencies" : [
13
+ "st2ctl" : dict (
14
+ dependencies = [
15
15
"./st2-register-content" ,
16
16
"./st2-cleanup-db" ,
17
17
],
18
- } ,
19
- "st2-self-check" : {
20
- " dependencies" : [
18
+ ) ,
19
+ "st2-self-check" : dict (
20
+ dependencies = [
21
21
"./st2ctl:shell" ,
22
22
# TODO: dep on st2client cli?
23
23
],
24
- } ,
24
+ ) ,
25
25
# st2-run-pack-tests creates its own virtualenv on the fly and
26
- # installs its dependencies, so they don't need to be listed here.
26
+ # installs its dependencies, so most don't need to be listed here.
27
27
# It can optionally use the deps installed with st2tests package.
28
- # "st2-run-pack-tests": {} ,
28
+ # "st2-run-pack-tests": dict() ,
29
29
},
30
30
)
Original file line number Diff line number Diff line change 1
1
python_sources (
2
2
overrides = {
3
- "policiesregistrar.py" : {
4
- " dependencies" : [
3
+ "policiesregistrar.py" : dict (
4
+ dependencies = [
5
5
"st2common/st2common/policies/meta:policies_meta" ,
6
6
],
7
- } ,
7
+ ) ,
8
8
},
9
9
)
Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ python_requirement(
12
12
13
13
python_sources (
14
14
overrides = {
15
- "config_gen.py" : {
16
- " dependencies" : [
15
+ "config_gen.py" : dict (
16
+ dependencies = [
17
17
# the auth backends get listed in the conf file
18
18
"//:auth_backends" ,
19
19
# We are using string import detection to gather the imports
20
20
# from CONFIGS in config_gen.py. The following command is
21
21
# helpful in validating that dependencies include everything:
22
22
# grep -rl '^def register_opts(ignore_errors=False):' st2*
23
23
]
24
- } ,
24
+ ) ,
25
25
},
26
26
)
27
27
You can’t perform that action at this time.
0 commit comments