Skip to content

Commit 02c70f0

Browse files
chore(deps): bump urllib3 from 1.26.12 to 1.26.17 in /.kokoro (#1140)
* chore: [autoapprove] Update `black` and `isort` to latest versions Source-Link: googleapis/synthtool@0c7b033 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547 * update black in noxfile.py * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 6b5e2d3 commit 02c70f0

File tree

17 files changed

+11
-29
lines changed

17 files changed

+11
-29
lines changed

packages/google-cloud-storage/.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:fac304457974bb530cc5396abd4ab25d26a469cd3bc97cbfb18c8d4324c584eb
17-
# created: 2023-10-02T21:31:03.517640371Z
16+
digest: sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547
17+
# created: 2023-10-09T14:06:13.397766266Z

packages/google-cloud-storage/.kokoro/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,9 @@ typing-extensions==4.4.0 \
467467
--hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \
468468
--hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e
469469
# via -r requirements.in
470-
urllib3==1.26.12 \
471-
--hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \
472-
--hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997
470+
urllib3==1.26.17 \
471+
--hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \
472+
--hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b
473473
# via
474474
# requests
475475
# twine

packages/google-cloud-storage/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: end-of-file-fixer
2323
- id: check-yaml
2424
- repo: https://github.com/psf/black
25-
rev: 22.3.0
25+
rev: 23.7.0
2626
hooks:
2727
- id: black
2828
- repo: https://github.com/pycqa/flake8

packages/google-cloud-storage/google/cloud/storage/_signing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ def get_expiration_seconds_v4(expiration):
147147
seconds = expiration
148148

149149
if isinstance(expiration, datetime.datetime):
150-
151150
if expiration.tzinfo is None:
152151
expiration = expiration.replace(tzinfo=_helpers.UTC)
153152

@@ -646,7 +645,6 @@ def get_v4_now_dtstamps():
646645

647646

648647
def _sign_message(message, access_token, service_account_email):
649-
650648
"""Signs a message.
651649
652650
:type message: str

packages/google-cloud-storage/google/cloud/storage/blob.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,6 @@ def _do_download(
984984
response = download.consume(transport, timeout=timeout)
985985
self._extract_headers_from_download(response)
986986
else:
987-
988987
if checksum:
989988
msg = _CHUNKED_DOWNLOAD_CHECKSUM_MESSAGE.format(checksum)
990989
_logger.info(msg)

packages/google-cloud-storage/google/cloud/storage/bucket.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,15 +474,13 @@ def __init__(
474474
bucket_policy_only_locked_time=_default,
475475
):
476476
if bucket_policy_only_enabled is not _default:
477-
478477
if uniform_bucket_level_access_enabled is not _default:
479478
raise ValueError(_UBLA_BPO_ENABLED_MESSAGE)
480479

481480
warnings.warn(_BPO_ENABLED_MESSAGE, DeprecationWarning, stacklevel=2)
482481
uniform_bucket_level_access_enabled = bucket_policy_only_enabled
483482

484483
if bucket_policy_only_locked_time is not _default:
485-
486484
if uniform_bucket_level_access_locked_time is not _default:
487485
raise ValueError(_UBLA_BPO_LOCK_TIME_MESSAGE)
488486

packages/google-cloud-storage/google/cloud/storage/transfer_manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,6 @@ def upload_chunks_concurrently(
10291029
futures = []
10301030

10311031
with pool_class(max_workers=max_workers) as executor:
1032-
10331032
for part_number in range(1, num_of_parts + 1):
10341033
start = (part_number - 1) * chunk_size
10351034
end = min(part_number * chunk_size, size)

packages/google-cloud-storage/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import nox
2525

2626

27-
BLACK_VERSION = "black==22.3.0"
27+
BLACK_VERSION = "black==23.7.0"
2828
BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
2929

3030
DEFAULT_PYTHON_VERSION = "3.8"

packages/google-cloud-storage/tests/system/test_blob.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def test_large_file_write_from_stream_w_failed_checksum(
8686
# The # remote API is still exercised.
8787
info = file_data["big"]
8888
with open(info["path"], "rb") as file_obj:
89-
9089
with mock.patch(
9190
"google.resumable_media._helpers.prepare_checksum_digest",
9291
return_value="FFFFFF==",
@@ -527,7 +526,6 @@ def test_blob_direct_write_and_read_into_file(
527526
same_blob.reload() # Initialize properties.
528527

529528
with tempfile.NamedTemporaryFile() as temp_f:
530-
531529
with open(temp_f.name, "wb") as file_obj:
532530
same_blob.download_to_file(file_obj)
533531

@@ -553,7 +551,6 @@ def test_blob_download_w_generation_match(
553551
same_blob.reload() # Initialize properties.
554552

555553
with tempfile.NamedTemporaryFile() as temp_f:
556-
557554
with open(temp_f.name, "wb") as file_obj:
558555
with pytest.raises(exceptions.PreconditionFailed):
559556
same_blob.download_to_file(

packages/google-cloud-storage/tests/system/test_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def test_download_blob_to_file_w_uri(
130130
blobs_to_delete.append(blob)
131131

132132
with tempfile.NamedTemporaryFile() as temp_f:
133-
134133
with open(temp_f.name, "wb") as file_obj:
135134
storage_client.download_blob_to_file(
136135
"gs://" + shared_bucket.name + "/MyBuffer", file_obj

0 commit comments

Comments
 (0)