Hello community,
here is the log from the commit of package python-piston-mini-client for
openSUSE:Factory checked in at 2013-01-20 14:43:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-piston-mini-client (Old)
and /work/SRC/openSUSE:Factory/.python-piston-mini-client.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-piston-mini-client", Maintainer is ""
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-piston-mini-client/python-piston-mini-client.changes
2012-02-27 18:36:03.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-piston-mini-client.new/python-piston-mini-client.changes
2013-01-20 14:43:12.000000000 +0100
@@ -1,0 +2,25 @@
+Fri Jan 18 14:19:15 UTC 2013 - [email protected]
+
+- Package LICENSE
+
+-------------------------------------------------------------------
+Thu Jan 17 13:18:19 UTC 2013 - [email protected]
+
+- Remove unneeded python3 patch for python2 package
+
+-------------------------------------------------------------------
+Fri Jan 11 18:27:38 UTC 2013 - [email protected]
+
+- Initial python3 support
+
+-------------------------------------------------------------------
+Fri Jan 11 18:13:36 UTC 2013 - [email protected]
+
+- Update to 0.7.3 version:
+ * Add support for latest pep8
+ * Add support for python3
+- Add Fix-test-python3.3.diff : fix tests on raring, py3.3 randomizes
+ dict order which breaks tests that depend on this, also pep8 changed
+ internally so just use the commandline interface (#bln1083772)
+
+-------------------------------------------------------------------
New Changes file:
--- /dev/null 2013-01-09 19:40:42.352580873 +0100
+++
/work/SRC/openSUSE:Factory/.python-piston-mini-client.new/python3-piston-mini-client.changes
2013-01-20 14:43:12.000000000 +0100
@@ -0,0 +1,10 @@
+-------------------------------------------------------------------
+Fri Jan 18 14:19:36 UTC 2013 - [email protected]
+
+- Package LICENSE
+
+-------------------------------------------------------------------
+Fri Jan 11 18:27:55 UTC 2013 - [email protected]
+
+- Initial python3 support
+
Old:
----
piston-mini-client_0.6+bzr48.orig.tar.gz
New:
----
Fix-test-python3.3.diff
piston-mini-client-0.7.3.tar.gz
python3-piston-mini-client.changes
python3-piston-mini-client.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-piston-mini-client.spec ++++++
--- /var/tmp/diff_new_pack.7f0Vr5/_old 2013-01-20 14:43:13.000000000 +0100
+++ /var/tmp/diff_new_pack.7f0Vr5/_new 2013-01-20 14:43:13.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-piston-mini-client
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# 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
@@ -11,24 +11,23 @@
# 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-piston-mini-client
-Version: 0.6+bzr48
+Version: 0.7.3
Release: 0
Url: https://launchpad.net/piston-mini-client
Summary: A small package to consume Django-Piston web services
License: LGPL-3.0
Group: Development/Languages/Python
-#Source:
http://pypi.python.org/packages/source/p/piston-mini-client/piston-mini-client-%{version}.tar.gz
-Source:
https://launchpad.net/ubuntu/precise/+source/piston-mini-client/%{version}-0ubuntu2/+files/piston-mini-client_%{version}.orig.tar.gz
+Source:
http://pypi.python.org/packages/source/p/piston-mini-client/piston-mini-client-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
Provides: python-piston-mini = %{version}
-#TODO: Change back to '<' after next version update:
-Obsoletes: python-piston-mini <= %{version}
+Obsoletes: python-piston-mini < %{version}
%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
@@ -49,7 +48,7 @@
%files
%defattr(-,root,root,-)
-%doc README
+%doc LICENSE README
%{python_sitelib}/*
%changelog
++++++ python3-piston-mini-client.spec ++++++
#
# spec file for package python3-piston-mini-client
#
# 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: python3-piston-mini-client
Version: 0.7.3
Release: 0
Url: https://launchpad.net/piston-mini-client
Summary: A small package to consume Django-Piston web services
License: LGPL-3.0
Group: Development/Languages/Python
#Source:
http://pypi.python.org/packages/source/p/piston-mini-client/piston-mini-client-%{version}.tar.gz
Source:
https://launchpad.net/piston-mini-client/trunk/%{version}/+download/piston-mini-client-%{version}.tar.gz
# Fix-upstream Fix-test-python3.3.diff py3.3 randomizes dict order which breaks
tests that depend on this
Patch: Fix-test-python3.3.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-distribute
BuildArch: noarch
%description
A small generic library for writing clients for Django's Piston REST APIs.
%prep
%setup -q -n piston-mini-client-%{version}
%patch -p0
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE README
%{python3_sitelib}/*
%changelog
++++++ Fix-test-python3.3.diff ++++++
=== modified file 'piston_mini_client/tests/test_log_to_file.py'
--- piston_mini_client/tests/test_log_to_file.py 2012-09-20 15:50:14
+0000
+++ piston_mini_client/tests/test_log_to_file.py 2012-11-27 16:39:05
+0000
@@ -40,10 +40,13 @@
self.assertEqual(10, len(lines))
self.assertTrue(lines[0].endswith(
'Request: POST http://test.info/api/1.0/poke/'))
- self.assertEqual(['Content-type: application/json',
- 'location: ribs', '', '[1, 2, 3]'], lines[1:5])
+ self.assertEqual(
+ set(['Content-type: application/json',
+ 'location: ribs', '', '[1, 2, 3]']),
+ set(lines[1:5]))
self.assertTrue(lines[5].endswith('Response: 201'))
- self.assertEqual(['x-foo: bar', '', '"Go away!"', ''], lines[6:])
+ self.assertEqual(
+ set(['x-foo: bar', '', '"Go away!"', '']), set(lines[6:]))
@patch('httplib2.Http.request')
def test_invalid_logfile_location_doesnt_fail(self, mock_request):
=== modified file 'piston_mini_client/tests/test_pep8.py'
--- piston_mini_client/tests/test_pep8.py 2012-07-30 17:13:34 +0000
+++ piston_mini_client/tests/test_pep8.py 2012-11-27 16:39:05 +0000
@@ -1,42 +1,27 @@
-# -*- coding: utf-8 -*-
-# Copyright 2010-2012 Canonical Ltd. This software is licensed under the
-# GNU Lesser General Public License version 3 (see the file LICENSE).
-
+import glob
import os
-import pep8
+import subprocess
import unittest
-from collections import defaultdict
import piston_mini_client
class PackagePep8TestCase(unittest.TestCase):
- maxDiff = None
+
packages = [piston_mini_client]
exclude = ['socks.py'] # Leave 3rd party dep. alone.
def test_all_code(self):
- pep8style = pep8.StyleGuide(
- counters=defaultdict(int),
- doctest='',
- exclude=self.exclude,
- filename=['*.py'],
- ignore=[],
- messages={},
- repeat=True,
- select=[],
- show_pep8=False,
- show_source=False,
- max_line_length=79,
- quiet=0,
- statistics=False,
- testsuite='',
- verbose=0,
- )
-
+ res = 0
+ py_files = []
for package in self.packages:
- pep8style.input_dir(os.path.dirname(package.__file__))
- self.assertEqual(pep8style.options.report.total_errors, 0)
+ py_files.append(os.path.dirname(package.__file__))
+ res += subprocess.call(
+ ["pep8",
+ #"--verbose",
+ "--repeat",
+ "--exclude", "".join(self.exclude)] + py_files)
+ self.assertEqual(res, 0)
if __name__ == "__main__":
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]