diff --git a/python-google-cloud-access-context-manager.spec b/python-google-cloud-access-context-manager.spec index c5c3b84..3d83e5c 100644 --- a/python-google-cloud-access-context-manager.spec +++ b/python-google-cloud-access-context-manager.spec @@ -1,9 +1,15 @@ -# The package currently has an empty test directory. -%bcond_with tests +# 🚨 WARNING +# DO NOT UPDATE PAST 0.1.9 WITHOUT TESTING +# Fedora 35's versions of protobuf and grpc will not work with newer versions and +# updating this package will break about 10-15 other Python Google Cloud SDK packages. +# 🚨 WARNING + +# Upstream has no tests in the tests directory. 🤷🏻‍♂️ +%bcond_with tests %global srcname google-cloud-access-context-manager %global forgeurl https://github.com/googleapis/python-access-context-manager -Version: 0.1.11 +Version: 0.1.9 %global tag v%{version} %forgemeta @@ -15,6 +21,8 @@ License: ASL 2.0 URL: %forgeurl Source0: %forgesource +Epoch: 1 + BuildArch: noarch BuildRequires: python3-devel @@ -53,13 +61,11 @@ Summary: %{summary} %pyproject_save_files google -%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 --disable-warnings tests/unit -mv google{_,} +%pyproject_check_import + +%if %{with tests} +%pytest %endif diff --git a/sources b/sources index 6315b32..95e960b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-access-context-manager-0.1.11.tar.gz) = adb22d0a8428ac9b95a76f31171a61d90b890ed1a11813a0f2c81e1b10da0dccfb69de37a58f1309289d36d0092ee0d8b56e087c2165386ce182d1cf2ac26b05 +SHA512 (python-access-context-manager-0.1.9.tar.gz) = b64bef29346153001a479131328424ba344aac3cee9214c259ef5e5ea9062cc06b6f2b8637e3580894a6e3ed2491ef25d73cbfe2035205f3928ddb0274be252b