Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
1ae0470a6c
!13 【轻量级 PR】:fix bogus date in %changelog
From: @loong-C 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
2022-06-17 02:00:19 +00:00
loong-C
7c093a3f93
fix bogus date in %changelog 2022-06-16 03:25:22 +00:00
openeuler-ci-bot
add3b769db !10 update python-html5lib version from to 1.1
From: @zzm_567
Reviewed-by: @zengwefeng
Signed-off-by: @zengwefeng
2021-01-28 10:00:51 +08:00
zhanzhimin
f34af0bf9f update to 1.1 2021-01-27 17:19:35 +08:00
openeuler-ci-bot
c453ceffc5 !7 python-html5lib: modify source0 url
From: @chengguipeng_xian
Reviewed-by: @orange-snn,@yanan-rock
Signed-off-by: @orange-snn,@yanan-rock
2020-09-28 17:03:46 +08:00
chengguipeng_xian
2f6c7de1ec update python-html5lib.spec. 2020-09-10 16:56:06 +08:00
chengguipeng
0705b25518 python-html5lib: modify source0 url
Signed-off-by: chengguipeng <chengguipeng1@huawei.com>
2020-09-10 14:28:23 +08:00
openeuler-ci-bot
ecf99bc4db !6 delete python dependencies
Merge pull request !6 from 周海波/master
2020-07-17 10:06:17 +08:00
zhouhaibo055
dde47a3f5d delete python2 dependencies 2020-07-17 09:20:18 +08:00
zhouhaibo055
8c72aec1a8 delete python2 dependencies 2020-07-16 11:04:16 +08:00
4 changed files with 13 additions and 64 deletions

BIN
1.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,44 +0,0 @@
From 322a2d57bfdc52a9ce14bee93f9abb372cc08487 Mon Sep 17 00:00:00 2001
From: 5j9 <5j9@users.noreply.github.com>
Date: Sun, 23 Sep 2018 11:32:46 +0330
Subject: [PATCH] Try to import MutableMapping from collections.abc
Note that collections.abc has been added in Python 3.3.
Fixes #402
---
html5lib/_trie/_base.py | 5 ++++-
html5lib/treebuilders/dom.py | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/html5lib/_trie/_base.py b/html5lib/_trie/_base.py
index a1158bbb..6b71975f 100644
--- a/html5lib/_trie/_base.py
+++ b/html5lib/_trie/_base.py
@@ -1,6 +1,9 @@
from __future__ import absolute_import, division, unicode_literals
-from collections import Mapping
+try:
+ from collections.abc import Mapping
+except ImportError: # Python 2.7
+ from collections import Mapping
class Trie(Mapping):
diff --git a/html5lib/treebuilders/dom.py b/html5lib/treebuilders/dom.py
index dcfac220..d8b53004 100644
--- a/html5lib/treebuilders/dom.py
+++ b/html5lib/treebuilders/dom.py
@@ -1,7 +1,10 @@
from __future__ import absolute_import, division, unicode_literals
-from collections import MutableMapping
+try:
+ from collections.abc import MutableMapping
+except ImportError: # Python 2.7
+ from collections import MutableMapping
from xml.dom import minidom, Node
import weakref

Binary file not shown.

View File

@ -1,12 +1,12 @@
Name: python-html5lib Name: python-html5lib
Version: 1.0.1 Version: 1.1
Release: 6 Release: 1
Epoch: 1 Epoch: 1
Summary: HTML parser based on the WHAT-WG Web Applications 1 Summary: HTML parser based on the WHAT-WG Web Applications 1
License: MIT License: MIT
URL: https://github.com/html5lib/html5lib-python URL: https://github.com/html5lib/html5lib-python
Source0: https://github.com/html5lib/html5lib-python/archive/html5lib-python-%{version}.tar.gz Source0: https://github.com/html5lib/html5lib-python/archive/%{version}.tar.gz
Patch0: collections-abc.patch
BuildArch: noarch BuildArch: noarch
@ -16,15 +16,6 @@ BuildArch: noarch
Html5lib is a pure-python library for parsing HTML. It is designed to conform Html5lib is a pure-python library for parsing HTML. It is designed to conform
to the WHATWG HTML specification, as is implemented by all major web browsers. to the WHATWG HTML specification, as is implemented by all major web browsers.
#%%package -n python2-html5lib
#Summary: python2 package for html5lib
#BuildRequires: python2-devel python2-setuptools python2-mock python2-pytest python2-six
#BuildRequires: python2-webencodings python2-chardet python2-genshi python2-lxml
#%%{?python_provide:%python_provide python2-html5lib}
#%%description -n python2-html5lib
#python2 package for html5lib.
%package -n python3-html5lib %package -n python3-html5lib
Summary: python3 package for html5lib Summary: python3 package for html5lib
@ -41,18 +32,11 @@ python3 package for html5lib.
%autosetup -n html5lib-python-%{version} -p1 %autosetup -n html5lib-python-%{version} -p1
%build %build
#%%py2_build
%py3_build %py3_build
%install %install
#%%py2_install
%py3_install %py3_install
#%files -n python2-html5lib
#%defattr(-,root,root)
#%license LICENSE
#%{python2_sitelib}/*
%files -n python3-html5lib %files -n python3-html5lib
%defattr(-,root,root) %defattr(-,root,root)
%license LICENSE %license LICENSE
@ -63,6 +47,15 @@ python3 package for html5lib.
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
%changelog %changelog
* Wed Jan 27 2021 zhanzhimin <zhanzhimin@huawei.com> - 1.1-1
- update to 1.1
* Thu Sep 10 2020 chengguipeng<chengguipeng1@huawei.com> - 1.0.1-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify source0 url
* Wed Jul 15 2020 zhouhaibo <zhouhaibo@huawei.com> - 1.0.1-6 * Wed Jul 15 2020 zhouhaibo <zhouhaibo@huawei.com> - 1.0.1-6
- Type:bugfix - Type:bugfix
- Id:NA - Id:NA