From 8be5421576ea99a4e79c4749d698079a9e46eba2 Mon Sep 17 00:00:00 2001 From: "sean.glynn" Date: Tue, 20 Sep 2022 20:57:22 +0100 Subject: [PATCH] Update deps --- setup.py | 6 +++--- run_bq_retry.py => tests/run_bq_retry.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename run_bq_retry.py => tests/run_bq_retry.py (94%) diff --git a/setup.py b/setup.py index 4229c69..81a0960 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ long_description = f.read() setup(name="pipelinewise-target-bigquery", - version="1.3.1", + version="1.5.1", description="Singer.io target for loading data to BigQuery - PipelineWise compatible", long_description=long_description, long_description_content_type='text/markdown', @@ -19,8 +19,8 @@ py_modules=["target_bigquery"], install_requires=[ 'pipelinewise-singer-python>=1,<3', - 'google-cloud-bigquery>=2.20.0,<2.35.0', - 'fastavro>=0.22.8,<=1.4.9' + 'google-cloud-bigquery>=2.20.0,<=3.3.2', + 'fastavro>=0.22.8,<=1.6.1' ], extras_require={ "test": [ diff --git a/run_bq_retry.py b/tests/run_bq_retry.py similarity index 94% rename from run_bq_retry.py rename to tests/run_bq_retry.py index ac51a55..3502edc 100644 --- a/run_bq_retry.py +++ b/tests/run_bq_retry.py @@ -8,9 +8,9 @@ logging.getLogger().setLevel(logging.DEBUG) -## 1. Retry at the Google API level (Deadline = 30 seconds) +## 1. Retry at the Google API level (Deadline = 120 seconds) # NOTE: We can isolate the exception types at a later point - Just use `Exception` for now -@Retry(predicate=if_exception_type(Exception), deadline=30) +@Retry(predicate=if_exception_type(Exception), deadline=120) def query(client, query, params=[]) -> bigquery.job.query.QueryJob: def to_query_parameter(value): if isinstance(value, int):