UPDATE: devel/py-html5lib

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

UPDATE: devel/py-html5lib

Ingo Feinerer-2
Hi,

this updates py-html5lib to 1.0.1.

Works fine with www/buku on amd64.

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/py-html5lib/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- Makefile 15 May 2019 12:04:36 -0000 1.18
+++ Makefile 18 Jun 2019 05:06:09 -0000
@@ -2,11 +2,10 @@
 
 COMMENT= HTML parser/tokeniser based for HTML5
 
-MODPY_EGG_VERSION= 0.999999999
+MODPY_EGG_VERSION= 1.0.1
 DISTNAME= html5lib-${MODPY_EGG_VERSION}
 PKGNAME= py-${DISTNAME}
 CATEGORIES= devel www textproc
-REVISION= 1
 
 HOMEPAGE= https://github.com/html5lib/html5lib-python/
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/py-html5lib/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo 28 Jun 2017 18:02:23 -0000 1.4
+++ distinfo 18 Jun 2019 05:06:09 -0000
@@ -1,2 +1,2 @@
-SHA256 (html5lib-0.999999999.tar.gz) = 7nR8D/0wKNJyIGGTa1xl7k/hPI5GE1GbREcSP8RUYpg=
-SIZE (html5lib-0.999999999.tar.gz) = 245488
+SHA256 (html5lib-1.0.1.tar.gz) = ZssNz9u8T5w7oaY/21Ef/b1PUTsrbYG4DNJs5rP7NzY=
+SIZE (html5lib-1.0.1.tar.gz) = 252959

Reply | Threaded
Open this post in threaded view
|

Re: UPDATE: devel/py-html5lib

Kurt Mosiejczuk-9
On Tue, Jun 18, 2019 at 07:10:00AM +0200, Ingo Feinerer wrote:
> Hi,

> this updates py-html5lib to 1.0.1.

> Works fine with www/buku on amd64.

> OK?

Works ok for me on amd64 for py-bleach, py-beautifulsoup4 and gpodder.
py-pandas tests seems to be broken at the moment (seems to be using
a deprecated method in pytest, I'm investigating).

I'd like to propose this diff which changes to PERMIT_PACKAGE and includes
a patch that should be in the next upstream release of py-html5lib that
allows the tests to actually run. Also adds py-mock to the TEST_DEPENDS.

With these changes, OK kmos

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/py-html5lib/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- Makefile 15 May 2019 12:04:36 -0000 1.18
+++ Makefile 18 Jun 2019 16:17:26 -0000
@@ -2,16 +2,15 @@
 
 COMMENT= HTML parser/tokeniser based for HTML5
 
-MODPY_EGG_VERSION= 0.999999999
+MODPY_EGG_VERSION= 1.0.1
 DISTNAME= html5lib-${MODPY_EGG_VERSION}
 PKGNAME= py-${DISTNAME}
 CATEGORIES= devel www textproc
-REVISION= 1
 
 HOMEPAGE= https://github.com/html5lib/html5lib-python/
 
 # MIT
-PERMIT_PACKAGE_CDROM= Yes
+PERMIT_PACKAGE= Yes
 
 MODULES= lang/python
 
@@ -21,7 +20,8 @@ MODPY_PYTEST = Yes
 
 RUN_DEPENDS = devel/py-six${MODPY_FLAVOR} \
  textproc/py-webencodings${MODPY_FLAVOR}
-TEST_DEPENDS = devel/py-test-expect${MODPY_FLAVOR} \
+TEST_DEPENDS = devel/py-mock${MODPY_FLAVOR} \
+ devel/py-test-expect${MODPY_FLAVOR} \
  textproc/py-chardet${MODPY_FLAVOR} \
  textproc/py-lxml${MODPY_FLAVOR}
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/py-html5lib/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo 28 Jun 2017 18:02:23 -0000 1.4
+++ distinfo 18 Jun 2019 16:17:26 -0000
@@ -1,2 +1,2 @@
-SHA256 (html5lib-0.999999999.tar.gz) = 7nR8D/0wKNJyIGGTa1xl7k/hPI5GE1GbREcSP8RUYpg=
-SIZE (html5lib-0.999999999.tar.gz) = 245488
+SHA256 (html5lib-1.0.1.tar.gz) = ZssNz9u8T5w7oaY/21Ef/b1PUTsrbYG4DNJs5rP7NzY=
+SIZE (html5lib-1.0.1.tar.gz) = 252959
Index: patches/patch-html5lib_tests_test_stream_py
===================================================================
RCS file: patches/patch-html5lib_tests_test_stream_py
diff -N patches/patch-html5lib_tests_test_stream_py
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-html5lib_tests_test_stream_py 18 Jun 2019 16:17:26 -0000
@@ -0,0 +1,22 @@
+$OpenBSD$
+
+Fix from upstream that is not in a release yet for pytest 4.x
+
+Index: html5lib/tests/test_stream.py
+--- html5lib/tests/test_stream.py.orig
++++ html5lib/tests/test_stream.py
+@@ -308,9 +308,11 @@ def test_invalid_codepoints(inp, num):
+                           ("'\\uD800\\uD800\\uD800'", 3),
+                           ("'a\\uD800a\\uD800a\\uD800a'", 3),
+                           ("'\\uDFFF\\uDBFF'", 2),
+-                          pytest.mark.skipif(sys.maxunicode == 0xFFFF,
+-                                             ("'\\uDBFF\\uDFFF'", 2),
+-                                             reason="narrow Python")])
++  pytest.param(
++      "'\\uDBFF\\uDFFF'", 2,
++      marks=pytest.mark.skipif(
++  sys.maxunicode == 0xFFFF,
++  reason="narrow Python"))])
+ def test_invalid_codepoints_surrogates(inp, num):
+     inp = eval(inp)  # pylint:disable=eval-used
+     fp = StringIO(inp)