Accepting request 261449 from home:seilerphilipp
Now with the %check section including python tests OBS-URL: https://build.opensuse.org/request/show/261449 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-toolbelt?expand=0&rev=1
This commit is contained in:
commit
0963b2844e
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
10
python-requests-toolbelt.changes
Normal file
10
python-requests-toolbelt.changes
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 13 17:06:47 UTC 2014 - seiler@b1-systems.de
|
||||||
|
|
||||||
|
- added python-requests to build requirements to do python tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 5 09:36:57 UTC 2014 - seiler@b1-systems.de
|
||||||
|
|
||||||
|
- inital commit
|
||||||
|
|
73
python-requests-toolbelt.spec
Normal file
73
python-requests-toolbelt.spec
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
#
|
||||||
|
# spec file for package
|
||||||
|
#
|
||||||
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
%define short_name requests-toolbelt
|
||||||
|
|
||||||
|
Name: python-requests-toolbelt
|
||||||
|
Version: 0.3.1
|
||||||
|
Release: 1
|
||||||
|
License: Apache-2.0
|
||||||
|
Summary: Utility belt for advanced users of python-requests
|
||||||
|
Url: https://pypi.python.org/pypi/requests-toolbelt/0.3.1
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Source: %{short_name}-%{version}.tar.gz
|
||||||
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: python-requests
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{short_name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
python setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
python setup.py install --root %{buildroot} --prefix %{_prefix}
|
||||||
|
|
||||||
|
%check
|
||||||
|
python setup.py test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc AUTHORS.rst HISTORY.rst README.rst LICENSE
|
||||||
|
%dir %{python_sitelib}/requests_toolbelt
|
||||||
|
%dir %{python_sitelib}/requests_toolbelt-*.egg-info
|
||||||
|
%dir %{python_sitelib}/requests_toolbelt/adapters
|
||||||
|
%dir %{python_sitelib}/requests_toolbelt/multipart
|
||||||
|
|
||||||
|
%{python_sitelib}/requests_toolbelt-*.egg-info/PKG-INFO
|
||||||
|
%{python_sitelib}/requests_toolbelt-*.egg-info/SOURCES.txt
|
||||||
|
%{python_sitelib}/requests_toolbelt-*.egg-info/dependency_links.txt
|
||||||
|
%{python_sitelib}/requests_toolbelt-*.egg-info/requires.txt
|
||||||
|
%{python_sitelib}/requests_toolbelt-*.egg-info/top_level.txt
|
||||||
|
%{python_sitelib}/requests_toolbelt/__init__.py*
|
||||||
|
%{python_sitelib}/requests_toolbelt/adapters/__init__.py*
|
||||||
|
%{python_sitelib}/requests_toolbelt/adapters/source.py*
|
||||||
|
%{python_sitelib}/requests_toolbelt/adapters/ssl.py*
|
||||||
|
%{python_sitelib}/requests_toolbelt/auth.py*
|
||||||
|
%{python_sitelib}/requests_toolbelt/multipart/__init__.py*
|
||||||
|
%{python_sitelib}/requests_toolbelt/multipart/decoder.py*
|
||||||
|
%{python_sitelib}/requests_toolbelt/multipart/encoder.py*
|
||||||
|
%{python_sitelib}/requests_toolbelt/streaming_iterator.py*
|
||||||
|
%{python_sitelib}/requests_toolbelt/user_agent.py*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
|
3
requests-toolbelt-0.3.1.tar.gz
Normal file
3
requests-toolbelt-0.3.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f170eadbe01be2356d65862857a9b2eb8bb17b895cde158a7dd1c358a3a48d1a
|
||||||
|
size 14609
|
Loading…
Reference in New Issue
Block a user