Hello community, here is the log from the commit of package python-slumber for openSUSE:Factory checked in at 2012-05-07 22:50:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-slumber (Old) and /work/SRC/openSUSE:Factory/.python-slumber.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-slumber", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/python-slumber/python-slumber.changes 2012-03-26 11:05:35.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-slumber.new/python-slumber.changes 2012-05-07 22:50:51.000000000 +0200 @@ -1,0 +2,12 @@ +Fri Apr 13 11:48:42 UTC 2012 - saschpe@suse.de + +- Update to version 0.4.1: + + Added a session kwarg to slumber.API allowing passing a requests + session that will be used instead of the slumber created one + +------------------------------------------------------------------- +Wed Apr 11 18:33:23 UTC 2012 - saschpe@gmx.de + +- Disable testsuite on SLE_11_SP2 to fix build + +------------------------------------------------------------------- Old: ---- slumber-0.4.tar.gz New: ---- slumber-0.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-slumber.spec ++++++ --- /var/tmp/diff_new_pack.Yge21P/_old 2012-05-07 22:50:52.000000000 +0200 +++ /var/tmp/diff_new_pack.Yge21P/_new 2012-05-07 22:50:52.000000000 +0200 @@ -11,12 +11,13 @@ # 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-slumber -Version: 0.4 +Version: 0.4.1 Release: 0 Url: http://slumber.in/ Summary: A library that makes consuming a REST API easier and more convenient @@ -40,7 +41,7 @@ %description Slumber is a python library that provides a convenient yet powerful object orientated interface to ReSTful APIs. It acts as a wrapper around the -excellent requests_ library and abstracts away the handling of urls, serialization, +excellent requests library and abstracts away the handling of urls, serialization, and processing requests. %prep @@ -52,8 +53,10 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if 0%{?suse_version} != 1110 %check python setup.py test +%endif %files %defattr(-,root,root,-) ++++++ slumber-0.4.tar.gz -> slumber-0.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4/CHANGELOG.rst new/slumber-0.4.1/CHANGELOG.rst --- old/slumber-0.4/CHANGELOG.rst 2012-01-05 06:43:35.000000000 +0100 +++ new/slumber-0.4.1/CHANGELOG.rst 2012-04-13 01:25:10.000000000 +0200 @@ -1,6 +1,13 @@ Changelog ========= + +0.4.1 +----- + +* Added a ``session`` kwarg to ``slumber.API`` allowing passing a ``requests`` session + that will be used instead of the slumber created one + 0.4.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4/PKG-INFO new/slumber-0.4.1/PKG-INFO --- old/slumber-0.4/PKG-INFO 2012-01-05 06:45:08.000000000 +0100 +++ new/slumber-0.4.1/PKG-INFO 2012-04-13 01:25:56.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: slumber -Version: 0.4 +Version: 0.4.1 Summary: A library that makes consuming a REST API easier and more convenient Home-page: http://slumber.in/ Author: Donald Stufft @@ -55,6 +55,13 @@ Changelog ========= + + 0.4.1 + ----- + + * Added a ``session`` kwarg to ``slumber.API`` allowing passing a ``requests`` session + that will be used instead of the slumber created one + 0.4.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4/docs/options.rst new/slumber-0.4.1/docs/options.rst --- old/slumber-0.4/docs/options.rst 2012-01-05 06:43:35.000000000 +0100 +++ new/slumber-0.4.1/docs/options.rst 2012-04-13 01:25:01.000000000 +0200 @@ -21,7 +21,7 @@ You supply the username and password (for Basic Auth) like:: - api = slumber.API("http://path/to/my/api/", auth("myuser", "mypass")) + api = slumber.API("http://path/to/my/api/", auth=("myuser", "mypass")) And slumber will attempt to use those credentials with each request. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4/docs/tutorial.rst new/slumber-0.4.1/docs/tutorial.rst --- old/slumber-0.4/docs/tutorial.rst 2012-01-05 06:44:17.000000000 +0100 +++ new/slumber-0.4.1/docs/tutorial.rst 2012-04-13 01:25:01.000000000 +0200 @@ -36,7 +36,7 @@ >>> import slumber >>> ## Connect to http://slumber.in/api/v1/ with the Basic Auth user/password of demo/demo - >>> api = slumber.API("http://slumber.in/api/v1/", auth("demo", "demo") + >>> api = slumber.API("http://slumber.in/api/v1/", auth=("demo", "demo") >>> ## GET http://slumber.in/api/v1/note/ >>> ## Note: Any kwargs passed to get(), post(), put(), delete() will be used as url parameters >>> api.note.get() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4/setup.py new/slumber-0.4.1/setup.py --- old/slumber-0.4/setup.py 2012-01-05 06:43:35.000000000 +0100 +++ new/slumber-0.4.1/setup.py 2012-04-13 01:25:30.000000000 +0200 @@ -11,7 +11,7 @@ setup( name = "slumber", - version = "0.4", + version = "0.4.1", description = "A library that makes consuming a REST API easier and more convenient", long_description="\n\n".join([ open(os.path.join(base_dir, "README.rst"), "r").read(), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4/slumber/__init__.py new/slumber-0.4.1/slumber/__init__.py --- old/slumber-0.4/slumber/__init__.py 2012-01-05 06:43:35.000000000 +0100 +++ new/slumber-0.4.1/slumber/__init__.py 2012-04-13 01:25:10.000000000 +0200 @@ -98,7 +98,7 @@ if self._store["append_slash"] and not url.endswith("/"): url = url + "/" - resp = self._store["session"].request(method, url, data=data, params=params, headers={"content-type": s.get_content_type()}) + resp = self._store["session"].request(method, url, data=data, params=params, headers={"content-type": s.get_content_type(), "accept": s.get_content_type()}) if 400 <= resp.status_code <= 499: raise exceptions.HttpClientError("Client Error %s: %s" % (resp.status_code, url), response=resp, content=resp.content) @@ -159,12 +159,12 @@ class API(ResourceAttributesMixin, object): - def __init__(self, base_url=None, auth=None, format=None, append_slash=True): + def __init__(self, base_url=None, auth=None, format=None, append_slash=True, session=None): self._store = { "base_url": base_url, "format": format if format is not None else "json", "append_slash": append_slash, - "session": requests.session(auth=auth), + "session": requests.session(auth=auth) if session is None else session, } # Do some Checks for Required Values diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4/slumber.egg-info/PKG-INFO new/slumber-0.4.1/slumber.egg-info/PKG-INFO --- old/slumber-0.4/slumber.egg-info/PKG-INFO 2012-01-05 06:45:08.000000000 +0100 +++ new/slumber-0.4.1/slumber.egg-info/PKG-INFO 2012-04-13 01:25:55.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: slumber -Version: 0.4 +Version: 0.4.1 Summary: A library that makes consuming a REST API easier and more convenient Home-page: http://slumber.in/ Author: Donald Stufft @@ -55,6 +55,13 @@ Changelog ========= + + 0.4.1 + ----- + + * Added a ``session`` kwarg to ``slumber.API`` allowing passing a ``requests`` session + that will be used instead of the slumber created one + 0.4.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4/tests/resource.py new/slumber-0.4.1/tests/resource.py --- old/slumber-0.4/tests/resource.py 2012-01-05 06:43:35.000000000 +0100 +++ new/slumber-0.4.1/tests/resource.py 2012-04-13 01:25:10.000000000 +0200 @@ -32,5 +32,5 @@ "http://example/api/v1/test", data=None, params=None, - headers={"content-type": self.base_resource.get_serializer().get_content_type()} + headers={"content-type": self.base_resource.get_serializer().get_content_type(), "accept": self.base_resource.get_serializer().get_content_type()} ) -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org