|
|
a651d52 |
%{?python_enable_dependency_generator}
|
|
|
f759a6b |
# Created by pyp2rpm-3.3.0
|
|
|
f759a6b |
%global pypi_name httmock
|
|
|
f759a6b |
|
|
|
f759a6b |
Name: python-%{pypi_name}
|
|
|
f759a6b |
Version: 1.2.6
|
|
|
9587fb5 |
Release: 6%{?dist}
|
|
|
f759a6b |
Summary: A mocking library for requests
|
|
|
f759a6b |
|
|
|
f759a6b |
License: ASL 2.0
|
|
|
f759a6b |
URL: https://github.com/patrys/httmock
|
|
|
f759a6b |
Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz
|
|
|
f759a6b |
Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py
|
|
|
f759a6b |
BuildArch: noarch
|
|
|
f759a6b |
|
|
|
f759a6b |
%description
|
|
|
f759a6b |
A mocking library for requests for Python.
|
|
|
f759a6b |
You can use it to mock third-party APIs and test libraries
|
|
|
f759a6b |
that use requests internally.
|
|
|
f759a6b |
|
|
|
f759a6b |
%package -n python3-%{pypi_name}
|
|
|
f759a6b |
Summary: %{summary}
|
|
|
f759a6b |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
a651d52 |
BuildRequires: python3-devel
|
|
|
a651d52 |
BuildRequires: python3-setuptools
|
|
|
a651d52 |
BuildRequires: python3dist(requests) >= 1.0.0
|
|
|
f759a6b |
|
|
|
f759a6b |
%description -n python3-%{pypi_name}
|
|
|
f759a6b |
A mocking library for requests for Python.
|
|
|
f759a6b |
You can use it to mock third-party APIs and test libraries
|
|
|
f759a6b |
that use requests internally.
|
|
|
f759a6b |
|
|
|
f759a6b |
%prep
|
|
|
f759a6b |
%autosetup -n %{pypi_name}-%{version}
|
|
|
f759a6b |
# Remove bundled egg-info
|
|
|
f759a6b |
rm -rf %{pypi_name}.egg-info
|
|
|
f759a6b |
cp %{SOURCE1} .
|
|
|
f759a6b |
|
|
|
f759a6b |
%build
|
|
|
f759a6b |
%py3_build
|
|
|
f759a6b |
|
|
|
f759a6b |
%install
|
|
|
f759a6b |
%py3_install
|
|
|
f759a6b |
|
|
|
f759a6b |
%check
|
|
|
f759a6b |
%{__python3} setup.py test
|
|
|
f759a6b |
|
|
|
f759a6b |
%files -n python3-%{pypi_name}
|
|
|
f759a6b |
%license LICENSE
|
|
|
f759a6b |
%doc README.md
|
|
|
f759a6b |
%{python3_sitelib}/__pycache__/*
|
|
|
f759a6b |
%{python3_sitelib}/%{pypi_name}.py
|
|
|
f759a6b |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
f759a6b |
|
|
|
f759a6b |
%changelog
|
|
|
9587fb5 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-6
|
|
|
9587fb5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
9587fb5 |
|
|
|
a651d52 |
* Fri Jan 04 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.6-5
|
|
|
a651d52 |
- Enable python dependency generator
|
|
|
a651d52 |
|
|
|
ba5b941 |
* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.6-4
|
|
|
ba5b941 |
- Subpackage python2-httmock has been removed
|
|
|
ba5b941 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
ba5b941 |
|
|
|
185c161 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-3
|
|
|
185c161 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
185c161 |
|
|
|
06f4835 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.6-2
|
|
|
06f4835 |
- Rebuilt for Python 3.7
|
|
|
06f4835 |
|
|
|
f759a6b |
* Fri May 11 2018 Steve Traylen <steve.traylen@cern.ch> - 1.2.6-1
|
|
|
f759a6b |
- Initial package.
|