-
Notifications
You must be signed in to change notification settings - Fork 307
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
feat: Introduce compatibility with native namespace packages #1720
Conversation
695affd
to
fbeb2b0
Compare
Adding |
fbeb2b0
to
c9a0753
Compare
336a9dc
to
e69ce81
Compare
e69ce81
to
df642b0
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.
LGTM
google.joinpath("othermod.py").write_text("") | ||
env = dict(os.environ, PYTHONPATH=str(tmp_path)) | ||
cmd = [sys.executable, "-m", "google.othermod"] | ||
subprocess.check_call(cmd, env=env) |
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.
Were you able to run this test with subprocess without specifying to do it in the shell? It wasn't able to find the tmp path without me specifying to run in the shell, which is the small edit I did in the other PR for this
Superseded by #1726 |
Similar to googleapis/google-auth-library-python#1205
Also see https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#native-namespace-packages
Fixes #313 🦕