google-cloud-testutils 1.7.1__tar.gz → 1.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google_cloud_testutils-1.7.1/google_cloud_testutils.egg-info → google_cloud_testutils-1.9.0}/PKG-INFO +3 -4
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0/google_cloud_testutils.egg-info}/PKG-INFO +3 -4
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/requires.txt +1 -1
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/setup.py +2 -3
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/lower_bound_checker/lower_bound_checker.py +1 -1
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/orchestrate.py +2 -2
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/version.py +1 -1
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/tests/unit/resources/bad_package/setup.py +1 -1
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/tests/unit/resources/good_package/setup.py +1 -1
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/tests/unit/test_lower_bound_checker.py +14 -2
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/LICENSE +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/MANIFEST.in +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/README.rst +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/SOURCES.txt +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/dependency_links.txt +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/entry_points.txt +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/not-zip-safe +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/top_level.txt +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/setup.cfg +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/__init__.py +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/imports.py +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/lower_bound_checker/__init__.py +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/prefixer.py +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/py.typed +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/retry.py +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/system.py +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/test_utils/vpcsc_config.py +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/tests/system/README.md +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/tests/unit/test_orchestrate.py +0 -0
- {google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/tests/unit/test_prefixer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-testutils
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
4
4
|
Home-page: https://github.com/googleapis/google-cloud-python/packages/google-cloud-testutils
|
|
5
5
|
Author: Google LLC
|
|
6
6
|
Author-email: googleapis-packages@google.com
|
|
@@ -10,7 +10,6 @@ Classifier: Development Status :: 4 - Beta
|
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -18,9 +17,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.14
|
|
19
18
|
Classifier: Topic :: Internet
|
|
20
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
-
Requires-Python: >=3.
|
|
20
|
+
Requires-Python: >=3.10
|
|
22
21
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: google-auth>=
|
|
22
|
+
Requires-Dist: google-auth>=2.1.0
|
|
24
23
|
Requires-Dist: click>=7.0.0
|
|
25
24
|
Requires-Dist: packaging>=22.0
|
|
26
25
|
Dynamic: author
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-testutils
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
4
4
|
Home-page: https://github.com/googleapis/google-cloud-python/packages/google-cloud-testutils
|
|
5
5
|
Author: Google LLC
|
|
6
6
|
Author-email: googleapis-packages@google.com
|
|
@@ -10,7 +10,6 @@ Classifier: Development Status :: 4 - Beta
|
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -18,9 +17,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.14
|
|
19
18
|
Classifier: Topic :: Internet
|
|
20
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
-
Requires-Python: >=3.
|
|
20
|
+
Requires-Python: >=3.10
|
|
22
21
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: google-auth>=
|
|
22
|
+
Requires-Dist: google-auth>=2.1.0
|
|
24
23
|
Requires-Dist: click>=7.0.0
|
|
25
24
|
Requires-Dist: packaging>=22.0
|
|
26
25
|
Dynamic: author
|
|
@@ -55,17 +55,16 @@ setuptools.setup(
|
|
|
55
55
|
platforms="Posix; MacOS X; Windows",
|
|
56
56
|
include_package_data=True,
|
|
57
57
|
install_requires=(
|
|
58
|
-
"google-auth >=
|
|
58
|
+
"google-auth >= 2.1.0",
|
|
59
59
|
"click>=7.0.0",
|
|
60
60
|
"packaging>=22.0",
|
|
61
61
|
),
|
|
62
|
-
python_requires=">=3.
|
|
62
|
+
python_requires=">=3.10",
|
|
63
63
|
classifiers=[
|
|
64
64
|
"Development Status :: 4 - Beta",
|
|
65
65
|
"Intended Audience :: Developers",
|
|
66
66
|
"Operating System :: OS Independent",
|
|
67
67
|
"Programming Language :: Python :: 3",
|
|
68
|
-
"Programming Language :: Python :: 3.9",
|
|
69
68
|
"Programming Language :: Python :: 3.10",
|
|
70
69
|
"Programming Language :: Python :: 3.11",
|
|
71
70
|
"Programming Language :: Python :: 3.12",
|
|
@@ -121,7 +121,7 @@ def _lower_bound(requirement: Requirement) -> str:
|
|
|
121
121
|
Returns:
|
|
122
122
|
str: The lower bound for the requirement.
|
|
123
123
|
"""
|
|
124
|
-
spec_set =
|
|
124
|
+
spec_set = [s for s in requirement.specifier if s.operator != "!="]
|
|
125
125
|
|
|
126
126
|
# sort by operator: <, then >=
|
|
127
127
|
spec_set.sort(key=lambda x: x.operator)
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
|
-
|
|
14
|
+
from __future__ import annotations
|
|
15
15
|
import itertools
|
|
16
16
|
import math
|
|
17
17
|
import queue
|
|
@@ -242,7 +242,7 @@ class _Conductor:
|
|
|
242
242
|
self._go.put(None)
|
|
243
243
|
|
|
244
244
|
|
|
245
|
-
_SYNCPOINTS = {}
|
|
245
|
+
_SYNCPOINTS: dict[str, dict[str, set[int]]] = {}
|
|
246
246
|
"""Dict[str, Dict[str, Set[int]]]: Dict mapping source fileneme to a dict mapping
|
|
247
247
|
syncpoint name to set of line numbers where syncpoints with that name occur in the
|
|
248
248
|
source file.
|
{google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/tests/unit/test_lower_bound_checker.py
RENAMED
|
@@ -170,7 +170,7 @@ def test_update_constraints_with_setup_py_missing_lower_bounds():
|
|
|
170
170
|
assert "setup.py is missing explicit lower bounds" in result.output
|
|
171
171
|
|
|
172
172
|
invalid_pkg_list = parse_error_msg(result.output)
|
|
173
|
-
assert set(invalid_pkg_list) == {"requests", "
|
|
173
|
+
assert set(invalid_pkg_list) == {"requests", "wheel"}
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
def test_check():
|
|
@@ -311,4 +311,16 @@ def test_check_with_setup_py_missing_lower_bounds():
|
|
|
311
311
|
assert result.exit_code == 2
|
|
312
312
|
|
|
313
313
|
invalid_pkg_list = parse_error_msg(result.output)
|
|
314
|
-
assert set(invalid_pkg_list) == {"requests", "
|
|
314
|
+
assert set(invalid_pkg_list) == {"requests", "wheel"}
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
def test_lower_bound_with_exclusion():
|
|
318
|
+
from packaging.requirements import Requirement
|
|
319
|
+
|
|
320
|
+
req = Requirement("google-auth>=1.25.0, !=2.24.0")
|
|
321
|
+
assert lower_bound_checker._lower_bound(req) == "1.25.0"
|
|
322
|
+
|
|
323
|
+
# Multiple exclusions
|
|
324
|
+
req_multiple = Requirement("google-auth>=1.25.0, !=2.24.0, !=2.25.0")
|
|
325
|
+
assert lower_bound_checker._lower_bound(req_multiple) == "1.25.0"
|
|
326
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_cloud_testutils-1.7.1 → google_cloud_testutils-1.9.0}/tests/unit/test_orchestrate.py
RENAMED
|
File without changes
|
|
File without changes
|