Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Added
to pants' use of PEX lockfiles. This is not a user-facing addition.
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922 #5926 #5927 #5925
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922 #5926 #5927 #5925 #5928
Contributed by @cognifloyd

* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805
Expand Down
5 changes: 5 additions & 0 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ st2 = "lockfiles/st2-constraints.txt"
# Revisit this in pants 2.16 to see if it is feasible to use the default "warning".
unowned_dependency_behavior = "ignore"

[setup-py-generation]
# when building the package (with ./pants package ::), pants will,
# by default, generate a setup.py file for use with setuptools.
generate_setup_default = true # true by default

[bandit]
lockfile = "lockfiles/bandit.lock"
version = "bandit==1.7.0"
Expand Down
7 changes: 7 additions & 0 deletions st2actions/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@ st2_component_python_distribution(
"bin/st2scheduler",
"bin/runners.sh:shell", # used by service files installed by st2-packaging
],
dependencies=[
# policies get wired up by metadata in st2common/st2common/policies/meta/*.yaml
"st2actions/policies",
# backwards compat API:
# st2actions.runners.pythonrunner.Action moved to st2common.runners.base_action.Action
"st2actions/runners/pythonrunner.py",
],
)
13 changes: 12 additions & 1 deletion st2api/st2api/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
python_sources()
python_sources(
overrides={
"app.py": dict(
dependencies=[
# controller routes are wired up via st2common/st2common/openapi.yaml
"./controllers",
"./controllers/v1",
# "./controllers/exp",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No APIs are in the experimental folder right now. So, I left this commented out.

],
),
},
)
11 changes: 10 additions & 1 deletion st2api/st2api/controllers/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
python_sources()
python_sources(
overrides={
"root.py": dict(
dependencies=[
"st2api/st2api/public", # cfg.static_root (has logo images)
"st2api/st2api/templates", # cfg.template_path
],
),
},
)
11 changes: 10 additions & 1 deletion st2auth/st2auth/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
python_sources()
python_sources(
overrides={
"app.py": dict(
dependencies=[
# controller routes are wired up via st2common/st2common/openapi.yaml
"./controllers/v1",
],
),
},
)
11 changes: 10 additions & 1 deletion st2auth/st2auth/backends/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
python_sources()
python_sources(
overrides={
"__init__.py": dict(
dependencies=[
# Public API classes that cannot be inferred
"./base.py",
],
),
},
)
11 changes: 10 additions & 1 deletion st2reactor/st2reactor/container/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
python_sources()
python_sources(
overrides={
"process_container.py": dict(
dependencies=[
# This is called in a subprocess using filesystem path
"./sensor_wrapper.py",
],
),
},
)
11 changes: 10 additions & 1 deletion st2stream/st2stream/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
python_sources()
python_sources(
overrides={
"app.py": dict(
dependencies=[
# controller routes are wired up via st2common/st2common/openapi.yaml
"./controllers/v1",
],
),
},
)