|
1 | 1 | st2_component_python_distribution( |
2 | 2 | component_name="st2common", |
3 | 3 | dependencies=[ |
4 | | - "./st2common", |
5 | | - "./st2common/bootstrap", |
6 | | - "./st2common/callback", |
7 | | - "./st2common/cmd", |
8 | | - "./st2common/constants", |
9 | | - "./st2common/content", |
10 | | - "./st2common/exceptions", |
11 | | - #"./st2common/expressions", |
12 | | - "./st2common/garbage_collection", |
| 4 | + # public API (not imported directly by any st2common entry points) |
| 5 | + "./st2common/callback/base.py", |
| 6 | + "./st2common/constants/garbage_collection.py", |
| 7 | + "./st2common/constants/policy.py", |
| 8 | + "./st2common/constants/timer.py", |
| 9 | + "./st2common/models/api/auth.py", |
| 10 | + "./st2common/models/api/inquiry.py", |
| 11 | + "./st2common/models/api/rbac.py", |
| 12 | + "./st2common/models/api/rule_enforcement.py", |
| 13 | + "./st2common/models/api/webhook.py", |
| 14 | + "./st2common/models/db/timer.py", |
| 15 | + "./st2common/models/system/actionchain.py", |
| 16 | + "./st2common/models/system/paramiko_command_action.py", |
| 17 | + "./st2common/models/system/paramiko_script_action.py", |
| 18 | + "./st2common/persistence/execution_queue.py", |
| 19 | + "./st2common/policies/concurrency.py", |
| 20 | + "./st2common/transport/consumers.py", |
| 21 | + "./st2common/validators/api/misc.py", |
| 22 | + "./st2common/services/datastore.py", |
| 23 | + "./st2common/services/inquiry.py", |
| 24 | + "./st2common/services/policies.py", |
| 25 | + "./st2common/services/rules.py", |
| 26 | + "./st2common/services/sensor_watcher.py", |
| 27 | + "./st2common/services/trigger_dispatcher.py", |
| 28 | + "./st2common/services/triggerwatcher.py", |
| 29 | + "./st2common/util/actionalias_helpstring.py", |
| 30 | + "./st2common/util/auth.py", |
| 31 | + "./st2common/util/keyvalue.py", |
| 32 | + "./st2common/util/sandboxing.py", |
| 33 | + "./st2common/util/service.py", |
| 34 | + "./st2common/util/wsgi.py", |
| 35 | + # public API: used by all of our logging conf files |
13 | 36 | "./st2common/logging", |
14 | | - #"./st2common/metrics", |
15 | | - #"./st2common/metrics/drivers", |
16 | | - "./st2common/middleware", |
17 | | - "./st2common/models", |
18 | | - "./st2common/models/api", |
19 | | - "./st2common/models/db", |
20 | | - "./st2common/models/system", |
21 | | - "./st2common/models/utils", |
22 | | - "./st2common/persistence", |
23 | | - "./st2common/policies", |
24 | | - "./st2common/policies/meta", |
25 | | - #"./st2common/rbac", |
| 37 | + # public API: used by runners and python actions |
26 | 38 | "./st2common/runners", |
27 | | - "./st2common/services", |
| 39 | + # API: used by st2auth, st2api, st2stream |
| 40 | + "./st2common/middleware", |
| 41 | + # API: used by st2stream |
28 | 42 | "./st2common/stream", |
29 | | - "./st2common/transport", |
30 | | - "./st2common/util", |
31 | | - "./st2common/util/green", |
32 | | - "./st2common/util/schema", |
33 | | - "./st2common/validators", |
34 | | - "./st2common/validators/api", |
35 | | - "./st2common/validators/workflow", |
| 43 | + # TODO: missing st2common/bin/st2-purge-inquiries |
| 44 | + "./st2common/garbage_collection/inquiries.py", |
| 45 | + # these convenience imports can probably be removed |
| 46 | + # once persistence.reactor usages are replaced |
| 47 | + "./st2common/models/db/reactor.py", # dead code / unused |
| 48 | + "./st2common/persistence/reactor.py", |
| 49 | + # dead code (nothing imports it) |
| 50 | + # "./st2common/constants/scheduler.py", |
| 51 | + # "./st2common/content/validators.py", |
| 52 | + # "./st2common/exceptions/api.py", # InternalServerErrorException |
| 53 | + # "./st2common/exceptions/connection.py", # UnknownHostException, ConnectionErrorException, AuthenticationException |
| 54 | + # "./st2common/exceptions/resultstracker.py", # ReferenceNotFoundError |
| 55 | + # "./st2common/models/api/actionrunner.py", |
| 56 | + # "./st2common/util/argument_parser.py", |
| 57 | + # "./st2common/util/gunicorn_workers.py", |
| 58 | + # "./st2common/validators/workflow", |
| 59 | + ], |
| 60 | + scripts=[ |
| 61 | + # some scripts in bin are only for development and should not be included. |
| 62 | + "bin/st2-bootstrap-rmq", |
| 63 | + "bin/st2-cleanup-db", |
| 64 | + "bin/st2-register-content", |
| 65 | + "bin/st2-purge-executions", |
| 66 | + "bin/st2-purge-workflows", |
| 67 | + "bin/st2-purge-task-executions", |
| 68 | + "bin/st2-purge-trigger-instances", |
| 69 | + "bin/st2-purge-traces", |
| 70 | + "bin/st2-purge-rule-enforcements", |
| 71 | + "bin/st2-run-pack-tests:shell", |
| 72 | + "bin/st2ctl:shell", |
| 73 | + "bin/st2-generate-symmetric-crypto-key", |
| 74 | + "bin/st2-self-check:shell", |
| 75 | + "bin/st2-track-result", |
| 76 | + "bin/st2-validate-pack", |
| 77 | + "bin/st2-validate-pack-config", |
| 78 | + "bin/st2-pack-install", |
| 79 | + "bin/st2-pack-download", |
| 80 | + "bin/st2-pack-setup-virtualenv", |
| 81 | + "bin/migrations/v3.5/st2-migrate-db-dict-field-values", |
| 82 | + # dev scripts we might want to include |
| 83 | + # "bin/st2-generate-schemas", |
36 | 84 | ], |
37 | 85 | ) |
0 commit comments