-
Notifications
You must be signed in to change notification settings - Fork 1.7k
tests: add Python 3.15 pre-release testing #17517
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
Merged
+180
−51
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/gapic-generator/gapic/templates/testing/constraints-3.15.txt.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| {% from '_pypi_packages.j2' import pypi_packages %} | ||
| # We use the constraints file for the latest Python version | ||
| # (currently this file) to check that the latest | ||
| # major versions of dependencies are supported in setup.py. | ||
| # List all library dependencies and extras in this file. | ||
| # Require the latest major version be installed for each dependency. | ||
| # e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # Then this file should have google-cloud-foo>=1 | ||
| google-api-core>=2 | ||
| google-auth>=2 | ||
| grpcio>=1 | ||
| proto-plus>=1 | ||
| protobuf>=7 | ||
| {% for package_tuple, package_info in pypi_packages.items() %} | ||
| {# Quick check to make sure `package_info.package_name` is not the package being generated so we don't circularly include this package in its own constraints file. #} | ||
| {% if api.naming.warehouse_package_name != package_info.package_name %} | ||
| {% if api.requires_package(package_tuple) %} | ||
| {{ package_info.package_name }}>={{ (package_info.upper_bound.split(".")[0] | int) - 1 }} | ||
| {% endif %} | ||
| {% endif %} | ||
| {% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/gapic-generator/tests/integration/goldens/asset/testing/constraints-3.15.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # We use the constraints file for the latest Python version | ||
| # (currently this file) to check that the latest | ||
| # major versions of dependencies are supported in setup.py. | ||
| # List all library dependencies and extras in this file. | ||
| # Require the latest major version be installed for each dependency. | ||
| # e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # Then this file should have google-cloud-foo>=1 | ||
| google-api-core>=2 | ||
| google-auth>=2 | ||
| grpcio>=1 | ||
| proto-plus>=1 | ||
| protobuf>=7 | ||
| google-cloud-access-context-manager>=0 | ||
| google-cloud-os-config>=1 | ||
| grpc-google-iam-v1>=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/gapic-generator/tests/integration/goldens/credentials/testing/constraints-3.15.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # We use the constraints file for the latest Python version | ||
| # (currently this file) to check that the latest | ||
| # major versions of dependencies are supported in setup.py. | ||
| # List all library dependencies and extras in this file. | ||
| # Require the latest major version be installed for each dependency. | ||
| # e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # Then this file should have google-cloud-foo>=1 | ||
| google-api-core>=2 | ||
| google-auth>=2 | ||
| grpcio>=1 | ||
| proto-plus>=1 | ||
| protobuf>=7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/gapic-generator/tests/integration/goldens/eventarc/testing/constraints-3.15.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # We use the constraints file for the latest Python version | ||
| # (currently this file) to check that the latest | ||
| # major versions of dependencies are supported in setup.py. | ||
| # List all library dependencies and extras in this file. | ||
| # Require the latest major version be installed for each dependency. | ||
| # e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # Then this file should have google-cloud-foo>=1 | ||
| google-api-core>=2 | ||
| google-auth>=2 | ||
| grpcio>=1 | ||
| proto-plus>=1 | ||
| protobuf>=7 | ||
| grpc-google-iam-v1>=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/gapic-generator/tests/integration/goldens/logging/testing/constraints-3.15.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # We use the constraints file for the latest Python version | ||
| # (currently this file) to check that the latest | ||
| # major versions of dependencies are supported in setup.py. | ||
| # List all library dependencies and extras in this file. | ||
| # Require the latest major version be installed for each dependency. | ||
| # e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # Then this file should have google-cloud-foo>=1 | ||
| google-api-core>=2 | ||
| google-auth>=2 | ||
| grpcio>=1 | ||
| proto-plus>=1 | ||
| protobuf>=7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...s/gapic-generator/tests/integration/goldens/logging_internal/testing/constraints-3.15.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # We use the constraints file for the latest Python version | ||
| # (currently this file) to check that the latest | ||
| # major versions of dependencies are supported in setup.py. | ||
| # List all library dependencies and extras in this file. | ||
| # Require the latest major version be installed for each dependency. | ||
| # e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # Then this file should have google-cloud-foo>=1 | ||
| google-api-core>=2 | ||
| google-auth>=2 | ||
| grpcio>=1 | ||
| proto-plus>=1 | ||
| protobuf>=7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/gapic-generator/tests/integration/goldens/redis/testing/constraints-3.15.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # We use the constraints file for the latest Python version | ||
| # (currently this file) to check that the latest | ||
| # major versions of dependencies are supported in setup.py. | ||
| # List all library dependencies and extras in this file. | ||
| # Require the latest major version be installed for each dependency. | ||
| # e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # Then this file should have google-cloud-foo>=1 | ||
| google-api-core>=2 | ||
| google-auth>=2 | ||
| grpcio>=1 | ||
| proto-plus>=1 | ||
| protobuf>=7 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we just remove it from here until we need it? Just so we don't have to change the nox session to use the second last element of the list instead of the last.
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.
We need it here to be able to run tests with Python 3.15. We need to run
unit-3.15to prepare for the formal release.