Skip to content

Commit

Permalink
fix(flask): include cargo build-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Jul 15, 2024
1 parent def89c5 commit 20c5343
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charmcraft/extensions/gunicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ def is_experimental(base: tuple[str, ...] | None) -> bool: # noqa: ARG004
"""Check if the extension is in an experimental state."""
return False

@override
def get_parts_snippet(self) -> dict[str, Any]:
"""Return the parts to add to parts."""
# rust is needed to build pydantic-core, a dependency of flask.
return {"rust-deps": {"build-packages": ["cargo"]}}


class DjangoFramework(_GunicornBase):
"""Extension for 12-factor Django applications."""
Expand Down

0 comments on commit 20c5343

Please sign in to comment.