Skip to content

jinja2 listed as runtime dependency but only used in build-time Docker script #470

Description

@SemTiOne

Summary

jinja2>=3.0 is in pyproject.toml runtime dependencies. The only import is in images/dagster/generate_config.py, which runs inside the Docker build context, not the CDS CLI.

Problem

Every pip install composable-data-stack pulls jinja2 and its transitive deps (markupsafe) for zero runtime benefit. The CLI never imports it.

Suggested fix

Remove jinja2>=3.0 from dependencies in pyproject.toml. If generate_config.py needs it at build time, the Dockerfile already installs it separately.

Files involved

  • pyproject.toml (line 36)
  • images/dagster/generate_config.py (line 3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions