The package rpms/python-google-cloud-bigquery-storage.git has added or updated
architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/python-google-cloud-bigquery-stor....
Change:
+%ifnarch %{arm32} %{ix86}
Thanks.
Full change:
============
commit 49f13c0301b311ac29fcff743ab67d5c34deba69
Author: Major Hayden <major(a)mhtx.net>
Date: Wed Oct 27 15:43:32 2021 -0500
First package for version 2.9.1
commit 08710c5b98df7872b44dba66b76f9bd215de8c64
Author: Major Hayden <major(a)mhtx.net>
Date: Wed Oct 27 15:43:14 2021 -0500
Initial import (#2012986)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..790aa9f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-bigquery-storage-2.9.1.tar.gz
diff --git a/python-google-cloud-bigquery-storage-mock.patch
b/python-google-cloud-bigquery-storage-mock.patch
new file mode 100644
index 0000000..41f759d
--- /dev/null
+++ b/python-google-cloud-bigquery-storage-mock.patch
@@ -0,0 +1,67 @@
+From d0ff3ad92e53c62d6f14a9086876e4a46e404bf2 Mon Sep 17 00:00:00 2001
+From: Major Hayden <major(a)mhtx.net>
+Date: Mon, 11 Oct 2021 10:02:52 -0500
+Subject: [PATCH] Use unittest.mock
+
+---
+ tests/unit/gapic/bigquery_storage_v1/test_big_query_read.py | 2 +-
+ tests/unit/gapic/bigquery_storage_v1/test_big_query_write.py | 2 +-
+ .../unit/gapic/bigquery_storage_v1beta2/test_big_query_read.py | 2 +-
+ .../unit/gapic/bigquery_storage_v1beta2/test_big_query_write.py | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tests/unit/gapic/bigquery_storage_v1/test_big_query_read.py
b/tests/unit/gapic/bigquery_storage_v1/test_big_query_read.py
+index 23480a7..1cbd162 100644
+--- a/tests/unit/gapic/bigquery_storage_v1/test_big_query_read.py
++++ b/tests/unit/gapic/bigquery_storage_v1/test_big_query_read.py
+@@ -14,7 +14,7 @@
+ # limitations under the License.
+ #
+ import os
+-import mock
++from unittest import mock
+ import packaging.version
+
+ import grpc
+diff --git a/tests/unit/gapic/bigquery_storage_v1/test_big_query_write.py
b/tests/unit/gapic/bigquery_storage_v1/test_big_query_write.py
+index a6b1f1f..3d35e16 100644
+--- a/tests/unit/gapic/bigquery_storage_v1/test_big_query_write.py
++++ b/tests/unit/gapic/bigquery_storage_v1/test_big_query_write.py
+@@ -14,7 +14,7 @@
+ # limitations under the License.
+ #
+ import os
+-import mock
++from unittest import mock
+ import packaging.version
+
+ import grpc
+diff --git a/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_read.py
b/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_read.py
+index c519ab6..abf3e93 100644
+--- a/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_read.py
++++ b/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_read.py
+@@ -14,7 +14,7 @@
+ # limitations under the License.
+ #
+ import os
+-import mock
++from unittest import mock
+ import packaging.version
+
+ import grpc
+diff --git a/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_write.py
b/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_write.py
+index df48cf4..51729b9 100644
+--- a/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_write.py
++++ b/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_write.py
+@@ -14,7 +14,7 @@
+ # limitations under the License.
+ #
+ import os
+-import mock
++from unittest import mock
+ import packaging.version
+
+ import grpc
+--
+2.31.1
+
diff --git a/python-google-cloud-bigquery-storage.spec
b/python-google-cloud-bigquery-storage.spec
new file mode 100644
index 0000000..01e42fd
--- /dev/null
+++ b/python-google-cloud-bigquery-storage.spec
@@ -0,0 +1,103 @@
+# 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.9.1
+%global tag v%{version}
+%forgemeta
+
+Name: python-%{srcname}
+Release: %autorelease
+Summary: Python SDK for Google Cloud BigQuery Storage API
+
+License: ASL 2.0
+URL: %forgeurl
+Source0: %forgesource
+# Use unittest.mock instead of PyPI mock
+# (
https://fedoraproject.org/wiki/Changes/DeprecatePythonMock).
+#
+# This simple patch cannot be submitted upstream because they support
+# Python 3.6 and 3.7, but use AsyncMock, which was introduced to
+# unittest.mock in Python 3.8.
+Patch0: python-google-cloud-bigquery-storage-mock.patch
+
+# The base package is arched because extras metapackages requiring fastavro are
+# not available on 32-bit architectures
+# (
https://bugzilla.redhat.com/show_bug.cgi?id=1943932).
+%ifnarch %{arm32} %{ix86}
+%global fastavro_arch 1
+%endif
+# Of the binary RPMs, only the conditionally-enabled extras metapackage
+# python3-google-cloud-bigquery-storage+fastavro is arched.
+#
+# Since there is no compiled code, there are no debugging symbols.
+%global debug_package %{nil}
+
+BuildRequires: python3-devel
+
+%if %{with tests}
+BuildRequires: python3dist(pytest)
+BuildRequires: python3dist(pytest-asyncio)
+%endif
+
+%global _description %{expand:
+Python SDK for Google Cloud BigQuery Storage API}
+
+%description %{_description}
+
+
+%package -n python3-%{srcname}
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n python3-%{srcname} %{_description}
+
+# 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}
+
+%if 0%{?fastavro_arch}
+# Note that this metapackage is arched because it is not available on 32-bit
+# architectures.
+%pyproject_extras_subpkg -n python3-%{srcname} fastavro
+%endif
+
+
+%prep
+%forgeautosetup -p1
+
+
+%generate_buildrequires
+%pyproject_buildrequires -x
pandas%{?with_pyarrow:,pyarrow}%{?fastavro_arch:,fastavro},tests
+
+
+%build
+%pyproject_wheel
+
+
+%install
+%pyproject_install
+%pyproject_save_files google
+
+# Remove unnecessary scripts.
+rm -f %{buildroot}%{_bindir}/fixup*.py
+
+
+%if %{with tests}
+%check
+%pytest %{?!fastavro_arch:--ignore=tests/unit/test_reader_v1.py} \
+ --disable-warnings tests/unit
+%endif
+
+
+%files -n python3-%{srcname} -f %{pyproject_files}
+%doc README.rst CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.rst SECURITY.md UPGRADING.md
samples
+%{python3_sitelib}/google_cloud_bigquery_storage-%{version}-py%{python3_version}-nspkg.pth
+
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..78941dc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (python-bigquery-storage-2.9.1.tar.gz) =
4214ea013a2a2228a1b4c483b285c25bd1020290b1594e6568ab9c8d7646050e5b20501299d4d1ab1526f45333c9425dfbb6061dfdcb3dc62b3aafdd6ac4dcfc