@@ -20,6 +20,7 @@ st2_component_python_distribution(
20
20
"bin/st2-pack-download" ,
21
21
"bin/st2-pack-setup-virtualenv" ,
22
22
"bin/migrations/v3.5/st2-migrate-db-dict-field-values" ,
23
+ "bin/migrations/v3.8/st2-drop-st2exporter-marker-collections" ,
23
24
"bin/st2-run-pack-tests:shell" ,
24
25
"bin/st2ctl:shell" ,
25
26
"bin/st2-self-check:shell" ,
@@ -36,4 +37,67 @@ st2_component_python_distribution(
36
37
"noop" : "st2common.rbac.backends.noop:NoOpRBACBackend" ,
37
38
},
38
39
},
40
+ dependencies = [
41
+ # no entry-point or script yet
42
+ "./st2common/garbage_collection/inquiries.py" , # missing cmd + ./bin/st2-purge-inquiries
43
+ #
44
+ # Things that need to be included as part of the st2common library's API:
45
+ #
46
+ # ### Public API ###
47
+ #
48
+ "./st2common/logging" , # used by all of our logging conf files
49
+ "./st2common/models/system" , # used by runners
50
+ "./st2common/policies" , # used by policies (see st2actions.policies)
51
+ "./st2common/runners" , # used by runners and python actions
52
+ #
53
+ # ### Mixed Public+Internal API ###
54
+ #
55
+ "./st2common/services" , # used by runners, python actions, st2api, ...
56
+ #
57
+ # ### Internal API ###
58
+ #
59
+ "./st2common/constants/garbage_collection.py" , # used by garbage collector
60
+ "./st2common/constants/policy.py" , # used by st2scheduler (in st2actions)
61
+ "./st2common/constants/timer.py" , # used by st2timersengine (in st2reactor)
62
+ "./st2common/middleware" , # used by st2auth, st2api, st2stream
63
+ "./st2common/models/api" , # used by st2auth, st2api, st2stream
64
+ "./st2common/models/system" , # used by st2auth, st2api, st2stream
65
+ "./st2common/models/db/timer.py" , # used by st2api
66
+ "./st2common/models/db/webhook.py" , # used by st2api
67
+ "./st2common/persistence/execution_queue.py" , # used by st2scheduler (in st2actions)
68
+ "./st2common/stream" , # used by st2stream
69
+ "./st2common/transport/consumers.py" , # used by st2actions- and st2reactor-related services
70
+ "./st2common/util/actionalias_helpstring.py" , # used by st2api
71
+ "./st2common/util/auth.py" , # used by st2api, st2auth
72
+ "./st2common/util/keyvalue.py" , # used by st2api
73
+ "./st2common/util/sandboxing.py" , # used by python runner and sensor container
74
+ "./st2common/util/service.py" , # used by st2scheduler (in st2actions)
75
+ "./st2common/util/wsgi.py" , # used by st2stream
76
+ "./st2common/validators/api/misc.py" , # used by st2api
77
+ #
78
+ # ### Dead Code (?) ###
79
+ #
80
+ # Added gunicorn bug workaround for SyncWorker users in #2571. No known active users. To use:
81
+ # `gunicorn -k st2common.util.gunicorn_workers.EventletSyncWorker ...`
82
+ # "./st2common/util/gunicorn_workers.py",
83
+ #
84
+ # Known dead code that should be deleted. Do not add these:
85
+ # ./st2common/callback/* (was for the old mistral_v2 runner. see #4038)
86
+ # ./st2common/constants/scheduler.py (unused since #4397)
87
+ # ./st2common/content/validators.py (unused since #939)
88
+ # ./st2common/exceptions/api.py (unused since #1840)
89
+ # ./st2common/exceptions/connection.py (unused since #1794)
90
+ # ./st2common/exceptions/resultstracker.py (unused since #5011)
91
+ # ./st2common/models/api/actionrunner.py (unused since #442)
92
+ # ./st2common/models/db/reactor.py (unused since #5922)
93
+ # ./st2common/persistence/reactor.py (unused since #5922)
94
+ # ./st2common/util/argument_parser.py (never used since added in e9ae7e31e1eb47e49f0fdc414ed6d2b8eccf4748)
95
+ # ./st2common/validators/workflow (unused since #5011)
96
+ ],
97
+ # commands helpful in inspecting the dependencies (the "=(...)" is zsh syntax)
98
+ # python files under st2common that will not be included in the wheel
99
+ # comm -13 =(./pants dependencies --transitive st2common:st2common | grep -v -e : -e __init__.py | grep st2common/st2common | sort) =(find st2common/st2common -name '*.py' -and -not -name '__init__.py' | sort)
100
+ #
101
+ # python files required by other wheels that are missing from st2common
102
+ # comm -13 =(./pants dependencies --transitive st2common:st2common | grep st2common/st2common | sort) =(./pants list --filter-target-type=python_distribution --filter-address-regex=-st2common:st2common :: | xargs ./pants dependencies --transitive | grep st2common/st2common | sort)
39
103
)
0 commit comments