|
rdobuilder |
0375ed |
%if 0%{?rhel} >= 8
|
|
rdobuilder |
0375ed |
# Disable tests on epel8 - dependencies dont exist.
|
|
rdobuilder |
0375ed |
%bcond_with tests
|
|
rdobuilder |
0375ed |
%else
|
|
rdobuilder |
0375ed |
%bcond_without tests
|
|
rdobuilder |
0375ed |
%endif
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
Name: python-requests-mock
|
|
rdobuilder |
0375ed |
Version: 1.10.0
|
|
rdobuilder |
0375ed |
Release: 1%{?dist}
|
|
rdobuilder |
0375ed |
Summary: A requests mocking tool for python
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
License: ASL 2.0
|
|
rdobuilder |
0375ed |
URL: https://requests-mock.readthedocs.io/
|
|
rdobuilder |
0375ed |
Source0: https://pypi.io/packages/source/r/requests-mock/requests-mock-%{version}.tar.gz
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
Patch0: 0002-Use-system-urllib3-package.patch
|
|
rdobuilder |
0375ed |
Patch1: 0003-Allow-skipping-purl-tests-if-it-is-not-present.patch
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
BuildArch: noarch
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%description
|
|
rdobuilder |
0375ed |
requests-mock provides a simple way to do HTTP mocking at the
|
|
rdobuilder |
0375ed |
python-requests layer.
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%package -n python%{python3_pkgversion}-requests-mock
|
|
rdobuilder |
0375ed |
Summary: A requests mocking tool for python
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
Requires: python%{python3_pkgversion}-requests
|
|
rdobuilder |
0375ed |
Requires: python%{python3_pkgversion}-six
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
# standard requirements needed for testing
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-requests
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-six
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-urllib3
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-devel
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-pbr
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%{?python_provide:%python_provide python3-requests-mock}
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%if %{with tests}
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-fixtures
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-mock
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-testtools
|
|
rdobuilder |
0375ed |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
rdobuilder |
0375ed |
BuildRequires: python-requests-futures
|
|
rdobuilder |
0375ed |
%endif
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%description -n python%{python3_pkgversion}-requests-mock
|
|
rdobuilder |
0375ed |
requests-mock provides a simple way to do HTTP mocking at the
|
|
rdobuilder |
0375ed |
python-requests layer.
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%prep
|
|
rdobuilder |
0375ed |
%setup -q -n requests-mock-%{version}
|
|
rdobuilder |
0375ed |
%patch0 -p1
|
|
rdobuilder |
0375ed |
%patch1 -p1
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
# Remove bundled egg-info
|
|
rdobuilder |
0375ed |
rm -rf requests_mock.egg-info
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%build
|
|
rdobuilder |
0375ed |
%py3_build
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%install
|
|
rdobuilder |
0375ed |
%py3_install
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%check
|
|
rdobuilder |
0375ed |
%if %{with tests}
|
|
rdobuilder |
0375ed |
%{__python3} -m testtools.run discover
|
|
rdobuilder |
0375ed |
%{__python3} -m pytest tests/pytest
|
|
rdobuilder |
0375ed |
%endif
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%files -n python%{python3_pkgversion}-requests-mock
|
|
rdobuilder |
0375ed |
%license LICENSE
|
|
rdobuilder |
0375ed |
%doc README.rst ChangeLog
|
|
rdobuilder |
0375ed |
%{python3_sitelib}/requests_mock
|
|
rdobuilder |
0375ed |
%{python3_sitelib}/requests_mock-%{version}-py%{python3_version}.egg-info
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
%changelog
|
|
rdobuilder |
0375ed |
* Thu Dec 15 2022 Joel Capitao <jcapitao@redhat.com> - 1.10.0-1
|
|
rdobuilder |
0375ed |
- Update to 1.10.0
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-3
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.9.3-2
|
|
rdobuilder |
0375ed |
- Rebuilt for Python 3.11
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Wed Feb 23 2022 Karolina Kula <kkula@redhat.com> - 1.9.3-1
|
|
rdobuilder |
0375ed |
- Update to 1.9.3
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-5
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-4
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.8.0-3
|
|
rdobuilder |
0375ed |
- Rebuilt for Python 3.10
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Tue Sep 15 2020 Joel Capitao <jcapitao@redhat.com> - 1.8.0-1
|
|
rdobuilder |
0375ed |
- Update to 1.8.0
|
|
rdobuilder |
0375ed |
- Remove Python 2 subpackage
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-4
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-3
|
|
rdobuilder |
0375ed |
- Rebuilt for Python 3.9
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Tue Dec 03 2019 Jamie Lennox <jamielennox@gmail.com> - 1.7.0-1
|
|
rdobuilder |
0375ed |
- Updated to upstream 1.7.0
|
|
rdobuilder |
0375ed |
- Conditionalized tests for EPEL8 not having required dependencies
|
|
rdobuilder |
0375ed |
- Add patch to skip purl tests as dependency not present.
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-6
|
|
rdobuilder |
0375ed |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-5
|
|
rdobuilder |
0375ed |
- Rebuilt for Python 3.8
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Wed Feb 27 2019 Yatin Karel <ykarel@redhat.com> - 1.5.2-3
|
|
rdobuilder |
0375ed |
- Disable python2 build in Fedora and EL > 7
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Sat Jul 21 2018 Jamie Lennox <jamielennox@gmail.com> - 1.5.2-1
|
|
rdobuilder |
0375ed |
- Update to upstream 1.5.2.
|
|
rdobuilder |
0375ed |
- Fix bug introduced in 1.5.1
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Sat Jul 21 2018 Jamie Lennox <jamielennox@gmail.com> - 1.5.1-1
|
|
rdobuilder |
0375ed |
- Update to upstream 1.5.1.
|
|
rdobuilder |
0375ed |
- Fixes py.test plugin with py.test<3 as in EPEL.
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-2
|
|
rdobuilder |
0375ed |
- Rebuilt for Python 3.7
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Sat Jun 23 2018 Jamie Lennox <jamielennox@gmail.com>- 1.5.0-1
|
|
rdobuilder |
0375ed |
- Update to upstream 1.5.0.
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Jun 22 2018 Carl George <carl@george.computer> - 1.3.0-6
|
|
rdobuilder |
0375ed |
- EPEL compatibility
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-5
|
|
rdobuilder |
0375ed |
- Rebuilt for Python 3.7
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.3.0-4
|
|
rdobuilder |
0375ed |
- Update Python 2 dependency declarations to new packaging standards
|
|
rdobuilder |
0375ed |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.0-2
|
|
rdobuilder |
0375ed |
- Fix creation of python2- subpackage
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Nov 17 2017 Alfredo Moralejo <amoralej@redhat.com> - 1.3.0-1
|
|
rdobuilder |
0375ed |
- Update to upstream 1.3.0. Required for OpenStack packages.
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Thu Dec 22 2016 Jamie Lennox <jamielennox@gmail.com> - 1.2.0-1
|
|
rdobuilder |
0375ed |
- Upstream 1.2.0. Fixes testing bug preventing package rebuilding.
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
|
|
rdobuilder |
0375ed |
- Rebuild for Python 3.6
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Mon Nov 14 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 1.1.0-1
|
|
rdobuilder |
0375ed |
- Upstream 1.1.0
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
|
rdobuilder |
0375ed |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Mon Jun 27 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 1.0.0-1
|
|
rdobuilder |
0375ed |
- Upstream 1.0.0 (RHBZ#1334354)
|
|
rdobuilder |
0375ed |
- Use pypi.io for SourceURL
|
|
rdobuilder |
0375ed |
- Fix unversioned python macros
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Dec 4 2015 Jamie Lennox <jamielennox@gmail.com> - 0.7.0-1
|
|
rdobuilder |
0375ed |
- Update package to new version.
|
|
rdobuilder |
0375ed |
- Add python2 subpackage for new python packaging guidelines.
|
|
rdobuilder |
0375ed |
- Redo patch1 to still apply.
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
|
|
rdobuilder |
0375ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Fri Feb 6 2015 Jamie Lennox <jamielennox@redhat.com> - 0.6.0-1
|
|
rdobuilder |
0375ed |
- Update package to new version
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Tue Sep 2 2014 Jamie Lennox <jamielennox@redhat.com> - 0.5.1-2
|
|
rdobuilder |
0375ed |
- Removed packaged egg-info to force rebuild.
|
|
rdobuilder |
0375ed |
- Removed unneeded CFLAGS from build commands.
|
|
rdobuilder |
0375ed |
|
|
rdobuilder |
0375ed |
* Thu Aug 28 2014 Jamie Lennox <jamielennox@redhat.com> - 0.5.1-1
|
|
rdobuilder |
0375ed |
- Initial Package.
|