-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Stating dependencies between scripts/modules #1401
Comments
Hi @andrethrill ! Amazing idea! We could totally support that, by implementing something like Thanks, |
#1214 implemented
Feel free to try it out and let us know what you think 🙂 Created #1830 for that |
I'm sorry, but how exactly does this solve the problem stated above? Topic starter asked for a way to automatically specify python imports dependencies. Could you implement some kind of language specific plugin for that? Thanks. |
I think the workaround for now is to manually compile python endpoint like that:
and to add a |
Hi @anotherbugmaster ! Looks like I've indeed missed something in the original request, but for the issue you've described we have another ticket #1577 . Please take a look and let us know if that is what you mean :) Thanks for the feedback! |
Hello!
I hope the explanation below is clear. Please let me know otherwise.
Say I have a
utils.py
with some awesome helpful classes that I reuse frequently in a certain dvc tracked repo.Say I have:
script1.py
that usesutils.py
and that takesdata0.csv
and processes it todata1.csv
script2.py
that usesutils.py
and that takesdata1.csv
and processes it todata2.csv
script3.py
that usesutils.py
and that takesdata2.csv
and processes it todata3.csv
(In the example above all scripts are part of the same pipeline but it they could be from different pipelines.)
The point that perhaps could be improved is that, as far as I know, for each
data*.csv
I have to add to its dependencies the correspondent script andutils.py
. And of course that this can cascade ifutils.py
depends onutils1.py
which depends onutils2.py
, etc... If that is the case, then I have to remember to, every timeutils.py
is a dependency, to include the othersutils*.py
as dependencies as well.Is there a way in the dvc to say that a
scriptB.py
depends onscriptA.py
so that every timescriptB.py
is a dependency, thenscriptA.py
is also an implicit dependency?Like a variant or an alternative to
dvc run
where the "output" is not a data file but a.py
?Thanks is advance!
The text was updated successfully, but these errors were encountered: