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

Relative import trying to add pip dependency #17

Open
Globegitter opened this issue Aug 9, 2018 · 0 comments
Open

Relative import trying to add pip dependency #17

Globegitter opened this issue Aug 9, 2018 · 0 comments

Comments

@Globegitter
Copy link

Hi, thanks for this great project, trying to use it to migrate one of our old python apps to bazel and we have code like:

from .models import (
 ...
)

pazel then tries to add requirement("models") rather than :models. Is there any way that could be fixed? I tried to add a EXTRA_LOCAL_IMPORT_NAME_TO_DEP like follows:

EXTRA_LOCAL_IMPORT_NAME_TO_DEP = {
    ".models": ":models",
}

but it did not work but also pazel seems to remove this from my rc file also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant