commit 3352eb1c816648be5b1941449faa4dec964e8157
Author: Jakub Bogusz <[email protected]>
Date:   Sat Jan 23 21:31:03 2021 +0100

    - added lxml patch (fix for lxml 4.4+); release 3

 python-bs4-lxml.patch | 14 ++++++++++++++
 python-bs4.spec       |  4 +++-
 2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/python-bs4.spec b/python-bs4.spec
index f98a894..ad46605 100644
--- a/python-bs4.spec
+++ b/python-bs4.spec
@@ -10,13 +10,14 @@ Summary:    beautifulsoup4 - Screen-scraping library
 Summary(pl.UTF-8):     beautifulsoup4 - biblioteka przechwytująca wyjście
 Name:          python-%{module}
 Version:       4.6.0
-Release:       2
+Release:       3
 License:       MIT
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/beautifulsoup4/
 Source0:       
https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
 # Source0-md5: c17714d0f91a23b708a592cb3c697728
 Patch0:                test_suite.patch
+Patch1:                %{name}-lxml.patch
 URL:           https://www.crummy.com/software/BeautifulSoup/
 BuildRequires: rpmbuild(macros) >= 1.714
 BuildRequires: rpm-pythonprov
@@ -73,6 +74,7 @@ Dokumentacja API modułu Pythona beautifulsoup4.
 %prep
 %setup -q -n beautifulsoup4-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %if %{with python2}
diff --git a/python-bs4-lxml.patch b/python-bs4-lxml.patch
new file mode 100644
index 0000000..4a2ce43
--- /dev/null
+++ b/python-bs4-lxml.patch
@@ -0,0 +1,14 @@
+--- beautifulsoup4-4.6.0/bs4/element.py.orig   2017-05-07 14:15:39.000000000 
+0200
++++ beautifulsoup4-4.6.0/bs4/element.py        2021-01-23 20:55:10.229088076 
+0100
+@@ -29,6 +29,11 @@
+ class NamespacedAttribute(unicode):
+ 
+     def __new__(cls, prefix, name, namespace=None):
++        if not name:
++            # This is the default namespace. Its name "has no value"
++            # per https://www.w3.org/TR/xml-names/#defaulting
++            name = None
++
+         if name is None:
+             obj = unicode.__new__(cls, prefix)
+         elif prefix is None:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-bs4.git/commitdiff/3352eb1c816648be5b1941449faa4dec964e8157

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

Reply via email to