-
-
Notifications
You must be signed in to change notification settings - Fork 782
pants: register assets (like conf files) and dependencies on them #5846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
284ebf2
d1d6269
ab9531e
fcec7ea
26990c7
204ae8d
3d46db9
f395cf0
36336c6
65f6072
8ca1594
2ae29a6
248d8d8
8578c30
38165f0
d994655
53394fd
2621270
e3dc578
802717b
442faea
cabe410
e9c9346
95bdd9e
7663c79
e0119dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| file( | ||
| name="st2client_sample_config", | ||
| source="st2rc.sample.ini", | ||
| ) | ||
|
|
||
| file( | ||
| name="st2.conf.sample", | ||
| source="st2.conf.sample", | ||
| ) | ||
|
Comment on lines
+6
to
+9
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A future PR will add |
||
|
|
||
| file( | ||
| name="logrotate", | ||
| source="logrotate.conf", | ||
| ) | ||
|
|
||
| file( | ||
| name="nginx_sample_config", | ||
| source="nginx/st2.conf", | ||
| ) | ||
|
|
||
| file( | ||
| name="st2_kvstore_demo_crypto_key", | ||
| source="st2_kvstore_demo.crypto.key.json", | ||
| ) | ||
|
|
||
| files( | ||
| name="st2_tests_conf", | ||
| sources=[ | ||
| "st2.tests*.conf", | ||
| ], | ||
| dependencies=[ | ||
| "st2auth/conf:htpasswd", | ||
| "st2actions/conf:logging", | ||
| "st2reactor/conf:logging", | ||
| "st2tests/conf:other_logging_conf", | ||
| ], | ||
| ) | ||
|
|
||
| file( | ||
| name="st2_dev_conf", | ||
| source="st2.dev.conf", | ||
| dependencies=[ | ||
| ":st2_kvstore_demo_crypto_key", | ||
| "st2auth/conf:htpasswd", | ||
| "st2actions/conf:logging", | ||
| "st2api/conf:logging", | ||
| "st2auth/conf:logging", | ||
| "st2reactor/conf:logging", | ||
| "st2stream/conf:logging", | ||
| ], | ||
| ) | ||
|
|
||
| file( | ||
| name="st2_package_conf", | ||
| source="st2.package.conf", | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,10 @@ | ||
| files( | ||
| name="fixtures", | ||
| sources=["fixtures/*.json"], | ||
| ) | ||
|
|
||
| python_tests( | ||
| name="tests", | ||
| dependencies=[":fixtures"], | ||
| skip_pylint=True, | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| files( | ||
| name="powershell", | ||
| sources=["*.ps1"], | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":powershell"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| python_sources() | ||
| resource( | ||
| name="runner_metadata", | ||
| source="runner.yaml", | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":runner_metadata"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,11 @@ | ||
| shell_sources() | ||
| files( | ||
| name="assets", | ||
| sources=[ | ||
| "*.txt", | ||
| "*.conf", | ||
| ], | ||
| ) | ||
|
|
||
| shell_sources( | ||
| dependencies=[":assets"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| file( | ||
| name="logging_console", | ||
| source="console.conf", | ||
| ) | ||
|
|
||
| files( | ||
| name="logging", | ||
| sources=["logging*.conf"], | ||
| ) | ||
|
|
||
| files( | ||
| name="logging_syslog", | ||
| sources=["syslog*.conf"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| file( | ||
| name="logging_console", | ||
| source="console.conf", | ||
| ) | ||
|
|
||
| file( | ||
| name="logging", | ||
| source="logging.conf", | ||
| ) | ||
|
|
||
| file( | ||
| name="logging_gunicorn", | ||
| source="logging.gunicorn.conf", | ||
| ) | ||
|
|
||
| file( | ||
| name="logging_syslog", | ||
| source="syslog.conf", | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| files( | ||
| sources=[ | ||
| "images/*.png", | ||
| ], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| file(source="index.html") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| python_tests( | ||
| name="tests", | ||
| dependencies=[ | ||
| "conf/st2.tests.conf:st2_tests_conf", | ||
| ], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| file( | ||
| name="apache_sample_conf", | ||
| source="apache.sample.conf", | ||
| ) | ||
|
|
||
| file( | ||
| name="htpasswd", | ||
| source="htpasswd_dev", | ||
| ) | ||
|
|
||
| file( | ||
| name="logging_console", | ||
| source="console.conf", | ||
| ) | ||
|
|
||
| file( | ||
| name="logging", | ||
| source="logging.conf", | ||
| ) | ||
|
|
||
| file( | ||
| name="logging_gunicorn", | ||
| source="logging.gunicorn.conf", | ||
| ) | ||
|
|
||
| file( | ||
| name="logging_syslog", | ||
| source="syslog.conf", | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,13 @@ | ||
| python_sources() | ||
| resources( | ||
| name="execution_fixtures", | ||
| sources=["execution*.json", "execution*.txt"], | ||
| ) | ||
|
|
||
| resources( | ||
| name="st2client_ini", | ||
| sources=["*.ini"], | ||
| ) | ||
|
|
||
| python_sources( | ||
| dependencies=[":execution_fixtures"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| files( | ||
| sources=["*.json"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| python_sources( | ||
| dependencies=["st2common/benchmarks/fixtures/json"], | ||
| skip_pylint=True, | ||
| ) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,11 @@ | ||
| python_sources() | ||
| python_sources( | ||
| dependencies=[ | ||
| ":openapi_spec", | ||
| ] | ||
| ) | ||
|
|
||
| # These may be loaded with st2common.util.spec_loader | ||
| resources( | ||
| name="openapi_spec", | ||
| sources=["openapi.yaml", "openapi.yaml.j2"], | ||
| ) | ||
|
Comment on lines
+8
to
+11
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A future PR will add |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,9 @@ | ||
| python_sources() | ||
| python_sources( | ||
| overrides={ | ||
| "policiesregistrar.py": { | ||
| "dependencies": [ | ||
| "st2common/st2common/policies/meta:policies_meta", | ||
| ], | ||
| }, | ||
| }, | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # used in st2common.constants.logging.DEFAULT_LOGGING_CONF_PATH | ||
| resource( | ||
| name="base.logging.conf", | ||
| source="base.logging.conf", | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| python_sources() | ||
| python_sources( | ||
| dependencies=[ | ||
| "st2common/st2common/conf:base.logging.conf", | ||
| ] | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # These are loaded by st2common.bootstrap.policiesregistrar | ||
| resources( | ||
| name="policies_meta", | ||
| sources=["*.yaml"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,10 @@ | ||
| python_sources() | ||
| python_sources( | ||
| dependencies=[ | ||
| ":jsonschema", | ||
| ] | ||
| ) | ||
|
|
||
| resources( | ||
| name="jsonschema", | ||
| sources=["*.json"], | ||
| ) | ||
|
Comment on lines
+1
to
+10
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is required before I can submit the pants plugin that wires up pants to manage building the schemas in |
||
Uh oh!
There was an error while loading. Please reload this page.