diff --git a/.gitignore b/.gitignore index 2030eb5..885e4ed 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /python-bigquery-datatransfer-3.7.0.tar.gz /python-bigquery-datatransfer-3.7.1.tar.gz /python-bigquery-datatransfer-3.7.3.tar.gz +/python-bigquery-datatransfer-3.10.1.tar.gz diff --git a/python-google-cloud-bigquery-datatransfer.spec b/python-google-cloud-bigquery-datatransfer.spec index b3122d3..df410f2 100644 --- a/python-google-cloud-bigquery-datatransfer.spec +++ b/python-google-cloud-bigquery-datatransfer.spec @@ -1,11 +1,8 @@ -# F35: Do not update past 3.6.1. F35's protobuf is too old. - -# tests are enabled by default %bcond_without tests %global srcname google-cloud-bigquery-datatransfer %global forgeurl https://github.com/googleapis/python-bigquery-datatransfer -Version: 3.7.3 +Version: 3.10.1 %global tag v%{version} %forgemeta @@ -13,7 +10,7 @@ Name: python-%{srcname} Release: %autorelease Summary: Python SDK for Google Cloud BigQuery Data Transfer API -License: ASL 2.0 +License: Apache-2.0 URL: %forgeurl Source0: %forgesource @@ -22,6 +19,8 @@ BuildArch: noarch BuildRequires: python3-devel %if %{with tests} +BuildRequires: python3dist(googleapis-common-protos) +BuildRequires: python3dist(google-cloud-testutils) BuildRequires: python3dist(grpcio-testing) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-asyncio) @@ -39,8 +38,6 @@ Summary: %{summary} %description -n python3-%{srcname} %{_description} -%pyproject_extras_subpkg -n python3-%{srcname} libcst - %prep %forgeautosetup -p1 @@ -68,9 +65,15 @@ grep -rl "^[[:space:]]*import mock" tests | \ # Remove unnecessary scripts. rm -f %{buildroot}%{_bindir}/fixup_bigquery_datatransfer_v1_keywords.py -%if %{with tests} %check -%pytest --disable-warnings tests/unit +# Skip import as these are not meant to be directly imported on their own +#%%pyproject_check_import + +%if %{with tests} +# NOTE(mhayden): Setting PYTHONUSERBASE as a hack for PEP 420 namespaces. +# Thanks to churchyard for the fix. +PYTHONUSERBASE=%{buildroot}%{_prefix} \ + %pytest tests/unit %endif diff --git a/sources b/sources index ae5a511..8e8fc89 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-bigquery-datatransfer-3.7.3.tar.gz) = 2c3df7a8c08f8cbc47ab7f3c977d7e6f5939218dc4234455b987eb26beb91ded520e468389caadd8beddd2e869b5c714caa0939b79ffea63a9a124f88326a967 +SHA512 (python-bigquery-datatransfer-3.10.1.tar.gz) = f0420ffd34e344d36a07cd2882b0c5d5318d91f027733d28a997aaa92e92692e63853f54f64a52292514e54e5d489803b62d98e817508e0aa56ff89d2b665e9b