Page MenuHomeElementl

Adds new-repo template files as package_data.
ClosedPublic

Authored by bob on Feb 17 2021, 4:23 PM.

Details

Summary

When running dagster new-repo, Jinja2 does not load any template files because the template files' directory was not included as package_data in dagster/setup.py. Because of this, running dagster new-repo simply generates an empty folder.

This change adds the template files' directory dagster/generate/new_repo/ to package_data. Tests are also added to ensure that additional subfolders are generated.

Test Plan

buildkite

Diff Detail

Repository
R1 dagster
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 17 2021, 4:39 PM
Harbormaster failed remote builds in B25976: Diff 31707!
This revision is now accepted and ready to land.Feb 19 2021, 9:30 PM

Adds new_repo template files to MANIFEST.in.

Rebase on master to fix black error