%global pypi_name responses Name: python-%{pypi_name} Version: 0.21.0 Release: 3%{?dist} Summary: Python library to mock out calls with Python requests License: ASL 2.0 URL: https://github.com/getsentry/responses Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # Upstream added various requirements in its "tests" extras which are only # required tests we don't want to run in Fedora (coverage) and strict version # requirements (pytest >= 7.0 as of March 2022 - not yet in rawhide). # Patching setup.py is error prone as the patch file has to be regenerated # every time upstream bumps a version requirement. # Therefore just list the build requirements here explicitely. BuildRequires: python3-pytest %description A utility library for mocking out the requests Python library. %package -n python3-%{pypi_name} Summary: Python library to mock out calls with Python requests %description -n python%{python3_pkgversion}-%{pypi_name} A utility library for mocking out the requests Python library. %prep %autosetup -n %{pypi_name}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} # we do not ship tests sed -i -e '/\/tests\//d' %{pyproject_files} %check # skipping tests due to missing dependencies: python3-pytest-localserver %pytest -k "not passthrough and not passthru and not test_mock_not_leaked" %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %exclude %{python3_sitelib}/responses/tests %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.21.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 0.21.0-2 - Rebuilt for Python 3.11 * Sun May 29 2022 Felix Schwarz - 0.21.0-1 - update to 0.21.0 * Fri Mar 18 2022 Felix Schwarz - 0.20.0-1 - update to 0.20.0 * Mon Mar 07 2022 Felix Schwarz - 0.19.0-1 - update to 0.19.0 * Wed Feb 02 2022 Felix Schwarz - 0.18.0-1 - update to 0.18.0 * Wed Jan 26 2022 Felix Schwarz - 0.17.0-1 - update to 0.17.0 * Wed Jan 26 2022 Orion Poplawski - 0.16.0-3 - Do not run coverage tests * Fri Jan 21 2022 Fedora Release Engineering - 0.16.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Nov 17 2021 Felix Schwarz - 0.16.0-1 - Update to 0.16.0 * Fri Jul 23 2021 Fedora Release Engineering - 0.10.15-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.10.15-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.10.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.10.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Jun 14 2020 Athos Ribeiro - 0.10.15-1 - Version update * Sun May 24 2020 Miro Hrončok - 0.10.14-2 - Rebuilt for Python 3.9 * Tue May 12 2020 Athos Ribeiro - 0.10.14-1 - Version update * Wed Mar 04 2020 Athos Ribeiro - 0.10.12-1 - Version update * Sat Feb 29 2020 Athos Ribeiro - 0.10.11-1 - Version update * Thu Jan 30 2020 Fedora Release Engineering - 0.10.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.10.5-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sun Aug 18 2019 Miro Hrončok - 0.10.5-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.10.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Mar 06 2019 Randy Barlow - 0.10.5-1 - Upgrade to 0.10.5 (#1684241). - https://github.com/getsentry/responses/blob/0.10.5/CHANGES * Sat Feb 02 2019 Fedora Release Engineering - 0.9.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Dec 29 2018 Igor Gnatenko - 0.9.0-5 - Enable python dependency generator * Fri Dec 28 2018 Miro Hrončok - 0.9.0-4 - Subpackage python2-responses has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.9.0-2 - Rebuilt for Python 3.7 * Mon Apr 09 2018 Athos Ribeiro - 0.9.0-1 - Version update - Explicitly require pythonX-setuptools regardless of environment * Fri Feb 09 2018 Iryna Shcherbina - 0.5.1-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Igor Gnatenko - 0.5.1-7 - Escape macros in %%changelog * Thu Jul 27 2017 Fedora Release Engineering - 0.5.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.5.1-4 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.5.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Jun 02 2016 Germano Massullo - 0.5.1-2 - Fixed python packages prefix for el <= 7 * Mon Jan 25 2016 Germano Massullo - 0.5.1-1 - LICENSE file added in upstream update - Commented %%check section due test file missing in pypi release. See https://github.com/getsentry/responses/issues/98 * Sat Jan 23 2016 Germano Massullo - 0.5.0-1 - Package review submission