17
0

Accepting request 1313812 from home:glaubitz:branches:devel:languages:python:google

- Replace bash scriptlet to remove mock usage from source code

OBS-URL: https://build.opensuse.org/request/show/1313812
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-spanner?expand=0&rev=16
This commit is contained in:
2025-10-27 11:25:19 +00:00
committed by Git OBS Bridge
parent 6a366edbd1
commit dcd2aa9735
2 changed files with 7 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 27 10:05:03 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Replace bash scriptlet to remove mock usage from source code
-------------------------------------------------------------------
Mon Oct 20 08:26:31 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -76,10 +76,8 @@ Google Cloud Spanner API client library
%autosetup -p1 -n google_cloud_spanner-%{version}
# don't use python-mock
for i in $(find tests -name "*.py")
do
sed -i 's/^import mock/from unittest import mock/g' $i
done
find . -name "*.py" -exec sed -i "s/^import mock/from unittest import mock/g" {} \;
find . -name "*.py" -exec sed -i "s/^from mock/from unittest.mock/g" {} \;
%build
%pyproject_wheel