pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/py-cssselect py-cssselect: updated to 1.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97599b652e93
branches:  trunk
changeset: 391640:97599b652e93
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Jan 11 11:48:35 2023 +0000

description:
py-cssselect: updated to 1.2.0

Version 1.2.0
-------------
* Drop support for Python 2.7, 3.4-3.6, add support for Python 3.7-3.11.
* Add type annotations (PEP 484 and PEP 561).
* More features from the CSS Selectors Level 4:
  * The ``:is()`` pseudo-class.
  * The ``:where()`` pseudo-class.
  * The ``:has()`` pseudo-class, with some limitations.
* Fix parsing ``:scope`` after a comma.
* Add parentheses to fix condition precedence in some cases.
* Private API changes related to the removal of the Python 2 support:
  * Remove ``_unicode`` and ``_unichr`` aliases from ``csselect.parser``.
  * Remove ``_basestring`` and ``_unicode`` aliases from ``csselect.xpath``.
  * Deprecate ``csselect.xpath._unicode_safe_getattr()`` and change it to just
    call ``getattr()``.
* Include tests in the PyPI tarball.
* Many CI additions and improvements.
* Improve the test coverage.

diffstat:

 textproc/py-cssselect/Makefile |  10 +++++++---
 textproc/py-cssselect/PLIST    |   3 ++-
 textproc/py-cssselect/distinfo |   8 ++++----
 3 files changed, 13 insertions(+), 8 deletions(-)

diffs (55 lines):

diff -r dbf2febd3b1e -r 97599b652e93 textproc/py-cssselect/Makefile
--- a/textproc/py-cssselect/Makefile    Wed Jan 11 11:47:18 2023 +0000
+++ b/textproc/py-cssselect/Makefile    Wed Jan 11 11:48:35 2023 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2022/01/04 20:54:53 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2023/01/11 11:48:35 adam Exp $
 
-DISTNAME=      cssselect-1.1.0
+DISTNAME=      cssselect-1.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cssselect/}
 
@@ -13,5 +12,10 @@
 
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m unittest discover -v
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r dbf2febd3b1e -r 97599b652e93 textproc/py-cssselect/PLIST
--- a/textproc/py-cssselect/PLIST       Wed Jan 11 11:47:18 2023 +0000
+++ b/textproc/py-cssselect/PLIST       Wed Jan 11 11:48:35 2023 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2017/02/13 17:58:47 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2023/01/11 11:48:35 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -9,6 +9,7 @@
 ${PYSITELIB}/cssselect/parser.py
 ${PYSITELIB}/cssselect/parser.pyc
 ${PYSITELIB}/cssselect/parser.pyo
+${PYSITELIB}/cssselect/py.typed
 ${PYSITELIB}/cssselect/xpath.py
 ${PYSITELIB}/cssselect/xpath.pyc
 ${PYSITELIB}/cssselect/xpath.pyo
diff -r dbf2febd3b1e -r 97599b652e93 textproc/py-cssselect/distinfo
--- a/textproc/py-cssselect/distinfo    Wed Jan 11 11:47:18 2023 +0000
+++ b/textproc/py-cssselect/distinfo    Wed Jan 11 11:48:35 2023 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 11:23:01 nia Exp $
+$NetBSD: distinfo,v 1.9 2023/01/11 11:48:35 adam Exp $
 
-BLAKE2s (cssselect-1.1.0.tar.gz) = bdda14f0b2d8a61b6b5a8508d8fb0133a06a01f52fc05782be65c53c9c51a823
-SHA512 (cssselect-1.1.0.tar.gz) = 98ce8233ef7486bb240ec55f0d07aff684c08376b301a2e8cbc0579515f204b56b1ed2cc7106bd7afac59a7286165ec87d73cf0db74e5741fed7b2ddfa04b544
-Size (cssselect-1.1.0.tar.gz) = 22718 bytes
+BLAKE2s (cssselect-1.2.0.tar.gz) = 518e4efda534418cf73aa4b5cfad06645d050e961ede0e0362dff2f0d5bce6c3
+SHA512 (cssselect-1.2.0.tar.gz) = 389a571cb8d0a8bfac7968a033df949d99c1252c3bd194d7270e7b43f22dd40014864b6423dc645d9fd8014ca3735daab68fe36cb2beedb012728818da4ba1e5
+Size (cssselect-1.2.0.tar.gz) = 41423 bytes



Home | Main Index | Thread Index | Old Index