Skip to content
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 shorthand version for default file_dep and targets #7

Open
patrikturi opened this issue Sep 18, 2019 · 1 comment
Open

Add shorthand version for default file_dep and targets #7

patrikturi opened this issue Sep 18, 2019 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@patrikturi
Copy link

I think 90% of the cases you we will use:

yield {
    'file_dep': [data.src_path],
    'targets': [data.dst_path],
    ...
}
So why not add a version that fills these automatically?
@smarie
Copy link
Owner

smarie commented Sep 19, 2019

Although I agree with you, I do not see how we could propose something in this library to fulfill this need. Indeed this library has absolutely no link with doit (apart from the example in the doc). So we would need to create some doit-specific helper then. That can be done. But then, which form would that helper take ? A decorator to be used in the task generator ? Something else ?
If we do that we will have to support all kind of changes within doit api - that can be done but requires more support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants