-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --use-editable-components-only flag #28140
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
aa7232d
to
827338c
Compare
30ea1c2
to
7c2a88f
Compare
827338c
to
8c39154
Compare
7c2a88f
to
9b2617a
Compare
["--disable-cache"], | ||
is_flag=True, | ||
default=DgCliConfig.disable_cache, | ||
help="Disable the cache..", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The help text has a double period (..
) which appears to be a typo. Should be Disable the cache.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
["--disable-cache"], | ||
is_flag=True, | ||
default=DgCliConfig.disable_cache, | ||
help="Disable the cache..", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The help text has a double period (..
) which appears to be a typo. Should be "Disable the cache."
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
8c39154
to
071ea34
Compare
9b2617a
to
5451c5c
Compare
5451c5c
to
6207228
Compare
c157fef
to
2a66b9c
Compare
# the dependencies themselves differently depending on whether we are using editable dagster or | ||
# not. This is because `tool.uv.sources` only seems to apply to direct dependencies of the package, | ||
# so any 2+-order Dagster dependency of our package needs to be listed as a direct dependency in the | ||
# editable case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to the relevant github issue in the uv repo in the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
astral-sh/uv#9446 because i had it handy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. I'd like @gibsondan to take a pass at this before commit as he should be aware of all these venv shenanigans
6207228
to
b60e419
Compare
2a66b9c
to
f676ec0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok so it seems like the underlying issue here is that dagster-components is not pinned to dagster like all our other libraries. Is the plan to eventually change that once components dev is more stable?
), | ||
), | ||
click.Option( | ||
["--use-editable-components-only"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm finding the name here pretty confusing in a way that --use-editable-dagster was not, because it makes me think that this is referring to the components themselves, rather than dagster-components
the python package.
Maybe this is not the end of the world for a temporary hidden flag that is really only for development, but just flagging. you could consider going even more verbose and make this is like --use-editable-components-package-only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I agree it's not clear. Will update to --use-editable-components-package-only
.
# the dependencies themselves differently depending on whether we are using editable dagster or | ||
# not. This is because `tool.uv.sources` only seems to apply to direct dependencies of the package, | ||
# so any 2+-order Dagster dependency of our package needs to be listed as a direct dependency in the | ||
# editable case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
astral-sh/uv#9446 because i had it handy
Yes IIRC the plan is to actually just merge the entire |
f676ec0
to
fa4fe9a
Compare
fa4fe9a
to
10ea579
Compare
Summary & Motivation
Adds a
--use-editable-components-only
flag to complement--use-editable-dagster
.--use-editable-components-only
is an option to commands that scaffold projectsdg init
anddg project scaffold
. It will bring indagster_components
as an editable install but notdagster
and other libs. This simulates the environment into which dg/components is released, so long as it is on a separate release schedule from Dagster core.--use-editable-dagster
to instead use--use-editable-components-only
.How I Tested These Changes
New unit tests.