From 79a14e80ddedca858768bf60863a5283ce7e70b4 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Feb 21 2023 13:54:31 +0000 Subject: Update to 2.18.1 --- diff --git a/.gitignore b/.gitignore index 0f0b76c..64dfdaa 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /python-bigquery-storage-2.15.0.tar.gz /python-bigquery-storage-2.16.0.tar.gz /python-bigquery-storage-2.16.2.tar.gz +/python-bigquery-storage-2.18.1.tar.gz diff --git a/python-google-cloud-bigquery-storage.spec b/python-google-cloud-bigquery-storage.spec index 91257b0..a1c1f02 100644 --- a/python-google-cloud-bigquery-storage.spec +++ b/python-google-cloud-bigquery-storage.spec @@ -1,14 +1,8 @@ -# F35: Do not update past 2.13.1. F35's protobuf is too old. - -# tests are enabled by default %bcond_without tests -# https://pypi.org/project/pyarrow not yet packaged -%bcond_with pyarrow - %global srcname google-cloud-bigquery-storage %global forgeurl https://github.com/googleapis/python-bigquery-storage -Version: 2.16.2 +Version: 2.18.1 %global tag v%{version} %forgemeta @@ -16,7 +10,7 @@ Name: python-%{srcname} Release: %autorelease Summary: Python SDK for Google Cloud BigQuery Storage API -License: ASL 2.0 +License: Apache-2.0 URL: %forgeurl Source0: %forgesource @@ -53,7 +47,7 @@ BuildArch: noarch # We would have to write out the extras metapackage definitions manually if # we wanted them to be noarch, since the base package is arched. -%pyproject_extras_subpkg -n python3-%{srcname} pandas %{?with_pyarrow:pyarrow} +%pyproject_extras_subpkg -n python3-%{srcname} pandas pyarrow %if 0%{?fastavro_arch} # Note that this metapackage is arched because it is not available on 32-bit @@ -74,7 +68,7 @@ grep -rl "^[[:space:]]*import mock" tests | \ %generate_buildrequires -%pyproject_buildrequires -x pandas%{?with_pyarrow:,pyarrow}%{?fastavro_arch:,fastavro},tests +%pyproject_buildrequires -x pandas,pyarrow%{?fastavro_arch:,fastavro},tests %build @@ -93,8 +87,10 @@ rm -f %{buildroot}%{_bindir}/fixup*.py %pyproject_check_import -e google.cloud.bigquery_storage_v1.types.annotations %if %{with tests} -%pytest %{?!fastavro_arch:--ignore=tests/unit/test_reader_v1.py} \ - --disable-warnings tests/unit +# NOTE(mhayden): Setting PYTHONUSERBASE as a hack for PEP 420 namespaces. +# Thanks to churchyard for the fix. +PYTHONUSERBASE=%{buildroot}%{_prefix} \ + %pytest tests/unit %{?!fastavro_arch:--ignore=tests/unit/test_reader_v1.py} %endif diff --git a/sources b/sources index 28048c9..8b65067 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-bigquery-storage-2.16.2.tar.gz) = f1623b97743c4db4807151b0b89afd10bb41d7b1fcccce4cafde6b75d15f8512c0516b70ffd478f50961337b856a0ca71be94ca0de878d71118f773e91e80e48 +SHA512 (python-bigquery-storage-2.18.1.tar.gz) = 8d8228c3d14d1a5ec05ff682695f7a6b05282490874fb0480821b88656c21bd46df8a4b0271c89594c9c67700f87c55f482920751db1c82901892d8b23b07688