Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8be3a0d0e5 | ||
|
|
3b9079c503 | ||
|
|
34eae97d04 |
2 changed files with 56 additions and 24 deletions
BIN
httmock-1.3.0.tar.gz
Normal file
BIN
httmock-1.3.0.tar.gz
Normal file
Binary file not shown.
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 1.2.6
|
Version: 1.2.6
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A mocking library for requests
|
Summary: A mocking library for requests
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
|
|
@ -11,39 +11,54 @@ URL: https://github.com/patrys/httmock
|
||||||
Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz
|
||||||
Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py
|
Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2dist(requests) >= 1.0.0
|
BuildRequires: python2-requests >= 1.0.0
|
||||||
BuildRequires: python2dist(setuptools)
|
BuildRequires: python2-setuptools
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python3dist(requests) >= 1.0.0
|
BuildRequires: python%{python3_pkgversion}-requests >= 1.0.0
|
||||||
BuildRequires: python3dist(setuptools)
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
|
|
||||||
|
BuildRequires: python%{python3_other_pkgversion}-devel
|
||||||
|
BuildRequires: python%{python3_other_pkgversion}-requests >= 1.0.0
|
||||||
|
BuildRequires: python%{python3_other_pkgversion}-setuptools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A mocking library for requests for Python.
|
A mocking library for requests for Python.
|
||||||
You can use it to mock third-party APIs and test libraries
|
You can use it to mock third-party APIs and test libraries
|
||||||
that use requests internally.
|
that use requests internally.
|
||||||
|
|
||||||
%package -n python2-%{pypi_name}
|
%package -n python2-%{pypi_name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
|
||||||
|
Requires: python2-requests >= 1.0.0
|
||||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||||
|
|
||||||
Requires: python2dist(requests) >= 1.0.0
|
|
||||||
%description -n python2-%{pypi_name}
|
%description -n python2-%{pypi_name}
|
||||||
A mocking library for requests for Python.
|
A mocking library for requests for Python.
|
||||||
You can use it to mock third-party APIs and test libraries
|
You can use it to mock third-party APIs and test libraries
|
||||||
that use requests internally.
|
that use requests internally.
|
||||||
|
|
||||||
%package -n python3-%{pypi_name}
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
||||||
|
Requires: python%{python3_pkgversion}-requests >= 1.0.0
|
||||||
Requires: python3dist(requests) >= 1.0.0
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
||||||
%description -n python3-%{pypi_name}
|
%description -n python%{python3_pkgversion}-%{pypi_name}
|
||||||
A mocking library for requests for Python.
|
A mocking library for requests for Python.
|
||||||
You can use it to mock third-party APIs and test libraries
|
You can use it to mock third-party APIs and test libraries
|
||||||
that use requests internally.
|
that use requests internally.
|
||||||
|
|
||||||
|
%package -n python%{python3_other_pkgversion}-%{pypi_name}
|
||||||
|
Summary: %{summary}
|
||||||
|
|
||||||
|
Requires: python%{python3_other_pkgversion}-requests >= 1.0.0
|
||||||
|
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}}
|
||||||
|
%description -n python%{python3_other_pkgversion}-%{pypi_name}
|
||||||
|
A mocking library for requests for Python.
|
||||||
|
You can use it to mock third-party APIs and test libraries
|
||||||
|
that use requests internally.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n %{pypi_name}-%{version}
|
||||||
|
|
@ -54,16 +69,19 @@ cp %{SOURCE1} .
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
%py3_other_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Must do the default python version install last because
|
# Must do the default python version install last because
|
||||||
# the scripts in /usr/bin are overwritten with every setup.py install.
|
# the scripts in /usr/bin are overwritten with every setup.py install.
|
||||||
%py2_install
|
%py2_install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
%py3_other_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
%{__python2} setup.py test
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
%{__python3_other} setup.py test
|
||||||
|
|
||||||
%files -n python2-%{pypi_name}
|
%files -n python2-%{pypi_name}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
@ -71,13 +89,27 @@ cp %{SOURCE1} .
|
||||||
%{python2_sitelib}/%{pypi_name}.py*
|
%{python2_sitelib}/%{pypi_name}.py*
|
||||||
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python%{python3_pkgversion}-%{pypi_name}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python3_sitelib}/__pycache__/*
|
%{python3_sitelib}/%{pypi_name}.py*
|
||||||
%{python3_sitelib}/%{pypi_name}.py
|
|
||||||
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||||
|
%{python3_sitelib}/__pycache__/%{pypi_name}.cpython-*
|
||||||
|
|
||||||
|
%files -n python%{python3_other_pkgversion}-%{pypi_name}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{python3_other_sitelib}/%{pypi_name}.py*
|
||||||
|
%{python3_other_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||||
|
%{python3_other_sitelib}/__pycache__/%{pypi_name}.cpython-*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 13 2019 Steve Traylen <steve.traylen@cern.ch> - 1.2.6-2
|
||||||
|
- Add python3 packages to epel7
|
||||||
|
|
||||||
|
* Fri May 11 2018 Steve Traylen <steve.traylen@cern.ch> - 1.2.6-1 1
|
||||||
|
- Back port to EPEL7
|
||||||
|
|
||||||
* Fri May 11 2018 Steve Traylen <steve.traylen@cern.ch> - 1.2.6-1
|
* Fri May 11 2018 Steve Traylen <steve.traylen@cern.ch> - 1.2.6-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue