Skip to content

Add missing imports attributes to py_library targets#625

Open
linzhp wants to merge 3 commits into
mvukov:mainfrom
linzhp:imports
Open

Add missing imports attributes to py_library targets#625
linzhp wants to merge 3 commits into
mvukov:mainfrom
linzhp:imports

Conversation

@linzhp
Copy link
Copy Markdown

@linzhp linzhp commented Apr 29, 2026

Add missing imports attributes to py_library targets so aspect_rules_py's
pth generator adds the correct repo roots to sys.path. rules_python's
py_test launcher populates PYTHONPATH from all transitive sources, making
these importable even without explicit imports; aspect_rules_py's venv-based
py_test only emits .pth entries for targets with an explicit imports
attribute, so targets without one are invisible to the venv runner.

@mvukov
Copy link
Copy Markdown
Owner

mvukov commented May 17, 2026

BTW, please document the rationale for those extra imports at all places.

@linzhp
Copy link
Copy Markdown
Author

linzhp commented May 18, 2026

done

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

Successfully merging this pull request may close these issues.

2 participants