-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Introduce compatibility with native namespace packages #117
Conversation
bca1621 to
6255550
Compare
| # You may obtain a copy of the License at | ||
| # | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # http://www.apache.org/licenses/LICENSE-2.0 |
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.
nit: both http and https work
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.
http matches the license here which could be why we use that in templates such as https://github.com/googleapis/gapic-generator-python/blob/main/gapic/templates/_license.j2
| import sys | ||
|
|
||
|
|
||
| def test_namespace_package_compat(tmp_path): |
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.
Q: how does the testing infra know that tmp path is a pathlib.Path?
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.
I added a comment in 433522c with more information about the tmp_path fixture of pytest
Similar to googleapis/google-auth-library-python#1205
Also see https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#native-namespace-packages