GeezerVison is showing github.com — fix(deps): update minimum dependency versions to pick up bugfixes (#496) · cojenco/python-storage@c1045f1
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: noxfile.py +15-6Lines changed: 15 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 |
| 19 | 19 | from __future__ import absolute_import | 20 | 20 | import os | | 21 | +import pathlib | 21 | 22 | import shutil | 22 | 23 |
| 23 | 24 | import nox | | 30 | 31 | SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.8"] | 31 | 32 | UNIT_TEST_PYTHON_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9"] | 32 | 33 |
| | 34 | +CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() | | 35 | + | 33 | 36 |
| 34 | 37 | @nox.session(python=DEFAULT_PYTHON_VERSION) | 35 | 38 | def lint(session): | @@ -65,9 +68,12 @@ def lint_setup_py(session): | 65 | 68 |
| 66 | 69 |
| 67 | 70 | def default(session): | | 71 | + constraints_path = str( | | 72 | + CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt" | | 73 | + ) | 68 | 74 | # Install all test dependencies, then install this package in-place. | 69 | | - session.install("mock", "pytest", "pytest-cov") | 70 | | - session.install("-e", ".") | | 75 | + session.install("mock", "pytest", "pytest-cov", "-c", constraints_path) | | 76 | + session.install("-e", ".", "-c", constraints_path) | 71 | 77 |
| 72 | 78 | # Run py.test against the unit tests. | 73 | 79 | session.run( | @@ -93,6 +99,9 @@ def unit(session): | 93 | 99 |
| 94 | 100 | @nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS) | 95 | 101 | def system(session): | | 102 | + constraints_path = str( | | 103 | + CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt" | | 104 | + ) | 96 | 105 | """Run the system test suite.""" | 97 | 106 | system_test_path = os.path.join("tests", "system.py") | 98 | 107 | system_test_folder_path = os.path.join("tests", "system") | @@ -121,15 +130,15 @@ def system(session): | 121 | 130 | # 2021-05-06: defer installing 'google-cloud-*' to after this package, | 122 | 131 | # in order to work around Python 2.7 googolapis-common-protos | 123 | 132 | # issue. | 124 | | - session.install( | 125 | | - "mock", "pytest", | 126 | | - ) | 127 | | - session.install("-e", ".") | | 133 | + session.install("mock", "pytest", "-c", constraints_path) | | 134 | + session.install("-e", ".", "-c", constraints_path) | 128 | 135 | session.install( | 129 | 136 | "google-cloud-testutils", | 130 | 137 | "google-cloud-iam", | 131 | 138 | "google-cloud-pubsub < 2.0.0", | 132 | 139 | "google-cloud-kms < 2.0dev", | | 140 | + "-c", | | 141 | + constraints_path, | 133 | 142 | ) | 134 | 143 |
| 135 | 144 | # Run py.test against the system tests. | |
Collapse file Copy file name to clipboardExpand all lines: setup.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 28 | 28 | # 'Development Status :: 5 - Production/Stable' | 29 | 29 | release_status = "Development Status :: 5 - Production/Stable" | 30 | 30 | dependencies = [ | 31 | | - "google-auth >= 1.11.0, < 2.0dev", | 32 | | - "google-cloud-core >= 1.4.1, < 2.0dev", | | 31 | + "google-auth >= 1.24.0, < 2.0dev", | | 32 | + "google-cloud-core >= 1.6.0, < 2.0dev", | 33 | 33 | "google-resumable-media >= 1.3.0, < 2.0dev", | 34 | 34 | "requests >= 2.18.0, < 3.0.0dev", | 35 | 35 | "googleapis-common-protos < 1.53.0; python_version<'3.0'", | |
Collapse file Copy file name to clipboardExpand all lines: testing/constraints-2.7.txt Collapse file Copy file name to clipboardExpand all lines: testing/constraints-3.6.txt +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | # | 6 | 6 | # e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", | 7 | 7 | # Then this file should have foo==1.14.0 | 8 | | -google-auth==1.11.0 | 9 | | -google-cloud-core==1.4.1 | 10 | | -google-resumable-media==1.0.0 | 11 | | -requests==2.18.0 | | 8 | +google-auth==1.24.0 | | 9 | +google-cloud-core==1.6.0 | | 10 | +google-resumable-media==1.3.0 | | 11 | +requests==2.18.0 |
|