Skip to content

Remove fastapi_cloudevents since it's not compatible with the latest cloudevents package.#1303

Merged
JoshVanL merged 2 commits into
dapr:masterfrom
marcduiker:fix-python-wf-combined-patterns
Apr 22, 2026
Merged

Remove fastapi_cloudevents since it's not compatible with the latest cloudevents package.#1303
JoshVanL merged 2 commits into
dapr:masterfrom
marcduiker:fix-python-wf-combined-patterns

Conversation

@marcduiker
Copy link
Copy Markdown
Contributor

Description

Remove fastapi-cloudevents dependency since it breaks the combined patterns workflow tutorial.

Analysis by Claude
The fastapi-cloudevents library (latest 2.0.2) is incompatible with the newly released cloudevents 2.0.0.

Evidence chain:

  1. fastapi-cloudevents==2.0.2 metadata declares Requires-Dist: cloudevents[pydantic] — with no upper-bound pin.
  2. Its module fastapi_cloudevents/cloudevent.py does import cloudevents.pydantic.
  3. That cloudevents.pydantic submodule existed in cloudevents 1.x (1.6.0 – 1.12.1), but cloudevents 2.0.0
    (released recently) restructured the API — the submodule is gone, replaced by cloudevents.core.bindings.http
    (which the working pub_sub/python/sdk/order-processor/app.py already uses, per commit ae1fe8f "Update to
    latest cloudevents").
  4. tutorials/workflow/python/combined-patterns/{shipping_app,workflow_app}/requirements.txt pin
    fastapi-cloudevents>=2.0.2 with no cloudevents constraint, so a fresh pip install resolves cloudevents==2.0.0
    and the import blows up.
  5. fastapi-cloudevents has not published a release compatible with cloudevents>=2.0; 2.0.2 is still the latest
    on PyPI.

Issue reference

We strive to have all PRs being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • The quickstart code compiles correctly
  • You've tested new builds of the quickstart if you changed quickstart code
  • You've updated the quickstart's README if necessary
  • If you have changed the steps for a quickstart be sure that you have updated the automated validation accordingly. All of our quickstarts have annotations that allow them to be executed automatically as code. For more information see mechanical-markdown. For user guide with examples see Examples.

…cloudevents package.

Signed-off-by: Marc Duiker <marcduiker@users.noreply.github.com>
@marcduiker marcduiker requested review from a team as code owners April 22, 2026 09:03
@JoshVanL JoshVanL merged commit 42442be into dapr:master Apr 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants