From c1acb3c79df5cdbcbb92c4d89ccf5dfee685d446 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mar 04 2022 09:20:02 +0000 Subject: Add patch for Pytest 7 (closes rhbz#2059964) --- diff --git a/.gitignore b/.gitignore index 0179245..61ce3a6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /promise-2.3.0.tar.gz +/381687df55fda715a87395f7ffba1c91428650e2.patch diff --git a/python-promise.spec b/python-promise.spec index e9f40dd..77b25e9 100644 --- a/python-promise.spec +++ b/python-promise.spec @@ -2,12 +2,15 @@ Name: python-%{pypi_name} Version: 2.3.0 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Promises/A+ implementation for Python License: MIT URL: https://github.com/syrusakbary/promise Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz +# https://github.com/syrusakbary/promise/pull/96 +Patch0: https://github.com/syrusakbary/promise/commit/381687df55fda715a87395f7ffba1c91428650e2.patch + BuildArch: noarch %description @@ -37,7 +40,7 @@ extensions that are absolutely necessary for using promises in Python. It's fully compatible with the Promises/A+ spec. %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 rm -rf %{pypi_name}.egg-info %build @@ -47,7 +50,7 @@ rm -rf %{pypi_name}.egg-info %py3_install %check -PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests +%pytest -v tests %files -n python3-%{pypi_name} %license LICENSE @@ -56,6 +59,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests %{python3_sitelib}/%{pypi_name}-*-py%{python3_version}.egg-info %changelog +* Fri Mar 04 2022 Fabian Affolter - 2.3.0-9 +- Add patch for Pytest 7 (closes rhbz#2059964) + * Fri Jan 21 2022 Fedora Release Engineering - 2.3.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index 92fdfdb..8c4e7a9 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ SHA512 (promise-2.3.0.tar.gz) = 5b0b6879b2a3abe244d85ec4667ea3c594cb5051887af275226d0f05a50e9735b0fbf4c8890bba55d24d0daf45629db2506c53a784025e706a56705600199958 +SHA512 (381687df55fda715a87395f7ffba1c91428650e2.patch) = 54e4a78356afadbd760fd708c5652818e4800e96341fb3610a71c73fc6a295491712d82e8eb56338927806d1f53152c9de7736bef686aec49cd4c22d093e1fe9