pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-beautifulsoup4 py-beautifulsoup4: updated to 4.8.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/845d07f4d7aa
branches:  trunk
changeset: 398514:845d07f4d7aa
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Jul 21 08:05:31 2019 +0000

description:
py-beautifulsoup4: updated to 4.8.0

4.8.0:

This release focuses on making it easier to customize Beautiful Soup's
input mechanism (the TreeBuilder) and output mechanism (the Formatter).

* You can customize the TreeBuilder object by passing keyword
  arguments into the BeautifulSoup constructor. Those keyword
  arguments will be passed along into the TreeBuilder constructor.

  The main reason to do this right now is to change how which
  attributes are treated as multi-valued attributes (the way 'class'
  is treated by default). You can do this with the
  'multi_valued_attributes' argument.

* The role of Formatter objects has been greatly expanded. The Formatter
  class now controls the following:

  - The function to call to perform entity substitution. (This was
    previously Formatter's only job.)
  - Which tags should be treated as containing CDATA and have their
    contents exempt from entity substitution.
  - The order in which a tag's attributes are output.
  - Whether or not to put a '/' inside a void element, e.g. '<br/>' vs '<br>'

  All preexisting code should work as before.

* Added a new method to the API, Tag.smooth(), which consolidates
  multiple adjacent NavigableString elements.

* &apos; (which is valid in XML, XHTML, and HTML 5, but not HTML 4) is always
  recognized as a named entity and converted to a single quote.

diffstat:

 www/py-beautifulsoup4/Makefile |   4 ++--
 www/py-beautifulsoup4/PLIST    |   5 ++++-
 www/py-beautifulsoup4/distinfo |  10 +++++-----
 3 files changed, 11 insertions(+), 8 deletions(-)

diffs (46 lines):

diff -r c7e501e4b30a -r 845d07f4d7aa www/py-beautifulsoup4/Makefile
--- a/www/py-beautifulsoup4/Makefile    Sun Jul 21 08:00:56 2019 +0000
+++ b/www/py-beautifulsoup4/Makefile    Sun Jul 21 08:05:31 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2019/01/08 09:30:44 adam Exp $
+# $NetBSD: Makefile,v 1.15 2019/07/21 08:05:31 adam Exp $
 
-DISTNAME=      beautifulsoup4-4.7.1
+DISTNAME=      beautifulsoup4-4.8.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  https://www.crummy.com/software/BeautifulSoup/bs4/download/${PKGVERSION_NOREV:R}/
diff -r c7e501e4b30a -r 845d07f4d7aa www/py-beautifulsoup4/PLIST
--- a/www/py-beautifulsoup4/PLIST       Sun Jul 21 08:00:56 2019 +0000
+++ b/www/py-beautifulsoup4/PLIST       Sun Jul 21 08:05:31 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2017/05/09 20:05:17 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2019/07/21 08:05:31 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -28,6 +28,9 @@
 ${PYSITELIB}/bs4/element.py
 ${PYSITELIB}/bs4/element.pyc
 ${PYSITELIB}/bs4/element.pyo
+${PYSITELIB}/bs4/formatter.py
+${PYSITELIB}/bs4/formatter.pyc
+${PYSITELIB}/bs4/formatter.pyo
 ${PYSITELIB}/bs4/testing.py
 ${PYSITELIB}/bs4/testing.pyc
 ${PYSITELIB}/bs4/testing.pyo
diff -r c7e501e4b30a -r 845d07f4d7aa www/py-beautifulsoup4/distinfo
--- a/www/py-beautifulsoup4/distinfo    Sun Jul 21 08:00:56 2019 +0000
+++ b/www/py-beautifulsoup4/distinfo    Sun Jul 21 08:05:31 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.10 2019/01/08 09:30:44 adam Exp $
+$NetBSD: distinfo,v 1.11 2019/07/21 08:05:31 adam Exp $
 
-SHA1 (beautifulsoup4-4.7.1.tar.gz) = 1000ef6113d020d5140d556862107c3d502dd5ed
-RMD160 (beautifulsoup4-4.7.1.tar.gz) = 177353bdcd7b87aa7a922c807271df81f0bcddb4
-SHA512 (beautifulsoup4-4.7.1.tar.gz) = 7aa77bc6008bbcbbbe91b0a850007ab237d2832b63a787fbd94b7cbf47d4276b185e0c61c134df73221406458edff2b75b6b8c2b53b543aa3bb1b0e2202dac5a
-Size (beautifulsoup4-4.7.1.tar.gz) = 167065 bytes
+SHA1 (beautifulsoup4-4.8.0.tar.gz) = 7cc2ae69183aca6102c88026ef46b339a7059ddb
+RMD160 (beautifulsoup4-4.8.0.tar.gz) = cf28bfc3fa3196e6b548a34347fce6a41dd41e23
+SHA512 (beautifulsoup4-4.8.0.tar.gz) = 00e157f8031dbb0e30e49158ca30f9e9207647dd3355edf23c2906b9d0c8b93250669edf5b20372e62546501a0cd2d7e87b793faf30bc122b5544f9358c1a4db
+Size (beautifulsoup4-4.8.0.tar.gz) = 170919 bytes



Home | Main Index | Thread Index | Old Index