Accepting request 495407 from devel:languages:python
- convert to singlespec OBS-URL: https://build.opensuse.org/request/show/495407 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-toolbelt?expand=0&rev=2
This commit is contained in:
commit
fe9109f54e
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 16 16:04:50 UTC 2017 - dmueller@suse.com
|
||||
|
||||
- convert to singlespec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 19 10:10:48 UTC 2017 - dmueller@suse.com
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
%define short_name requests-toolbelt
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-requests-toolbelt
|
||||
Version: 0.7.0
|
||||
Release: 0
|
||||
@ -26,13 +27,15 @@ License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://pypi.io/packages/source/r/requests-toolbelt/%{version}
|
||||
Source: %{short_name}-%{version}.tar.gz
|
||||
BuildRequires: python-requests >= 2.0.1
|
||||
BuildRequires: python-setuptools
|
||||
Requires: python-requests >= 2.0.1
|
||||
BuildRequires: %{python_module betamax}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: %{python_module requests}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This is just a collection of utilities for python-requests, but don't really belong in requests proper. The minimum tested requests version is 2.1.0. In reality, the toolbelt should work with 2.0.1 as well, but some idiosyncracies prevent effective or sane testing on that version.
|
||||
@ -41,15 +44,15 @@ This is just a collection of utilities for python-requests, but don't really bel
|
||||
%setup -q -n %{short_name}-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --root %{buildroot} --prefix %{_prefix}
|
||||
%python_install
|
||||
|
||||
%check
|
||||
python setup.py test
|
||||
%python_exec setup.py test
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS.rst HISTORY.rst README.rst LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user