pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-beautifulsoup4



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Nov 30 17:00:39 UTC 2022

Modified Files:
        pkgsrc/www/py-beautifulsoup4: Makefile PLIST distinfo
Removed Files:
        pkgsrc/www/py-beautifulsoup4/patches: patch-setup.py

Log Message:
py-beautifulsoup4: updated to 4.11.1

4.11.1 (20220408)

This release was done to ensure that the unit tests are packaged along
with the released source. There are no functionality changes in this
release, but there are a few other packaging changes:

* The Japanese and Korean translations of the documentation are included.
* The changelog is now packaged as CHANGELOG, and the license file is
  packaged as LICENSE. NEWS.txt and COPYING.txt are still present,
  but may be removed in the future.
* TODO.txt is no longer packaged, since a TODO is not relevant for released
  code.

4.11.0 (20220407)

* Ported unit tests to use pytest.

* Added special string classes, RubyParenthesisString and RubyTextString,
  to make it possible to treat ruby text specially in get_text() calls.

* It's now possible to customize the way output is indented by
  providing a value for the 'indent' argument to the Formatter
  constructor. The 'indent' argument works very similarly to the
  argument of the same name in the Python standard library's
  json.dump() function.

* If the charset-normalizer Python module
  (https://pypi.org/project/charset-normalizer/) is installed, Beautiful
  Soup will use it to detect the character sets of incoming documents.
  This is also the module used by newer versions of the Requests library.
  For the sake of backwards compatibility, chardet and cchardet both take
  precedence if installed.

* Added a workaround for an lxml bug
  (https://bugs.launchpad.net/lxml/+bug/1948551) that causes
  problems when parsing a Unicode string beginning with BYTE ORDER MARK.

* Issue a warning when an HTML parser is used to parse a document that
  looks like XML but not XHTML.

* Do a better job of keeping track of namespaces as an XML document is
  parsed, so that CSS selectors that use namespaces will do the right
  thing more often.

* Some time ago, the misleadingly named "text" argument to find-type
  methods was renamed to the more accurate "string." But this supposed
  "renaming" didn't make it into important places like the method
  signatures or the docstrings. That's corrected in this
  version. "text" still works, but will give a DeprecationWarning.

* Fixed a crash when pickling a BeautifulSoup object that has no
  tree builder.

* Fixed a crash when overriding multi_valued_attributes and using the
  html5lib parser.

* Standardized the wording of the MarkupResemblesLocatorWarning
  warnings to omit untrusted input and make the warnings less
  judgmental about what you ought to be doing.

* Removed support for the iconv_codec library, which doesn't seem
  to exist anymore and was never put up on PyPI. (The closest
  replacement on PyPI, iconv_codecs, is GPL-licensed, so we can't use
  it--it's also quite old.)

4.10.0 (20210907)

* This is the first release of Beautiful Soup to only support Python
  3. I dropped Python 2 support to maintain support for newer versions
  (58 and up) of setuptools. See:
  https://github.com/pypa/setuptools/issues/2769

* The behavior of methods like .get_text() and .strings now differs
  depending on the type of tag. The change is visible with HTML tags
  like <script>, <style>, and <template>. Starting in 4.9.0, methods
  like get_text() returned no results on such tags, because the
  contents of those tags are not considered 'text' within the document
  as a whole.

  But a user who calls script.get_text() is working from a different
  definition of 'text' than a user who calls div.get_text()--otherwise
  there would be no need to call script.get_text() at all. In 4.10.0,
  the contents of (e.g.) a <script> tag are considered 'text' during a
  get_text() call on the tag itself, but not considered 'text' during
  a get_text() call on the tag's parent.

  Because of this change, calling get_text() on each child of a tag
  may now return a different result than calling get_text() on the tag
  itself. That's because different tags now have different
  understandings of what counts as 'text'.

* NavigableString and its subclasses now implement the get_text()
  method, as well as the properties .strings and
  .stripped_strings. These methods will either return the string
  itself, or nothing, so the only reason to use this is when iterating
  over a list of mixed Tag and NavigableString objects.

* The 'html5' formatter now treats attributes whose values are the
  empty string as HTML boolean attributes. Previously (and in other
  formatters), an attribute value must be set as None to be treated as
  a boolean attribute. In a future release, I plan to also give this
  behavior to the 'html' formatter. Patch by Isaac Muse.

* The 'replace_with()' method now takes a variable number of arguments,
  and can be used to replace a single element with a sequence of elements.
  Patch by Bill Chandos. [rev=605]

* Corrected output when the namespace prefix associated with a
  namespaced attribute is the empty string, as opposed to
  None.

* Performance improvement when processing tags that speeds up overall
  tree construction by 2%. Patch by Morotti.

* Corrected the use of special string container classes in cases when a
  single tag may contain strings with different containers; such as
  the <template> tag, which may contain both TemplateString objects
  and Comment objects.

* The html.parser tree builder can now handle named entities
  found in the HTML5 spec in much the same way that the html5lib
  tree builder does. Note that the lxml HTML tree builder doesn't handle
  named entities this way.

* Added a second way to pass specify encodings to UnicodeDammit and
  EncodingDetector, based on the order of precedence defined in the
  HTML5 spec, starting at:
  https://html.spec.whatwg.org/multipage/parsing.html#parsing-with-a-known-character-encoding

  Encodings in 'known_definite_encodings' are tried first, then
  byte-order-mark sniffing is run, then encodings in 'user_encodings'
  are tried. The old argument, 'override_encodings', is now a
  deprecated alias for 'known_definite_encodings'.

  This changes the default behavior of the html.parser and lxml tree
  builders, in a way that may slightly improve encoding
  detection but will probably have no effect.

* Improve the warning issued when a directory name (as opposed to
  the name of a regular file) is passed as markup into the BeautifulSoup
  constructor.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/www/py-beautifulsoup4/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/www/py-beautifulsoup4/PLIST
cvs rdiff -u -r1.20 -r1.21 pkgsrc/www/py-beautifulsoup4/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/www/py-beautifulsoup4/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-beautifulsoup4/Makefile
diff -u pkgsrc/www/py-beautifulsoup4/Makefile:1.24 pkgsrc/www/py-beautifulsoup4/Makefile:1.25
--- pkgsrc/www/py-beautifulsoup4/Makefile:1.24  Tue Jan  4 20:55:16 2022
+++ pkgsrc/www/py-beautifulsoup4/Makefile       Wed Nov 30 17:00:38 2022
@@ -1,10 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2022/01/04 20:55:16 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2022/11/30 17:00:38 adam Exp $
 
-DISTNAME=      beautifulsoup4-4.9.3
+DISTNAME=      beautifulsoup4-4.11.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    www python
-MASTER_SITES=  https://www.crummy.com/software/BeautifulSoup/bs4/download/${PKGVERSION_NOREV:R}/
 MASTER_SITES+= ${MASTER_SITE_PYPI:=b/beautifulsoup4/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -14,14 +12,14 @@ LICENSE=    mit
 
 DEPENDS+=      ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
 DEPENDS+=      ${PYPKGPREFIX}-soupsieve>=1.2:../../www/py-soupsieve
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 USE_LANGUAGES= # none
 
-pre-build:
-       cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs bs4
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 do-test:
-       cd ${WRKSRC} && ${PYTHONBIN} -m unittest discover -s bs4
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} bs4
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/py-beautifulsoup4/PLIST
diff -u pkgsrc/www/py-beautifulsoup4/PLIST:1.8 pkgsrc/www/py-beautifulsoup4/PLIST:1.9
--- pkgsrc/www/py-beautifulsoup4/PLIST:1.8      Wed Jan  8 21:08:26 2020
+++ pkgsrc/www/py-beautifulsoup4/PLIST  Wed Nov 30 17:00:38 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2020/01/08 21:08:26 adam Exp $
+@comment $NetBSD: PLIST,v 1.9 2022/11/30 17:00:38 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -31,18 +31,27 @@ ${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
 ${PYSITELIB}/bs4/tests/__init__.py
 ${PYSITELIB}/bs4/tests/__init__.pyc
 ${PYSITELIB}/bs4/tests/__init__.pyo
+${PYSITELIB}/bs4/tests/test_builder.py
+${PYSITELIB}/bs4/tests/test_builder.pyc
+${PYSITELIB}/bs4/tests/test_builder.pyo
 ${PYSITELIB}/bs4/tests/test_builder_registry.py
 ${PYSITELIB}/bs4/tests/test_builder_registry.pyc
 ${PYSITELIB}/bs4/tests/test_builder_registry.pyo
+${PYSITELIB}/bs4/tests/test_dammit.py
+${PYSITELIB}/bs4/tests/test_dammit.pyc
+${PYSITELIB}/bs4/tests/test_dammit.pyo
 ${PYSITELIB}/bs4/tests/test_docs.py
 ${PYSITELIB}/bs4/tests/test_docs.pyc
 ${PYSITELIB}/bs4/tests/test_docs.pyo
+${PYSITELIB}/bs4/tests/test_element.py
+${PYSITELIB}/bs4/tests/test_element.pyc
+${PYSITELIB}/bs4/tests/test_element.pyo
+${PYSITELIB}/bs4/tests/test_formatter.py
+${PYSITELIB}/bs4/tests/test_formatter.pyc
+${PYSITELIB}/bs4/tests/test_formatter.pyo
 ${PYSITELIB}/bs4/tests/test_html5lib.py
 ${PYSITELIB}/bs4/tests/test_html5lib.pyc
 ${PYSITELIB}/bs4/tests/test_html5lib.pyo
@@ -52,9 +61,18 @@ ${PYSITELIB}/bs4/tests/test_htmlparser.p
 ${PYSITELIB}/bs4/tests/test_lxml.py
 ${PYSITELIB}/bs4/tests/test_lxml.pyc
 ${PYSITELIB}/bs4/tests/test_lxml.pyo
+${PYSITELIB}/bs4/tests/test_navigablestring.py
+${PYSITELIB}/bs4/tests/test_navigablestring.pyc
+${PYSITELIB}/bs4/tests/test_navigablestring.pyo
+${PYSITELIB}/bs4/tests/test_pageelement.py
+${PYSITELIB}/bs4/tests/test_pageelement.pyc
+${PYSITELIB}/bs4/tests/test_pageelement.pyo
 ${PYSITELIB}/bs4/tests/test_soup.py
 ${PYSITELIB}/bs4/tests/test_soup.pyc
 ${PYSITELIB}/bs4/tests/test_soup.pyo
+${PYSITELIB}/bs4/tests/test_tag.py
+${PYSITELIB}/bs4/tests/test_tag.pyc
+${PYSITELIB}/bs4/tests/test_tag.pyo
 ${PYSITELIB}/bs4/tests/test_tree.py
 ${PYSITELIB}/bs4/tests/test_tree.pyc
 ${PYSITELIB}/bs4/tests/test_tree.pyo

Index: pkgsrc/www/py-beautifulsoup4/distinfo
diff -u pkgsrc/www/py-beautifulsoup4/distinfo:1.20 pkgsrc/www/py-beautifulsoup4/distinfo:1.21
--- pkgsrc/www/py-beautifulsoup4/distinfo:1.20  Wed Nov 24 11:38:10 2021
+++ pkgsrc/www/py-beautifulsoup4/distinfo       Wed Nov 30 17:00:38 2022
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.20 2021/11/24 11:38:10 wiz Exp $
+$NetBSD: distinfo,v 1.21 2022/11/30 17:00:38 adam Exp $
 
-BLAKE2s (beautifulsoup4-4.9.3.tar.gz) = 112f5525d2b3fe1f665deed3e3383ede4265e82bdd2a07fd95f5c4e5ce04787e
-SHA512 (beautifulsoup4-4.9.3.tar.gz) = e3cb6258bd7c51f12128fa8ee5948fb3566163ae233fac2dda21bab7772ab8dbb384d920b0ea138ef9921307b48f89cee3a9bf6111dfc8903d917ee7af365f34
-Size (beautifulsoup4-4.9.3.tar.gz) = 376031 bytes
-SHA1 (patch-setup.py) = f41e5b0f3cbb35963b503774e5dd1904bdb48876
+BLAKE2s (beautifulsoup4-4.11.1.tar.gz) = d81de6d16e68038d4e9e7f72368861542c276874d49520551cff5b1af8b698fd
+SHA512 (beautifulsoup4-4.11.1.tar.gz) = 7446be07cd55f23def929e6491f0d74a940cf50206ed520b8ae7b9d57bd19ecf6aa821f446ca4f26f1e08b43fcc71fb397886f51a3f0ec691f9e53dfdc7a0cf8
+Size (beautifulsoup4-4.11.1.tar.gz) = 517113 bytes



Home | Main Index | Thread Index | Old Index