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