Hello community, here is the log from the commit of package python-suds for openSUSE:Factory checked in at 2014-06-04 18:39:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-suds (Old) and /work/SRC/openSUSE:Factory/.python-suds.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-suds" Changes: -------- --- /work/SRC/openSUSE:Factory/python-suds/python-suds.changes 2014-04-17 14:08:48.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-suds.new/python-suds.changes 2014-06-04 18:39:24.000000000 +0200 @@ -1,0 +2,6 @@ +Wed May 21 10:54:00 UTC 2014 - dmuel...@suse.com + +- revert to python-suds. If you want to package suds-jurko, + call the package python-suds-jurko. + +------------------------------------------------------------------- Old: ---- suds-jurko-0.6.tar.bz2 New: ---- python-suds-0.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-suds.spec ++++++ --- /var/tmp/diff_new_pack.jVxgTA/_old 2014-06-04 18:39:26.000000000 +0200 +++ /var/tmp/diff_new_pack.jVxgTA/_new 2014-06-04 18:39:26.000000000 +0200 @@ -17,18 +17,17 @@ Name: python-suds -Version: 0.6 +Version: 0.4 Release: 0 Summary: A lightweight SOAP python client that provides a service proxy for Web Services License: LGPL-3.0+ Group: Development/Languages/Python Url: https://fedorahosted.org/suds -Source: https://pypi.python.org/packages/source/s/suds-jurko/suds-jurko-%{version}.tar.bz2 +Source: %{name}-%{version}.tar.gz # PATCH-FIX-UPSTREAM speili...@suse.com Patch0: suds-insecure-cache-tempdir.patch BuildRequires: fdupes BuildRequires: python-devel -BuildRequires: python-pytest BuildRequires: python-setuptools BuildRequires: python-xml BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -54,7 +53,7 @@ * Supports unicode %prep -%setup -q -n suds-jurko-%{version} +%setup -q %patch0 -p1 %build @@ -68,11 +67,16 @@ %fdupes %{buildroot} %check -py.test +#NOTE(saschpe): We can only run tests that don't need internet or server access. +# Put the installed 'suds' module and the local 'tests' module into PYTHONPATH: +export PYTHONPATH=%{buildroot}%{python_sitelib}:. +for t in builtin saxenc ; do +python tests/$t.py +done %files %defattr(-,root,root,-) -%doc README.rst LICENSE.txt HACKING.rst +%doc README LICENSE %{python_sitelib}/* %changelog ++++++ suds-insecure-cache-tempdir.patch ++++++ --- /var/tmp/diff_new_pack.jVxgTA/_old 2014-06-04 18:39:26.000000000 +0200 +++ /var/tmp/diff_new_pack.jVxgTA/_new 2014-06-04 18:39:26.000000000 +0200 @@ -1,52 +1,31 @@ ---- a/suds/cache.py -+++ b/suds/cache.py -@@ -26,7 +26,8 @@ - from datetime import datetime as dt - from datetime import timedelta +diff -ruN a/suds/cache.py b/suds/cache.py +--- a/suds/cache.py 2010-04-14 21:04:17.000000000 +0200 ++++ b/suds/cache.py 2013-11-27 14:16:34.968138726 +0100 +@@ -19,8 +19,9 @@ + """ + import os --from tempfile import gettempdir as tmp +import shutil + import suds +-from tempfile import gettempdir as tmp +import tempfile - try: - import cPickle as pickle - except Exception: -@@ -111,13 +112,19 @@ - The duration may be: (months|weeks|days|hours|minutes|seconds). + from suds.transport import * + from suds.sax.parser import Parser + from suds.sax.element import Element +@@ -138,11 +139,15 @@ @type duration: {unit:value} """ -+ self.auto_location = False if location is None: - location = os.path.join(tmp(), 'suds') + location = tempfile.mkdtemp() -+ self.auto_location = True self.location = location self.duration = (None, 0) self.setduration(**duration) self.checkversion() - ++ + def __del__(self): -+ if self.auto_location: ++ if self.location.startswith("/tmp"): + shutil.rmtree(self.location) -+ + def fnsuffix(self): """ - Get the file name suffix ---- a/tests/test_cache.py -+++ b/tests/test_cache.py -@@ -134,12 +134,12 @@ - - - def test_FileCache_location(tmpdir): -- defaultLocation = os.path.join(tempfile.gettempdir(), "suds") -+ defaultLocation = tempfile.gettempdir() - cache = suds.cache.FileCache() - assert os.path.isdir(cache.location) -- assert cache.location == defaultLocation -- assert suds.cache.FileCache().location == defaultLocation -- assert cache.location == defaultLocation -+ assert cache.location.startswith(defaultLocation) -+ assert suds.cache.FileCache().location.startswith(defaultLocation) -+ assert cache.location.startswith(defaultLocation) - - cacheFolder1 = tmpdir.join("flip-flop1").strpath - assert not os.path.isdir(cacheFolder1) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org