diff --git a/.gitignore b/.gitignore index 113ceae..2106fb0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /python-pubsub-2.12.1.tar.gz /python-pubsub-2.13.0.tar.gz +/python-pubsub-2.14.1.tar.gz diff --git a/python-google-cloud-pubsub.spec b/python-google-cloud-pubsub.spec index ff4ac88..8dded02 100644 --- a/python-google-cloud-pubsub.spec +++ b/python-google-cloud-pubsub.spec @@ -1,9 +1,8 @@ -# tests are enabled by default -%bcond_without tests +%bcond_without tests %global srcname google-cloud-pubsub %global forgeurl https://github.com/googleapis/python-pubsub -Version: 2.13.0 +Version: 2.14.1 %global tag v%{version} %forgemeta @@ -11,7 +10,7 @@ Name: python-%{srcname} Release: %autorelease Summary: Google Cloud Pub/Sub API client library -License: ASL 2.0 +License: Apache-2.0 URL: %forgeurl Source0: %forgesource @@ -63,13 +62,14 @@ grep -rl "^[[:space:]]*import mock" tests | \ rm -f %{buildroot}%{_bindir}/fixup_pubsub_v1_keywords.py -%if %{with tests} %check -# Work around an unusual pytest/PEP 420 issue where pytest can't import the -# installed module. Thanks to mhroncok for the help! -mv google{,_} -%pytest tests/unit -mv google{_,} +%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 6646c1c..66652b8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-pubsub-2.13.0.tar.gz) = ad5368da821e1fc7c01bf5fbf31a837ef3531876c3a64336d78b75f541fe978a28d168e304f14cd66031837044fba2fdad506cf0415d891bdd241bcbef368cc7 +SHA512 (python-pubsub-2.14.1.tar.gz) = 5622211f6485d80cdd8f3933b79b2bd466e1a53a0c3ea50a4095821a4805cae9b1807af039712afb96192c6db15e804f025d13967a1a5e5d055110f93b6fcf1c