diff --git a/.gitignore b/.gitignore index c9a2f7c..181afd5 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /python-spanner-3.22.2.tar.gz /python-spanner-3.23.0.tar.gz /python-spanner-3.24.0.tar.gz +/python-spanner-3.27.1.tar.gz diff --git a/python-google-cloud-spanner.spec b/python-google-cloud-spanner.spec index a01545a..3d0ed51 100644 --- a/python-google-cloud-spanner.spec +++ b/python-google-cloud-spanner.spec @@ -1,9 +1,8 @@ -# Upstream broke test imports -%bcond_with tests +%bcond_without tests %global srcname google-cloud-spanner %global forgeurl https://github.com/googleapis/python-spanner -Version: 3.24.0 +Version: 3.27.1 %global tag v%{version} %forgemeta @@ -11,7 +10,7 @@ Name: python-%{srcname} Release: %autorelease Summary: Python Client for Google Cloud Spanner -License: ASL 2.0 +License: Apache-2.0 URL: %forgeurl Source0: %forgesource @@ -64,13 +63,10 @@ grep -rl "^[[:space:]]*import mock" tests | \ %pyproject_check_import %if %{with tests} -# Work around an unusual pytest/PEP 420 issue where pytest can't import the -# installed module. Thanks to mhroncok for the help! -# NOTE(mhayden): Skip the cursor tests since most of them require credentials -# which are not included in the source repo. -mv google{,_} -%pytest --ignore=tests/unit/spanner_dbapi/test_cursor.py tests/unit -mv google{_,} +# NOTE(mhayden): Setting PYTHONUSERBASE as a hack for PEP 420 namespaces. +# Thanks to churchyard for the fix. +PYTHONUSERBASE=%{buildroot}%{_prefix} \ + %pytest tests/unit --ignore tests/unit/spanner_dbapi/test_cursor.py %endif diff --git a/sources b/sources index 8df5039..92cc995 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-spanner-3.24.0.tar.gz) = 4d9178159f2024e03a87ab6c68d4d21c9d3d4da6a1db3c79ba0b2e76b70825b4f835b72c23a67f0871d6751617f4e3fb9880f3424bac29cdf31eedb14bd4e292 +SHA512 (python-spanner-3.27.1.tar.gz) = 530eb230f8692375fe8d8968870c8c001e19cfec3408445d63cdbd9c3e4f0749b38ff67a24d7e94d5f87ee81bd501abb8981baf03c67dccebc3e656fa99ec67f