feat(scaffold): add __deployment__.py deployment manifest stub#4
Merged
Conversation
Scaffolds an empty __deployment__.py into the minimal workspace. dlt
discovers this module by default ('dlthub deploy'); it's where you import
the pipelines and notebooks you want to deploy and list them in __all__.
Ships empty with brief guidance so a fresh workspace is deploy-ready.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scaffolds an empty
__deployment__.pyinto the bundled minimal workspace. dlt's CLI discovers this module by default (dlthub deploysyncs it to the dltHub Platform) — it's the manifest where you import the pipelines and notebooks you want to deploy and list them in__all__. Shipping it empty (with a one-line guidance comment) makes a fresh workspace deploy-ready and pre-empts the "no manifest found (create__deployment__.py)" prompt.Mirrors the minimal manifest shape used in
dlthub-start:The import stays commented because the minimal scaffold ships no
pipeline.py/notebook.pyyet, so an active import would error.Changes
src/dlthub_init/scaffolds/minimal_workspace/__deployment__.py(auto-discovered + copied byenumerate_payload; tracked in the user's workspace — scaffold.gitignoreonly ignores*.py[codz]).tests/test_scaffold.py: added the file to the pinnedEXPECTEDset.[Unreleased] → Added.Testing
make test✅ (103 passed)🤖 Generated with Claude Code