Skip to content

Commit 6b43f1e

Browse files
chore(python): update release script dependencies (#472)
* chore(python): drop flake8-import-order in samples noxfile Source-Link: googleapis/synthtool@6ed3a83 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3abfa0f1886adaf0b83f07cb117b24a639ea1cb9cffe56d43280b977033563eb * drop flake8-import-order * lint * use python 3.9 for docs * resolve mypy error * update python version for lint * fix lint * fix lint Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent d4272d2 commit 6b43f1e

File tree

6 files changed

+48
-43
lines changed

6 files changed

+48
-43
lines changed

.github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v4
1414
with:
15-
python-version: "3.10"
15+
python-version: "3.9"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Python
2929
uses: actions/setup-python@v4
3030
with:
31-
python-version: "3.10"
31+
python-version: "3.9"
3232
- name: Install nox
3333
run: |
3434
python -m pip install --upgrade setuptools pip wheel

.kokoro/docker/docs/Dockerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ RUN apt-get update \
6060
&& rm -rf /var/lib/apt/lists/* \
6161
&& rm -f /var/cache/apt/archives/*.deb
6262

63-
###################### Install python 3.8.11
63+
###################### Install python 3.9.13
6464

65-
# Download python 3.8.11
66-
RUN wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tgz
65+
# Download python 3.9.13
66+
RUN wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz
6767

6868
# Extract files
69-
RUN tar -xvf Python-3.8.11.tgz
69+
RUN tar -xvf Python-3.9.13.tgz
7070

71-
# Install python 3.8.11
72-
RUN ./Python-3.8.11/configure --enable-optimizations
71+
# Install python 3.9.13
72+
RUN ./Python-3.9.13/configure --enable-optimizations
7373
RUN make altinstall
7474

7575
###################### Install pip

.kokoro/requirements.in

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ typing-extensions
55
twine
66
wheel
77
setuptools
8-
nox
8+
nox
9+
charset-normalizer<3
10+
click<8.1.0

.kokoro/requirements.txt

+32-28
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,14 @@ cffi==1.15.1 \
9393
charset-normalizer==2.1.1 \
9494
--hash=sha256:5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845 \
9595
--hash=sha256:83e9a75d1911279afd89352c68b45348559d1fc0506b054b346651b5e7fee29f
96-
# via requests
96+
# via
97+
# -r requirements.in
98+
# requests
9799
click==8.0.4 \
98100
--hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \
99101
--hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb
100102
# via
103+
# -r requirements.in
101104
# gcp-docuploader
102105
# gcp-releasetool
103106
colorlog==6.7.0 \
@@ -152,19 +155,19 @@ gcp-docuploader==0.6.3 \
152155
--hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \
153156
--hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b
154157
# via -r requirements.in
155-
gcp-releasetool==1.8.7 \
156-
--hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \
157-
--hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d
158+
gcp-releasetool==1.10.0 \
159+
--hash=sha256:72a38ca91b59c24f7e699e9227c90cbe4dd71b789383cb0164b088abae294c83 \
160+
--hash=sha256:8c7c99320208383d4bb2b808c6880eb7a81424afe7cdba3c8d84b25f4f0e097d
158161
# via -r requirements.in
159162
google-api-core==2.8.2 \
160163
--hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \
161164
--hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50
162165
# via
163166
# google-cloud-core
164167
# google-cloud-storage
165-
google-auth==2.11.0 \
166-
--hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \
167-
--hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb
168+
google-auth==2.14.1 \
169+
--hash=sha256:ccaa901f31ad5cbb562615eb8b664b3dd0bf5404a67618e642307f00613eda4d \
170+
--hash=sha256:f5d8701633bebc12e0deea4df8abd8aff31c28b355360597f7f2ee60f2e4d016
168171
# via
169172
# gcp-releasetool
170173
# google-api-core
@@ -174,9 +177,9 @@ google-cloud-core==2.3.2 \
174177
--hash=sha256:8417acf6466be2fa85123441696c4badda48db314c607cf1e5d543fa8bdc22fe \
175178
--hash=sha256:b9529ee7047fd8d4bf4a2182de619154240df17fbe60ead399078c1ae152af9a
176179
# via google-cloud-storage
177-
google-cloud-storage==2.5.0 \
178-
--hash=sha256:19a26c66c317ce542cea0830b7e787e8dac2588b6bfa4d3fd3b871ba16305ab0 \
179-
--hash=sha256:382f34b91de2212e3c2e7b40ec079d27ee2e3dbbae99b75b1bcd8c63063ce235
180+
google-cloud-storage==2.6.0 \
181+
--hash=sha256:104ca28ae61243b637f2f01455cc8a05e8f15a2a18ced96cb587241cdd3820f5 \
182+
--hash=sha256:4ad0415ff61abdd8bb2ae81c1f8f7ec7d91a1011613f2db87c614c550f97bfe9
180183
# via gcp-docuploader
181184
google-crc32c==1.3.0 \
182185
--hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \
@@ -227,9 +230,9 @@ google-resumable-media==2.3.3 \
227230
--hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \
228231
--hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5
229232
# via google-cloud-storage
230-
googleapis-common-protos==1.56.4 \
231-
--hash=sha256:8eb2cbc91b69feaf23e32452a7ae60e791e09967d81d4fcc7fc388182d1bd394 \
232-
--hash=sha256:c25873c47279387cfdcbdafa36149887901d36202cb645a0e4f29686bf6e4417
233+
googleapis-common-protos==1.57.0 \
234+
--hash=sha256:27a849d6205838fb6cc3c1c21cb9800707a661bb21c6ce7fb13e99eb1f8a0c46 \
235+
--hash=sha256:a9f4a1d7f6d9809657b7f1316a1aa527f6664891531bcfcc13b6696e685f443c
233236
# via google-api-core
234237
idna==3.3 \
235238
--hash=sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff \
@@ -240,6 +243,7 @@ importlib-metadata==4.12.0 \
240243
--hash=sha256:7401a975809ea1fdc658c3aa4f78cc2195a0e019c5cbc4c06122884e9ae80c23
241244
# via
242245
# -r requirements.in
246+
# keyring
243247
# twine
244248
jaraco-classes==3.2.2 \
245249
--hash=sha256:6745f113b0b588239ceb49532aa09c3ebb947433ce311ef2f8e3ad64ebb74594 \
@@ -255,9 +259,9 @@ jinja2==3.1.2 \
255259
--hash=sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852 \
256260
--hash=sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61
257261
# via gcp-releasetool
258-
keyring==23.9.0 \
259-
--hash=sha256:4c32a31174faaee48f43a7e2c7e9c3216ec5e95acf22a2bebfb4a1d05056ee44 \
260-
--hash=sha256:98f060ec95ada2ab910c195a2d4317be6ef87936a766b239c46aa3c7aac4f0db
262+
keyring==23.11.0 \
263+
--hash=sha256:3dd30011d555f1345dec2c262f0153f2f0ca6bca041fb1dc4588349bb4c0ac1e \
264+
--hash=sha256:ad192263e2cdd5f12875dedc2da13534359a7e760e77f8d04b50968a821c2361
261265
# via
262266
# gcp-releasetool
263267
# twine
@@ -321,9 +325,9 @@ pkginfo==1.8.3 \
321325
--hash=sha256:848865108ec99d4901b2f7e84058b6e7660aae8ae10164e015a6dcf5b242a594 \
322326
--hash=sha256:a84da4318dd86f870a9447a8c98340aa06216bfc6f2b7bdc4b8766984ae1867c
323327
# via twine
324-
platformdirs==2.5.2 \
325-
--hash=sha256:027d8e83a2d7de06bbac4e5ef7e023c02b863d7ea5d079477e722bb41ab25788 \
326-
--hash=sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19
328+
platformdirs==2.5.4 \
329+
--hash=sha256:1006647646d80f16130f052404c6b901e80ee4ed6bef6792e1f238a8969106f7 \
330+
--hash=sha256:af0276409f9a02373d540bf8480021a048711d572745aef4b7842dad245eba10
327331
# via virtualenv
328332
protobuf==3.20.1 \
329333
--hash=sha256:06059eb6953ff01e56a25cd02cca1a9649a75a7e65397b5b9b4e929ed71d10cf \
@@ -448,25 +452,25 @@ urllib3==1.26.12 \
448452
# via
449453
# requests
450454
# twine
451-
virtualenv==20.16.4 \
452-
--hash=sha256:014f766e4134d0008dcaa1f95bafa0fb0f575795d07cae50b1bee514185d6782 \
453-
--hash=sha256:035ed57acce4ac35c82c9d8802202b0e71adac011a511ff650cbcf9635006a22
455+
virtualenv==20.16.7 \
456+
--hash=sha256:8691e3ff9387f743e00f6bb20f70121f5e4f596cae754531f2b3b3a1b1ac696e \
457+
--hash=sha256:efd66b00386fdb7dbe4822d172303f40cd05e50e01740b19ea42425cbe653e29
454458
# via nox
455459
webencodings==0.5.1 \
456460
--hash=sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78 \
457461
--hash=sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923
458462
# via bleach
459-
wheel==0.37.1 \
460-
--hash=sha256:4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a \
461-
--hash=sha256:e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4
463+
wheel==0.38.4 \
464+
--hash=sha256:965f5259b566725405b05e7cf774052044b1ed30119b5d586b2703aafe8719ac \
465+
--hash=sha256:b60533f3f5d530e971d6737ca6d58681ee434818fab630c83a734bb10c083ce8
462466
# via -r requirements.in
463467
zipp==3.8.1 \
464468
--hash=sha256:05b45f1ee8f807d0cc928485ca40a07cb491cf092ff587c0df9cb1fd154848d2 \
465469
--hash=sha256:47c40d7fe183a6f21403a199b3e4192cca5774656965b0a4988ad2f8feb5f009
466470
# via importlib-metadata
467471

468472
# The following packages are considered to be unsafe in a requirements file:
469-
setuptools==65.2.0 \
470-
--hash=sha256:7f4bc85450898a09f76ebf28b72fa25bc7111f6c7d665d514a60bba9c75ef2a9 \
471-
--hash=sha256:a3ca5857c89f82f5c9410e8508cb32f4872a3bafd4aa7ae122a24ca33bccc750
473+
setuptools==65.5.1 \
474+
--hash=sha256:d0b9a8433464d5800cbe05094acf5c6d52a91bfac9b52bcfc4d41382be5d5d31 \
475+
--hash=sha256:e197a19aa8ec9722928f2206f8de752def0e4c9fc6953527360d1c36d94ddb2f
472476
# via -r requirements.in

google/api_core/operations_v1/transports/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
# limitations under the License.
1515
#
1616
from collections import OrderedDict
17-
from typing import Dict, Type
1817

1918
from .base import OperationsTransport
2019
from .rest import OperationsRestTransport
2120

2221

2322
# Compile a registry of transports.
24-
_transport_registry = OrderedDict() # type: Dict[str, Type[OperationsTransport]]
23+
_transport_registry = OrderedDict()
2524
_transport_registry["rest"] = OperationsRestTransport
2625

2726
__all__ = (

noxfile.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def lint(session):
6161
Returns a failure if the linters find linting errors or sufficiently
6262
serious code quality issues.
6363
"""
64-
session.install("flake8", "flake8-import-order", BLACK_VERSION)
64+
session.install("flake8", BLACK_VERSION)
6565
session.install(".")
6666
session.run(
6767
"black",
@@ -171,7 +171,7 @@ def unit_wo_grpc(session):
171171
default(session, install_grpc=False)
172172

173173

174-
@nox.session(python="3.8")
174+
@nox.session(python=DEFAULT_PYTHON_VERSION)
175175
def lint_setup_py(session):
176176
"""Verify that setup.py is valid (including RST check)."""
177177

@@ -212,7 +212,7 @@ def cover(session):
212212
session.run("coverage", "erase")
213213

214214

215-
@nox.session(python=DEFAULT_PYTHON_VERSION)
215+
@nox.session(python="3.9")
216216
def docs(session):
217217
"""Build the docs for this library."""
218218

@@ -234,7 +234,7 @@ def docs(session):
234234
)
235235

236236

237-
@nox.session(python="3.8")
237+
@nox.session(python="3.9")
238238
def docfx(session):
239239
"""Build the docfx yaml files for this library."""
240240

0 commit comments

Comments
 (0)