Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 28200c7

Browse files
committed
build: update constraints file to test latest major versions
1 parent 0ebaf4b commit 28200c7

8 files changed

Lines changed: 86 additions & 43 deletions

File tree

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
# -*- coding: utf-8 -*-
2-
{% block constraints %}
3-
{% include "testing/_default_constraints.j2" %}
4-
{% endblock %}
1+
{% from '_pypi_packages.j2' import pypi_packages %}
2+
# This constraints file is used to check that the latest
3+
# major versions of dependencies are supported in setup.py.
4+
# List all library dependencies and extras in this file.
5+
# Require the latest major version be installed for each dependency.
6+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
7+
# Then this file should have google-cloud-foo>=1
8+
google-api-core>=2
9+
google-auth>=2
10+
proto-plus>=1
11+
protobuf>=6
12+
{% for package_tuple, package_info in pypi_packages.items() %}
13+
{# Quick check to make sure the package is different from this setup.py #}
14+
{% if api.naming.warehouse_package_name != package_info.package_name %}
15+
{% if api.requires_package(package_tuple) %}
16+
{{ package_info.package_name }}>={{ (package_info.upper_bound.split(".")[0] | int) - 1 }}
17+
{% endif %}
18+
{% endif %}
19+
{% endfor %}
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# -*- coding: utf-8 -*-
2-
# This constraints file is required for unit tests.
1+
# This constraints file is used to check that the latest
2+
# major versions of dependencies are supported in setup.py.
33
# List all library dependencies and extras in this file.
4-
google-api-core
5-
proto-plus
6-
protobuf
7-
google-cloud-access-context-manager
8-
google-cloud-os-config
9-
grpc-google-iam-v1
4+
# Require the latest major version be installed for each dependency.
5+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
6+
# Then this file should have google-cloud-foo>=1
7+
google-api-core>=2
8+
google-auth>=2
9+
proto-plus>=1
10+
protobuf>=6
11+
google-cloud-access-context-manager>=0
12+
google-cloud-os-config>=1
13+
grpc-google-iam-v1>=0
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# -*- coding: utf-8 -*-
2-
# This constraints file is required for unit tests.
1+
# This constraints file is used to check that the latest
2+
# major versions of dependencies are supported in setup.py.
33
# List all library dependencies and extras in this file.
4-
google-api-core
5-
proto-plus
6-
protobuf
4+
# Require the latest major version be installed for each dependency.
5+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
6+
# Then this file should have google-cloud-foo>=1
7+
google-api-core>=2
8+
google-auth>=2
9+
proto-plus>=1
10+
protobuf>=6
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
# -*- coding: utf-8 -*-
2-
# This constraints file is required for unit tests.
1+
# This constraints file is used to check that the latest
2+
# major versions of dependencies are supported in setup.py.
33
# List all library dependencies and extras in this file.
4-
google-api-core
5-
proto-plus
6-
protobuf
7-
grpc-google-iam-v1
4+
# Require the latest major version be installed for each dependency.
5+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
6+
# Then this file should have google-cloud-foo>=1
7+
google-api-core>=2
8+
google-auth>=2
9+
proto-plus>=1
10+
protobuf>=6
11+
grpc-google-iam-v1>=0
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# -*- coding: utf-8 -*-
2-
# This constraints file is required for unit tests.
1+
# This constraints file is used to check that the latest
2+
# major versions of dependencies are supported in setup.py.
33
# List all library dependencies and extras in this file.
4-
google-api-core
5-
proto-plus
6-
protobuf
4+
# Require the latest major version be installed for each dependency.
5+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
6+
# Then this file should have google-cloud-foo>=1
7+
google-api-core>=2
8+
google-auth>=2
9+
proto-plus>=1
10+
protobuf>=6
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# -*- coding: utf-8 -*-
2-
# This constraints file is required for unit tests.
1+
# This constraints file is used to check that the latest
2+
# major versions of dependencies are supported in setup.py.
33
# List all library dependencies and extras in this file.
4-
google-api-core
5-
proto-plus
6-
protobuf
4+
# Require the latest major version be installed for each dependency.
5+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
6+
# Then this file should have google-cloud-foo>=1
7+
google-api-core>=2
8+
google-auth>=2
9+
proto-plus>=1
10+
protobuf>=6
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# -*- coding: utf-8 -*-
2-
# This constraints file is required for unit tests.
1+
# This constraints file is used to check that the latest
2+
# major versions of dependencies are supported in setup.py.
33
# List all library dependencies and extras in this file.
4-
google-api-core
5-
proto-plus
6-
protobuf
4+
# Require the latest major version be installed for each dependency.
5+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
6+
# Then this file should have google-cloud-foo>=1
7+
google-api-core>=2
8+
google-auth>=2
9+
proto-plus>=1
10+
protobuf>=6
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# -*- coding: utf-8 -*-
2-
# This constraints file is required for unit tests.
1+
# This constraints file is used to check that the latest
2+
# major versions of dependencies are supported in setup.py.
33
# List all library dependencies and extras in this file.
4-
google-api-core
5-
proto-plus
6-
protobuf
4+
# Require the latest major version be installed for each dependency.
5+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
6+
# Then this file should have google-cloud-foo>=1
7+
google-api-core>=2
8+
google-auth>=2
9+
proto-plus>=1
10+
protobuf>=6

0 commit comments

Comments
 (0)