Hi ports@,

Here's an update for www/py-beautifulsoup4 from 4.7.1 to 4.8.1.  Here
you can find the changelog:

https://bazaar.launchpad.net/~leonardr/beautifulsoup/bs4/view/head:/CHANGELOG

It works for me on amd64 and all tests pass for py2 and py3.  I had to
modify PLIST by hand.  The `update-plist` target was creating lines like
this:

  
lib/python${MODPY_VERSION}/site-packages/bs4/tests/${MODPY_PYCACHE}test_builder_registry.cpython-37-PYTEST.pyc
  
lib/python${MODPY_VERSION}/site-packages/bs4/tests/${MODPY_PYCACHE}test_docs.cpython-37-PYTEST.pyc
  
lib/python${MODPY_VERSION}/site-packages/bs4/tests/${MODPY_PYCACHE}test_html5lib.cpython-37-PYTEST.pyc
  
lib/python${MODPY_VERSION}/site-packages/bs4/tests/${MODPY_PYCACHE}test_htmlparser.cpython-37-PYTEST.pyc
  
lib/python${MODPY_VERSION}/site-packages/bs4/tests/${MODPY_PYCACHE}test_lxml.cpython-37-PYTEST.pyc
  
lib/python${MODPY_VERSION}/site-packages/bs4/tests/${MODPY_PYCACHE}test_soup.cpython-37-PYTEST.pyc
  
lib/python${MODPY_VERSION}/site-packages/bs4/tests/${MODPY_PYCACHE}test_tree.cpython-37-PYTEST.pyc

Which obviously made the py2 version of the package crash.  I tried to
replace the `cpython-37` with `${MODPY_PYC_MAGIC_TAG}` but that adds an
extra `.` that made packaging fail.  I removed them entirely as they
are not present if I do a manual install with pip on a virtualenv, so
I assume they are a by-product of testing and not really needed.  Let me
know if that's correct.

This port has quite a few consumers.  I ran `make regress` (for py2 and
py3 as needed) on all of them.  Here are the results.

  /usr/ports/audio/beets
      all tests pass
  /usr/ports/www/py-webtest
      crashes because it needs wsgiproxy2 which does not seem to be in
      ports ???
  /usr/ports/multimedia/py-caption
      it has NO_TEST set
  /usr/ports/net/py-siphon
      says no tests ran
  /usr/ports/net/toot
      all tests pass
  /usr/ports/textproc/py-ofxparse
      all test pass
  /usr/ports/security/theharvester
      all tests pass
  /usr/ports/security/wapiti
      all tests pass
  /usr/ports/www/buku
      It does not build because it lacks one dependency `vcrpy` which is
      not in ports it seems.  PRIVSEP prevents `pip` to do it's thing.
  /usr/ports/x11/nagstamon
      no regression tests
  /usr/ports/math/py-pandas
      This one is totally nuts ...
    py2
      664 failed, 43571 passed, 2839 skipped, 765 xfailed, 21 xpassed,
      29 warnings, 151 error in 4419.36 seconds (most of the errors are
      for missing test data files).
    py3
      667 failed, 43507 passed, 2423 skipped, 998 xfailed, 23 xpassed,
      848 warnings, 163 error in 3643.97 seconds (most of the errors are
      for missing test data files).
  /usr/ports/www/py-soupsieve
      all tests pass

If someone could take a look it would be nice.  Specially to
math/py-pandas, which is a gigantic port with tons of dependencies.
As pointed out, most of the errors are because of failing test files
(csv, xls and the like).  But they are many and I may have skipped some
serious stuff.

And now the diff:

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/py-beautifulsoup4/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile    21 Aug 2019 19:36:47 -0000      1.14
+++ Makefile    15 Nov 2019 07:55:47 -0000
@@ -2,7 +2,7 @@
 
 COMMENT =      HTML/XML parser that supports invalid markup
 
-MODPY_EGG_VERSION =    4.7.1
+MODPY_EGG_VERSION =    4.8.1
 DISTNAME =     beautifulsoup4-${MODPY_EGG_VERSION}
 PKGNAME =      py-${DISTNAME}
 REVISION =     0
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/py-beautifulsoup4/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo    13 Aug 2019 00:52:04 -0000      1.8
+++ distinfo    15 Nov 2019 07:55:47 -0000
@@ -1,2 +1,2 @@
-SHA256 (beautifulsoup4-4.7.1.tar.gz) = 
lFBll5+4Up3S8327WPALZhvby+v5VPk7Mv31Jj7zU0g=
-SIZE (beautifulsoup4-4.7.1.tar.gz) = 167065
+SHA256 (beautifulsoup4-4.8.1.tar.gz) = 
YTXbK6Z4FowHlQ+aFsQDGCLG9K7HWmXgqXvFygl4mTE=
+SIZE (beautifulsoup4-4.8.1.tar.gz) = 159164
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/www/py-beautifulsoup4/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   2 Jan 2016 13:27:22 -0000       1.2
+++ pkg/PLIST   15 Nov 2019 07:55:47 -0000
@@ -1,4 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.2 2016/01/02 13:27:22 shadchin Exp $
+lib/python${MODPY_VERSION}/
+lib/python${MODPY_VERSION}/site-packages/
 
lib/python${MODPY_VERSION}/site-packages/beautifulsoup4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
 
lib/python${MODPY_VERSION}/site-packages/beautifulsoup4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
 
lib/python${MODPY_VERSION}/site-packages/beautifulsoup4-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
@@ -9,9 +11,11 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/bs4/__init__.py
 ${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/bs4/${MODPY_PYCACHE}/
 
lib/python${MODPY_VERSION}/site-packages/bs4/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/bs4/${MODPY_PYCACHE}check_block.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/bs4/${MODPY_PYCACHE}dammit.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/bs4/${MODPY_PYCACHE}diagnose.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/bs4/${MODPY_PYCACHE}element.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/bs4/${MODPY_PYCACHE}formatter.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/bs4/${MODPY_PYCACHE}testing.${MODPY_PYC_MAGIC_TAG}pyc
 lib/python${MODPY_VERSION}/site-packages/bs4/builder/
 lib/python${MODPY_VERSION}/site-packages/bs4/builder/__init__.py
@@ -23,9 +27,11 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/bs4/builder/_html5lib.py
 lib/python${MODPY_VERSION}/site-packages/bs4/builder/_htmlparser.py
 lib/python${MODPY_VERSION}/site-packages/bs4/builder/_lxml.py
+lib/python${MODPY_VERSION}/site-packages/bs4/check_block.py
 lib/python${MODPY_VERSION}/site-packages/bs4/dammit.py
 lib/python${MODPY_VERSION}/site-packages/bs4/diagnose.py
 lib/python${MODPY_VERSION}/site-packages/bs4/element.py
+lib/python${MODPY_VERSION}/site-packages/bs4/formatter.py
 lib/python${MODPY_VERSION}/site-packages/bs4/testing.py
 lib/python${MODPY_VERSION}/site-packages/bs4/tests/
 lib/python${MODPY_VERSION}/site-packages/bs4/tests/__init__.py

-- 
Paco Esteban.
5818130B8A6DBC03

Reply via email to