debian/0000775000000000000000000000000012670566037007204 5ustar debian/compat0000664000000000000000000000000212515557341010376 0ustar 9 debian/changelog0000664000000000000000000000053312670566037011057 0ustar pysimplesoap (1.16-1~ubuntu14.04.1) trusty-backports; urgency=medium * No-change backport to trusty (LP: #1556170) -- Scott Kitterman Fri, 11 Mar 2016 11:02:39 -0500 pysimplesoap (1.16-1) unstable; urgency=low * Initial release (Closes: #782970) -- Sandro Tosi Tue, 21 Apr 2015 22:33:37 -0400 debian/patches/0000775000000000000000000000000012515604210010613 5ustar debian/patches/9c062558f14f7045a0ee1d232cee434d917b0d5b.patch0000664000000000000000000000565112515571130017216 0ustar From 9c062558f14f7045a0ee1d232cee434d917b0d5b Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Thu, 12 Mar 2015 23:39:23 -0400 Subject: [PATCH] Fixes Issue#43 (https://github.com/pysimplesoap/pysimplesoap/issues/43) "Python3 give syntax errors when installing from pypi" --- pysimplesoap/c14n.py | 8 ++++---- pysimplesoap/xmlsec.py | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pysimplesoap/c14n.py b/pysimplesoap/c14n.py index be2180a..5749e49 100644 --- a/pysimplesoap/c14n.py +++ b/pysimplesoap/c14n.py @@ -174,7 +174,7 @@ def __init__(self, node, write, **kw): elif node.nodeType == Node.DOCUMENT_TYPE_NODE: pass else: - raise TypeError, str(node) + raise TypeError(str(node)) def _inherit_context(self, node): @@ -217,7 +217,7 @@ def _do_document(self, node): elif child.nodeType == Node.DOCUMENT_TYPE_NODE: pass else: - raise TypeError, str(child) + raise TypeError(str(child)) handlers[Node.DOCUMENT_NODE] = _do_document @@ -346,9 +346,9 @@ def _do_element(self, node, initial_other_attrs = [], unused = None): if not ns_rendered.has_key(prefix) and not ns_local.has_key(prefix): if not ns_unused_inherited.has_key(prefix): - raise RuntimeError,\ + raise RuntimeError(\ 'For exclusive c14n, unable to map prefix "%s" in %s' %( - prefix, node) + prefix, node)) ns_local[prefix] = ns_unused_inherited[prefix] del ns_unused_inherited[prefix] diff --git a/pysimplesoap/xmlsec.py b/pysimplesoap/xmlsec.py index 4cb5fa9..2127c26 100644 --- a/pysimplesoap/xmlsec.py +++ b/pysimplesoap/xmlsec.py @@ -203,15 +203,16 @@ def x509_verify(cacert, cert, binary=False): if __name__ == "__main__": # basic test of enveloping signature (the reference is a part of the xml) sample_xml = """data""" - print canonicalize(sample_xml) + output = canonicalize(sample_xml) + print (output) vars = rsa_sign(sample_xml, '#object', "no_encriptada.key", "password") - print SIGNED_TMPL % vars + print (SIGNED_TMPL % vars) # basic test of enveloped signature (the reference is the document itself) sample_xml = """data%s""" vars = rsa_sign(sample_xml % "", '', "no_encriptada.key", "password", sign_template=SIGN_ENV_TMPL, c14n_exc=False) - print sample_xml % (SIGNATURE_TMPL % vars) + print (sample_xml % (SIGNATURE_TMPL % vars)) # basic signature verification: public_key = x509_extract_rsa_public_key(open("zunimercado.crt").read()) debian/patches/series0000664000000000000000000000005712515571130012036 0ustar 9c062558f14f7045a0ee1d232cee434d917b0d5b.patch debian/copyright0000664000000000000000000000227112515557341011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pysimplesoap Source: https://github.com/pysimplesoap/pysimplesoap Files: * Copyright: Copyright (C) 2013 Mariano Reingart License: LGPL-3 Files: debian/* Copyright: 2015 Sandro Tosi License: LGPL-3 License: LGPL-3 On Debian systems, the complete text of the GNU Lesser General Public License version 3 can be found in "/usr/share/common-licenses/LGPL-3". Files: pysimplesoap/c14n.py Copyright: Copyright 2001, Zolera Systems Inc. All Rights Reserved. Copyright 2001, MIT. All Rights Reserved. License: Python-2.0 http://www.python.org/2.0.1/license.html or W3C Software License http://www.w3.org/Consortium/Legal/copyright-software-19980720 Files: samples/wsaa_py.py Copyright: Copyright (C) 2008-2011 Mariano Reingart License: GPL-3+ Files: tests/afip_test.py tests/cfdi_mx_test.py tests/nfp_br_test.py tests/sri_ec_test.py License: GPL-3+ Files: tests/trazamed_test.py Copyright: Copyright (C) 2011 Mariano Reingart License: GPL-3+ License: GPL-3+ On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/rules0000775000000000000000000000074312515564701010262 0ustar #!/usr/bin/make -f %: dh $@ --with python2,python3 override_dh_auto_install: python setup.py install --root=debian/python-pysimplesoap --install-layout=deb python3 setup.py install --root=debian/python3-pysimplesoap --install-layout=deb rm -rf debian/python*-pysimplesoap/usr/lib/python*/dist-packages/*.egg-info/ override_dh_installdocs: dh_installdocs -A README.md override_dh_installexamples: dh_installexamples -A samples/* override_dh_compress: dh_compress -X.py debian/control0000664000000000000000000000247212515567642010615 0ustar Source: pysimplesoap Section: python Priority: optional Maintainer: Sandro Tosi Build-Depends: debhelper (>= 9), python, python3, dh-python, python-setuptools, python3-setuptools Standards-Version: 3.9.6 Homepage: http://code.google.com/p/pysimplesoap Package: python-pysimplesoap Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-httplib2, python-pycurl Description: simple and lightweight SOAP Library (Python 2) Python simple and lightweigh SOAP library for client and server webservices interfaces, aimed to be as small and easy as possible, supporting most common functionality. Initially it was inspired by PHP Soap Extension (mimicking its functionality, simplicity and ease of use), with many advanced features added. Package: python3-pysimplesoap Architecture: all Depends: ${python3:Depends}, ${misc:Depends}, python3-httplib2, python3-pycurl Description: simple and lightweight SOAP Library (Python 3) Python simple and lightweigh SOAP library for client and server webservices interfaces, aimed to be as small and easy as possible, supporting most common functionality. Initially it was inspired by PHP Soap Extension (mimicking its functionality, simplicity and ease of use), with many advanced features added. . This package contains the Python 3 version of pysimplesoap . debian/source/0000775000000000000000000000000012515604210010464 5ustar debian/source/format0000664000000000000000000000001412515557341011706 0ustar 3.0 (quilt) debian/watch0000664000000000000000000000046412515557713010240 0ustar version=3 #opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ #http://pypi.debian.net/PySimpleSOAP/PySimpleSOAP-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) opts="filenamemangle=s/(?:.*)?v?(\d[\d\.]*)\.tar\.gz/-$1.tar.gz/" \ https://github.com/pysimplesoap/pysimplesoap/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz