-
-
Notifications
You must be signed in to change notification settings - Fork 779
Pants: add python_distribution BUILD metadata for st2* components
#5909
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
e564418
796a08c
d72061f
575bd57
083fd00
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,10 @@ | ||
| st2_component_python_distribution( | ||
| component_name="st2actions", | ||
| scripts=[ | ||
| "bin/st2actionrunner", | ||
| "bin/st2notifier", | ||
| "bin/st2workflowengine", | ||
| "bin/st2scheduler", | ||
| "bin/runners.sh:shell", # used by service files installed by st2-packaging | ||
| ], | ||
| ) | ||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,4 @@ | ||||
| st2_component_python_distribution( | ||||
| component_name="st2api", | ||||
| scripts=["bin/st2api"], | ||||
|
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. Line 48 in f115934
|
||||
| ) | ||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,9 @@ | ||||||||||
| st2_component_python_distribution( | ||||||||||
| component_name="st2auth", | ||||||||||
| scripts=["bin/st2auth"], | ||||||||||
| entry_points={ | ||||||||||
| stevedore_namespace("st2auth.sso.backends"): { | ||||||||||
| "noop": "st2auth.sso.noop:NoOpSingleSignOnBackend", | ||||||||||
| }, | ||||||||||
| }, | ||||||||||
|
Comment on lines
+3
to
+8
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. Lines 49 to 52 in f115934
|
||||||||||
| ) | ||||||||||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||
| st2_component_python_distribution( | ||||
| component_name="st2client", | ||||
| entry_points={ | ||||
| "console_scripts": { | ||||
| "st2": "st2client.shell:main", | ||||
| }, | ||||
| }, | ||||
|
Comment on lines
+3
to
+7
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. Line 69 in f115934
|
||||
| ) | ||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,39 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| st2_component_python_distribution( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| component_name="st2common", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| scripts=[ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # some scripts in bin are only for development and should not be included. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-bootstrap-rmq", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-cleanup-db", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-register-content", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-purge-executions", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-purge-workflows", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-purge-task-executions", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-purge-tokens", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-purge-trigger-instances", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-purge-traces", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-purge-rule-enforcements", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-generate-symmetric-crypto-key", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-track-result", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-validate-pack", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-validate-pack-config", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-pack-install", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-pack-download", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-pack-setup-virtualenv", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/migrations/v3.5/st2-migrate-db-dict-field-values", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-run-pack-tests:shell", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2ctl:shell", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bin/st2-self-check:shell", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # dev scripts we might want to include | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # "bin/st2-generate-schemas", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| entry_points={ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stevedore_namespace("st2common.metrics.driver"): { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "statsd": "st2common.metrics.drivers.statsd_driver:StatsdDriver", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "noop": "st2common.metrics.drivers.noop_driver:NoopDriver", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "echo": "st2common.metrics.drivers.echo_driver:EchoDriver", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stevedore_namespace("st2common.rbac.backend"): { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "noop": "st2common.rbac.backends.noop:NoOpRBACBackend", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+38
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. Lines 50 to 82 in f115934
A few of the scripts were missing in setup.py, so I included them here. Also, a couple of them were missing the execute bit, so I added that as well., |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||||||||||||||
| st2_component_python_distribution( | ||||||||||||||||||
| component_name="st2reactor", | ||||||||||||||||||
| scripts=[ | ||||||||||||||||||
| "bin/st2-rule-tester", | ||||||||||||||||||
| "bin/st2-trigger-refire", | ||||||||||||||||||
| "bin/st2rulesengine", | ||||||||||||||||||
| "bin/st2sensorcontainer", | ||||||||||||||||||
| "bin/st2garbagecollector", | ||||||||||||||||||
| "bin/st2timersengine", | ||||||||||||||||||
| ], | ||||||||||||||||||
|
Comment on lines
+3
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. Lines 49 to 56 in f115934
|
||||||||||||||||||
| ) | ||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,4 @@ | ||||
| st2_component_python_distribution( | ||||
| component_name="st2stream", | ||||
| scripts=["bin/st2stream"], | ||||
|
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. Line 48 in f115934
|
||||
| ) | ||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| st2_component_python_distribution( | ||
| component_name="st2tests", | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
st2/st2actions/setup.py
Lines 49 to 54 in f115934
Plus I noticed that st2-packaging needs runners.sh, so I included that as well.