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