|
43 | 43 | ]
|
44 | 44 |
|
45 | 45 |
|
46 |
| -def _greater_or_equal_than_36(version_string): |
| 46 | +def _greater_or_equal_than_37(version_string): |
47 | 47 | tokens = version_string.split(".")
|
48 | 48 | for i, token in enumerate(tokens):
|
49 | 49 | try:
|
50 | 50 | tokens[i] = int(token)
|
51 | 51 | except ValueError:
|
52 | 52 | pass
|
53 |
| -return tokens >= [3, 6] |
| 53 | +return tokens >= [3, 7] |
54 | 54 |
|
55 | 55 |
|
56 | 56 | @nox.session(python=DEFAULT_PYTHON_VERSION)
|
@@ -122,9 +122,9 @@ def default(session, install_grpc=True):
|
122 | 122 | ),
|
123 | 123 | ]
|
124 | 124 |
|
125 |
| -# Inject AsyncIO content and proto-plus, if version >= 3.6. |
| 125 | +# Inject AsyncIO content and proto-plus, if version >= 3.7. |
126 | 126 | # proto-plus is needed for a field mask test in test_protobuf_helpers.py
|
127 |
| -if _greater_or_equal_than_36(session.python): |
| 127 | +if _greater_or_equal_than_37(session.python): |
128 | 128 | session.install("asyncmock", "pytest-asyncio", "proto-plus")
|
129 | 129 |
|
130 | 130 | # Having positional arguments means the user wants to run specific tests.
|
@@ -136,28 +136,27 @@ def default(session, install_grpc=True):
|
136 | 136 | session.run(*pytest_args)
|
137 | 137 |
|
138 | 138 |
|
139 |
| -@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10"]) |
| 139 | +@nox.session(python=["3.7", "3.8", "3.9", "3.10"]) |
140 | 140 | def unit(session):
|
141 | 141 | """Run the unit test suite."""
|
142 | 142 | default(session)
|
143 | 143 |
|
144 | 144 |
|
145 |
| -@nox.session(python=["3.6", "3.10"]) |
| 145 | +@nox.session(python=["3.8", "3.10"]) |
146 | 146 | def unit_wo_grpc(session):
|
147 | 147 | """Run the unit test suite w/o grpcio installed"""
|
148 | 148 | default(session, install_grpc=False)
|
149 | 149 |
|
150 | 150 |
|
151 |
| -@nox.session(python="3.6") |
| 151 | +@nox.session(python="3.8") |
152 | 152 | def lint_setup_py(session):
|
153 | 153 | """Verify that setup.py is valid (including RST check)."""
|
154 | 154 |
|
155 | 155 | session.install("docutils", "Pygments")
|
156 | 156 | session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
|
157 | 157 |
|
158 | 158 |
|
159 |
| -# No 3.7 because pytype supports up to 3.6 only. |
160 |
| -@nox.session(python="3.6") |
| 159 | +@nox.session(python="3.8") |
161 | 160 | def pytype(session):
|
162 | 161 | """Run type-checking."""
|
163 | 162 | session.install(".[grpc]", "pytype >= 2019.3.21")
|
@@ -178,7 +177,7 @@ def mypy(session):
|
178 | 177 | session.run("mypy", "google", "tests")
|
179 | 178 |
|
180 | 179 |
|
181 |
| -@nox.session(python="3.6") |
| 180 | +@nox.session(python="3.8") |
182 | 181 | def cover(session):
|
183 | 182 | """Run the final coverage report.
|
184 | 183 |
|
|
0 commit comments