Hello community,

here is the log from the commit of package python-oauth2 for openSUSE:Factory 
checked in at 2013-04-26 13:34:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oauth2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-oauth2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-oauth2", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2013-04-05 00:01:41.916011506 +0200
+++ /work/SRC/openSUSE:Factory/.python-oauth2.new/python-oauth2.changes 
2013-04-26 13:34:20.000000000 +0200
@@ -0,0 +1,28 @@
+-------------------------------------------------------------------
+Thu Apr 25 11:03:46 UTC 2013 - [email protected]
+
+- Don't install testsuite
+
+-------------------------------------------------------------------
+Wed Apr 24 09:17:53 UTC 2013 - [email protected]
+
+- Add build dependency on python to get access to the ssl module
+
+-------------------------------------------------------------------
+Tue Apr 23 12:01:37 UTC 2013 - [email protected]
+
+- Update to version 1.5.211:
+  + Upstream provides no changelog
+- Completely redone spec file (with py2pack)
+- Run testsuite
+
+-------------------------------------------------------------------
+Sat May 28 22:29:44 UTC 2011 - [email protected]
+
+- remove python_sitelib/tests from package
+
+-------------------------------------------------------------------
+Sat May 28 19:54:53 CET 2011 - [email protected]
+
+- initial version (1.5.170)
+

New:
----
  oauth2-1.5.211.tar.gz
  oauth2-drop-tests-with-net-access.patch
  python-oauth2.changes
  python-oauth2.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-oauth2.spec ++++++
#
# spec file for package python-oauth2
#
# Copyright (c) 2013 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/


Name:           python-oauth2
Version:        1.5.211
Release:        0
License:        MIT
Summary:        A fully tested, abstract interface to creating OAuth clients 
and servers
Url:            http://github.com/simplegeo/python-oauth2
Group:          Development/Languages/Python
Source:         
http://pypi.python.org/packages/source/o/oauth2/oauth2-%{version}.tar.gz
Patch0:         oauth2-drop-tests-with-net-access.patch
BuildRequires:  python-devel
BuildRequires:  python-distribute
# Test requirements:
BuildRequires:  python
BuildRequires:  python-coverage
BuildRequires:  python-httplib2
BuildRequires:  python-mock
Requires:       python-httplib2
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
This code was originally forked from Leah Culver and Andy Smith's oauth.py code.
Some of the tests come from a fork by Vic Fryzel, while a revamped Request
class and more tests were merged in from Mark Paschal's fork. 

%prep
%setup -q -n oauth2-%{version}
%patch0 -p1

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -r %{buildroot}%{python_sitelib}/tests # Global test module is just wrong

%check
python setup.py test

%files
%defattr(-,root,root,-)
%{python_sitelib}/*

%changelog
++++++ oauth2-drop-tests-with-net-access.patch ++++++
diff -ruN a/tests/test_oauth.py b/tests/test_oauth.py
--- a/tests/test_oauth.py       2011-12-13 18:38:58.000000000 +0100
+++ b/tests/test_oauth.py       2013-04-23 13:50:57.053848464 +0200
@@ -1193,41 +1193,6 @@
         except ValueError:
             pass
 
-    def test_access_token_get(self):
-        """Test getting an access token via GET."""
-        client = oauth.Client(self.consumer, None)
-        resp, content = client.request(self._uri('request_token'), "GET")
-
-        self.assertEquals(int(resp['status']), 200)
-
-    def test_access_token_post(self):
-        """Test getting an access token via POST."""
-        client = oauth.Client(self.consumer, None)
-        resp, content = client.request(self._uri('request_token'), "POST")
-
-        self.assertEquals(int(resp['status']), 200)
-
-        res = dict(parse_qsl(content))
-        self.assertTrue('oauth_token' in res)
-        self.assertTrue('oauth_token_secret' in res)
-
-    def _two_legged(self, method):
-        client = oauth.Client(self.consumer, None)
-
-        return client.request(self._uri('two_legged'), method,
-            body=urllib.urlencode(self.body))
-
-    def test_two_legged_post(self):
-        """A test of a two-legged OAuth POST request."""
-        resp, content = self._two_legged("POST")
-
-        self.assertEquals(int(resp['status']), 200)
-
-    def test_two_legged_get(self):
-        """A test of a two-legged OAuth GET request."""
-        resp, content = self._two_legged("GET")
-        self.assertEquals(int(resp['status']), 200)
-
     @mock.patch('httplib2.Http.request')
     def test_multipart_post_does_not_alter_body(self, mockHttpRequest):
         random_result = random.randint(1,100)
Binary files a/tests/.test_oauth.py.swp and b/tests/.test_oauth.py.swp differ
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to