-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[components] Add --use-editable-dagster to dg generate code-location (#…
…26295) ## Summary & Motivation Add an `--use-editable-dagster` flag to `dg generate code-location`. This causes the command to read the `$DAGSTER_GIT_REPO_DIR` environment variable and set up the code location to use editable installs from this location. This is done by adding `tool.uv.sources` to the generated pyproject.toml: ``` # If DAGSTER_GIT_REPO_DIR=/path/to/dagster [tool.uv.sources] dagster = { path = "/path/to/dagster/python_modules/dagster", editable=true } dagster-webserver = { path="/path/to/dagster/python_modules/dagster-webserver", editable=true } dagster-pipes = { path="/path/to/dagster/python_modules/dagster-pipes", editable=true } dagster-components = { path = "/path/to/dagster/python_modules/libraries/dagster-components", editable=true } ``` We may also wish a path to be passable on the command line, or for this to be somehow hidden from users since this is basically a dev tool. ## How I Tested These Changes New unit test. Manual test generating a code location and loading it with `dagster dev`.
- Loading branch information
Showing
5 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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