commit a4a37f01e3e488264150c510fff160d7fce55723a14914b83ba24e826c2a7399 Author: Denisart Benjamin Date: Fri Apr 24 14:30:55 2015 +0000 Accepting request 298197 from Cloud:OpenStack:Master Initial packaging OBS-URL: https://build.opensuse.org/request/show/298197 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-requests-mock.changes b/python-requests-mock.changes new file mode 100644 index 0000000..00696fd --- /dev/null +++ b/python-requests-mock.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +Mon Apr 20 13:48:07 UTC 2015 - tbechtold@suse.com + +- Fix license string + +------------------------------------------------------------------- +Mon Feb 2 15:25:27 UTC 2015 - dmueller@suse.com + +- update 0.6.0: + * Update docs + * Allow to decorate class with mock + * Use weakref to hold matcher + * Include matcher in request history + * Add called and call_count to mocker + * Update README to use newer syntax + * Allow specifying an exception to raise + * Update novaclient and keystoneclient git repo + * Add pbr to all tox environments + * Add docs environment to tox.ini + * Work toward Python 3.4 support and testing + * Run tip tests against requests master as well + * Add link to find bug tracker + +------------------------------------------------------------------- +Fri Sep 26 07:45:55 UTC 2014 - tbechtold@suse.com + +- Initial package + diff --git a/python-requests-mock.spec b/python-requests-mock.spec new file mode 100644 index 0000000..e14e217 --- /dev/null +++ b/python-requests-mock.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-requests-mock +# +# Copyright (c) 2015 SUSE LINUX 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/ +# + + +Name: python-requests-mock +Version: 0.6.0 +Release: 0 +Summary: Mock out responses from the requests package +License: Apache-2.0 +Group: Development/Languages/Python +Url: https://requests-mock.readthedocs.org/ +Source: https://pypi.python.org/packages/source/r/requests-mock/requests-mock-%{version}.tar.gz +BuildRequires: python-devel +BuildRequires: python-fixtures +BuildRequires: python-mock +BuildRequires: python-pbr +BuildRequires: python-requests +BuildRequires: python-six +BuildRequires: python-sphinx >= 1.1.2 +BuildRequires: python-testrepository >= 0.0.18 +BuildRequires: python-testtools +Requires: python-requests >= 1.1 +Requires: python-six +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif + +%description +`requests-mock` provides a building block to stub out the HTTP `requests`_ portions of your testing code. +You should checkout the `docs`_ for more information. + +%prep +%setup -q -n requests-mock-%{version} + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%check +testr init +testr run --parallel + +%files +%defattr(-,root,root,-) +%doc AUTHORS README.rst LICENSE ChangeLog +%{python_sitelib}/* + +%changelog diff --git a/requests-mock-0.6.0.tar.gz b/requests-mock-0.6.0.tar.gz new file mode 100644 index 0000000..9668594 --- /dev/null +++ b/requests-mock-0.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1f10ee53fef6aac6ca54cfb8fdb1b7ca6da59d68ea1a8c21ac513211842ad3e +size 31645