commit python-suds for openSUSE:Factory
Hello community, here is the log from the commit of package python-suds for openSUSE:Factory checked in at 2014-04-17 14:08:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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-01-23 15:54:50.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-suds.new/python-suds.changes 2014-04-17 14:08:48.000000000 +0200 @@ -1,0 +2,14 @@ +Mon Apr 14 08:17:43 UTC 2014 - mcihar@suse.cz + +- Run testsuite using pytest +- Fixed Source URL +- Included HACKING.rst in the documentation + +------------------------------------------------------------------- +Fri Apr 11 11:38:30 UTC 2014 - mcihar@suse.cz + +- Update to version 0.6 (forked upstream) + - supports Python 3 + - many bugfixes see https://bitbucket.org/jurko/suds/overview + +------------------------------------------------------------------- Old: ---- python-suds-0.4.tar.gz New: ---- suds-jurko-0.6.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-suds.spec ++++++ --- /var/tmp/diff_new_pack.XUlUb0/_old 2014-04-17 14:08:49.000000000 +0200 +++ /var/tmp/diff_new_pack.XUlUb0/_new 2014-04-17 14:08:49.000000000 +0200 @@ -17,17 +17,18 @@ Name: python-suds -Version: 0.4 +Version: 0.6 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: %{name}-%{version}.tar.gz +Source: https://pypi.python.org/packages/source/s/suds-jurko/suds-jurko-%{version}.tar.bz2 # PATCH-FIX-UPSTREAM speilicke@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 @@ -53,7 +54,7 @@ * Supports unicode %prep -%setup -q +%setup -q -n suds-jurko-%{version} %patch0 -p1 %build @@ -67,16 +68,11 @@ %fdupes %{buildroot} %check -#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 +py.test %files %defattr(-,root,root,-) -%doc README LICENSE +%doc README.rst LICENSE.txt HACKING.rst %{python_sitelib}/* %changelog ++++++ suds-insecure-cache-tempdir.patch ++++++ --- /var/tmp/diff_new_pack.XUlUb0/_old 2014-04-17 14:08:49.000000000 +0200 +++ /var/tmp/diff_new_pack.XUlUb0/_new 2014-04-17 14:08:49.000000000 +0200 @@ -1,31 +1,52 @@ -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 @@ - """ - +--- a/suds/cache.py ++++ b/suds/cache.py +@@ -26,7 +26,8 @@ + from datetime import datetime as dt + from datetime import timedelta import os -+import shutil - import suds -from tempfile import gettempdir as tmp ++import shutil +import tempfile - from suds.transport import * - from suds.sax.parser import Parser - from suds.sax.element import Element -@@ -138,11 +139,15 @@ + try: + import cPickle as pickle + except Exception: +@@ -111,13 +112,19 @@ + The duration may be: (months|weeks|days|hours|minutes|seconds). @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.location.startswith("/tmp"): ++ if self.auto_location: + 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+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de