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

feat: Introduce compatibility with native namespace packages #117

Merged
merged 4 commits into from
Aug 14, 2024

Conversation

parthea
Copy link
Contributor

@parthea parthea commented Dec 12, 2023

@parthea parthea requested a review from a team as a code owner December 12, 2023 17:03
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Dec 12, 2023
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: xs Pull request size is extra small. labels Dec 13, 2023
@parthea parthea changed the title build: Add python 3.12 tests feat: Introduce compatibility with native namespace packages Dec 13, 2023
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# 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

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

Copy link
Contributor Author

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):

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?

Copy link
Contributor Author

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

@parthea parthea merged commit 9007e8a into main Aug 14, 2024
13 checks passed
@parthea parthea deleted the parthea-patch-1 branch August 14, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants