commit 321c3bceeefaa7c15d8368dcb8227dd4b4ce1b36
Author: Elan Ruusamäe <[email protected]>
Date:   Sat Apr 22 22:36:23 2017 +0300

    up to 0.5.0

 python-defusedxml-entity_loop.patch | 14 --------------
 python-defusedxml.spec              |  9 +++++----
 2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/python-defusedxml.spec b/python-defusedxml.spec
index ff0c248..4c20450 100644
--- a/python-defusedxml.spec
+++ b/python-defusedxml.spec
@@ -5,14 +5,15 @@
 %bcond_without python3 # CPython 3.x module
 
 %define        module  defusedxml
+%define                pypi_name       defusedxml
 Summary:       XML bomb protection for Python stdlib modules
 Name:          python-%{module}
-Version:       0.4.1
-Release:       9
+Version:       0.5.0
+Release:       1
 License:       PSF
 Group:         Libraries/Python
-Source0:       
https://pypi.python.org/packages/source/d/defusedxml/defusedxml-%{version}.tar.gz
-# Source0-md5: 230a5eff64f878b392478e30376d673a
+Source0:       
https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+# Source0-md5: 7ff1501366c6d1dcd2de8514dc2b755e
 Patch0:                python-defusedxml-entity_loop.patch
 Patch1:                python-defusedxml-format_strings.patch
 URL:           https://pypi.python.org/pypi/defusedxml
diff --git a/python-defusedxml-entity_loop.patch 
b/python-defusedxml-entity_loop.patch
index 9db8c55..b961d7d 100644
--- a/python-defusedxml-entity_loop.patch
+++ b/python-defusedxml-entity_loop.patch
@@ -36,17 +36,3 @@ diff -ru defusedxml-0.4.1-orig/tests.py 
defusedxml-0.4.1/tests.py
                            self.get_content(self.xml_bomb),
                            forbid_dtd=True)
          self.assertRaises(DTDForbidden, self.parseString,
-@@ -355,8 +356,11 @@
-         pass
- 
-     def test_restricted_element1(self):
--        tree = self.module.parse(self.xml_bomb, forbid_dtd=False,
--                                 forbid_entities=False)
-+        try:
-+            tree = self.module.parse(self.xml_bomb, forbid_dtd=False,
-+                                     forbid_entities=False)
-+        except XMLSyntaxError:
-+            return
-         root = tree.getroot()
-         self.assertEqual(root.text, None)
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-defusedxml.git/commitdiff/321c3bceeefaa7c15d8368dcb8227dd4b4ce1b36

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to