Skip to content

Commit dbe6630

Browse files
committed
Define API dependencies on code that should be in st2common wheel
Since this code is not imported by one of our scripts or entry points, we need to add an explicit dependency. This starts with several things that form part of the official "API" of the st2common library.
1 parent ad7beb0 commit dbe6630

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

st2common/BUILD

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,45 @@ st2_component_python_distribution(
3838
},
3939
},
4040
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+
#
4180
# Added gunicorn bug workaround for SyncWorker users in #2571. No known active users. To use:
4281
# `gunicorn -k st2common.util.gunicorn_workers.EventletSyncWorker ...`
4382
# "./st2common/util/gunicorn_workers.py",

0 commit comments

Comments
 (0)