From 832148482322688c28f1bec2abdbd1c83dc7fff7 Mon Sep 17 00:00:00 2001 From: David Whittaker <84562015+whitdog47@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:30:53 -0800 Subject: [PATCH 1/3] fix(cli): use new entry point method (#5623) --- src/dispatch/common/utils/cli.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/dispatch/common/utils/cli.py b/src/dispatch/common/utils/cli.py index 4bed4f8bfd35..0c2341177e13 100644 --- a/src/dispatch/common/utils/cli.py +++ b/src/dispatch/common/utils/cli.py @@ -7,6 +7,7 @@ logger = logging.getLogger(__name__) + # Plugin endpoints should determine authentication # TODO allow them to specify (kglisson) def install_plugin_events(api): """Adds plugin endpoints to the event router.""" @@ -14,13 +15,10 @@ def install_plugin_events(api): if plugin.events: api.include_router(plugin.events, prefix="/{organization}/events", tags=["events"]) + def install_plugins(): - """ - Installs plugins associated with dispatch - :return: - """ - # Retrieve entry points for 'dispatch.plugins' - dispatch_plugins = entry_points().get("dispatch.plugins", []) + """Installs plugins associated with dispatch""" + dispatch_plugins = entry_points().select(group="dispatch.plugins") for ep in dispatch_plugins: logger.info(f"Attempting to load plugin: {ep.name}") From d86bebdc511883ad4c93b5d1f5626f5c5a3848ac Mon Sep 17 00:00:00 2001 From: Rob Lambell Date: Tue, 17 Dec 2024 17:48:40 +0000 Subject: [PATCH 2/3] chore(ci): test docker build on pull request (#5588) * chore: test docker build on pull request * chore: remove branch filter; useful in forks on integration branches --- .github/workflows/publish-image-test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/publish-image-test.yml diff --git a/.github/workflows/publish-image-test.yml b/.github/workflows/publish-image-test.yml new file mode 100644 index 000000000000..26f128f3def3 --- /dev/null +++ b/.github/workflows/publish-image-test.yml @@ -0,0 +1,15 @@ +name: Test image build + +on: pull_request + +jobs: + build_image: + name: Build Docker image + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + - name: Build without push + uses: docker/build-push-action@v1 + with: + push: false From 1150a7132df49d0e4af5df1df986868fbdf02382 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:33:40 -0800 Subject: [PATCH 3/3] chore(deps): bump python-multipart from 0.0.19 to 0.0.20 (#5624) Bumps [python-multipart](https://github.com/Kludex/python-multipart) from 0.0.19 to 0.0.20. - [Release notes](https://github.com/Kludex/python-multipart/releases) - [Changelog](https://github.com/Kludex/python-multipart/blob/master/CHANGELOG.md) - [Commits](https://github.com/Kludex/python-multipart/compare/0.0.19...0.0.20) --- updated-dependencies: - dependency-name: python-multipart dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Whittaker <84562015+whitdog47@users.noreply.github.com> --- requirements-base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-base.txt b/requirements-base.txt index e7ae623bb07a..423fb42f13f4 100644 --- a/requirements-base.txt +++ b/requirements-base.txt @@ -354,7 +354,7 @@ python-dateutil==2.9.0.post0 # pandas python-jose==3.3.0 # via -r requirements-base.in -python-multipart==0.0.19 +python-multipart==0.0.20 # via -r requirements-base.in python-slugify==8.0.4 # via -r requirements-base.in