pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/py-tinycss2 py-tinycss2: updated to 1.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/86a573b050b1
branches:  trunk
changeset: 451548:86a573b050b1
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Apr 28 08:45:52 2021 +0000

description:
py-tinycss2: updated to 1.1.0

Version 1.1.0

Drop support of Python 3.5, add support of Python 3.9.
Fix ResourceWarning in tests.
Use Python standard library’s HSL to RGB converter.
Use GitHub Actions for tests.
New code structure, new packaging, new documentation.

Version 1.0.2

Don’t crash when indent tokens have no lowercase equivalent name.

Version 1.0.1

Fix tests launched by CI.
Parse “–” ident tokens correctly.

Version 1.0.0

Drop Python 2.7, 3.3 and 3.4 support.
Allow leading double dash syntax for ident tokens, allowing CSS variables to be parsed correctly.
Test with PyPy3.
Force tests to parse JSON files as UTF-8.
Clean packaging.

diffstat:

 textproc/py-tinycss2/Makefile               |  15 ++++++++++-----
 textproc/py-tinycss2/PLIST                  |  28 +---------------------------
 textproc/py-tinycss2/distinfo               |  11 ++++++-----
 textproc/py-tinycss2/patches/patch-setup.py |  15 +++++++++++++++
 4 files changed, 32 insertions(+), 37 deletions(-)

diffs (127 lines):

diff -r 7301572c65b2 -r 86a573b050b1 textproc/py-tinycss2/Makefile
--- a/textproc/py-tinycss2/Makefile     Wed Apr 28 08:36:18 2021 +0000
+++ b/textproc/py-tinycss2/Makefile     Wed Apr 28 08:45:52 2021 +0000
@@ -1,22 +1,27 @@
-# $NetBSD: Makefile,v 1.6 2019/07/09 11:29:30 nia Exp $
+# $NetBSD: Makefile,v 1.7 2021/04/28 08:45:52 adam Exp $
 
-DISTNAME=      tinycss2-0.6.1
+DISTNAME=      tinycss2-1.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/tinycss2/}
 
 MAINTAINER=    kleink%NetBSD.org@localhost
-HOMEPAGE=      https://pythonhosted.org/tinycss2/
+HOMEPAGE=      https://github.com/Kozea/tinycss2
 COMMENT=       Low-level CSS parser for Python
 LICENSE=       modified-bsd
 
-USE_LANGUAGES= # empty
-
 DEPENDS+=      ${PYPKGPREFIX}-webencodings>=0.4:../../textproc/py-webencodings
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-isort-[0-9]*:../../devel/py-test-isort
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 7301572c65b2 -r 86a573b050b1 textproc/py-tinycss2/PLIST
--- a/textproc/py-tinycss2/PLIST        Wed Apr 28 08:36:18 2021 +0000
+++ b/textproc/py-tinycss2/PLIST        Wed Apr 28 08:45:52 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/08/01 15:31:16 kleink Exp $
+@comment $NetBSD: PLIST,v 1.2 2021/04/28 08:45:53 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -7,9 +7,6 @@
 ${PYSITELIB}/tinycss2/__init__.py
 ${PYSITELIB}/tinycss2/__init__.pyc
 ${PYSITELIB}/tinycss2/__init__.pyo
-${PYSITELIB}/tinycss2/_compat.py
-${PYSITELIB}/tinycss2/_compat.pyc
-${PYSITELIB}/tinycss2/_compat.pyo
 ${PYSITELIB}/tinycss2/ast.py
 ${PYSITELIB}/tinycss2/ast.pyc
 ${PYSITELIB}/tinycss2/ast.pyo
@@ -19,26 +16,6 @@
 ${PYSITELIB}/tinycss2/color3.py
 ${PYSITELIB}/tinycss2/color3.pyc
 ${PYSITELIB}/tinycss2/color3.pyo
-${PYSITELIB}/tinycss2/css-parsing-tests/An+B.json
-${PYSITELIB}/tinycss2/css-parsing-tests/LICENSE
-${PYSITELIB}/tinycss2/css-parsing-tests/README.rst
-${PYSITELIB}/tinycss2/css-parsing-tests/color3.json
-${PYSITELIB}/tinycss2/css-parsing-tests/color3_hsl.json
-${PYSITELIB}/tinycss2/css-parsing-tests/color3_keywords.json
-${PYSITELIB}/tinycss2/css-parsing-tests/component_value_list.json
-${PYSITELIB}/tinycss2/css-parsing-tests/declaration_list.json
-${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_hsl.py
-${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_hsl.pyc
-${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_hsl.pyo
-${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_keywords.py
-${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_keywords.pyc
-${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_keywords.pyo
-${PYSITELIB}/tinycss2/css-parsing-tests/one_component_value.json
-${PYSITELIB}/tinycss2/css-parsing-tests/one_declaration.json
-${PYSITELIB}/tinycss2/css-parsing-tests/one_rule.json
-${PYSITELIB}/tinycss2/css-parsing-tests/rule_list.json
-${PYSITELIB}/tinycss2/css-parsing-tests/stylesheet.json
-${PYSITELIB}/tinycss2/css-parsing-tests/stylesheet_bytes.json
 ${PYSITELIB}/tinycss2/nth.py
 ${PYSITELIB}/tinycss2/nth.pyc
 ${PYSITELIB}/tinycss2/nth.pyo
@@ -48,9 +25,6 @@
 ${PYSITELIB}/tinycss2/serializer.py
 ${PYSITELIB}/tinycss2/serializer.pyc
 ${PYSITELIB}/tinycss2/serializer.pyo
-${PYSITELIB}/tinycss2/test.py
-${PYSITELIB}/tinycss2/test.pyc
-${PYSITELIB}/tinycss2/test.pyo
 ${PYSITELIB}/tinycss2/tokenizer.py
 ${PYSITELIB}/tinycss2/tokenizer.pyc
 ${PYSITELIB}/tinycss2/tokenizer.pyo
diff -r 7301572c65b2 -r 86a573b050b1 textproc/py-tinycss2/distinfo
--- a/textproc/py-tinycss2/distinfo     Wed Apr 28 08:36:18 2021 +0000
+++ b/textproc/py-tinycss2/distinfo     Wed Apr 28 08:45:52 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2017/10/12 06:43:44 adam Exp $
+$NetBSD: distinfo,v 1.4 2021/04/28 08:45:53 adam Exp $
 
-SHA1 (tinycss2-0.6.1.tar.gz) = 28fe6ae369ef6d4d2d2932595f06ecc940b5d62f
-RMD160 (tinycss2-0.6.1.tar.gz) = dce70f896677117bdaa4b8181cab6f09095b77fb
-SHA512 (tinycss2-0.6.1.tar.gz) = fa064bbb06d641a497a3c1eb35118bbf8ca8c4d32fbd3d8c64bb10d6cdab24387e77cd4c3277a957f23de2bd527a407836245f4387d7f880958858bd9cc7ab89
-Size (tinycss2-0.6.1.tar.gz) = 59548 bytes
+SHA1 (tinycss2-1.1.0.tar.gz) = cf1c369e6593bac519b73be6ea9d1844631db5b2
+RMD160 (tinycss2-1.1.0.tar.gz) = b44e5d2ab0092ed956e625f7f47697c5a414e1c7
+SHA512 (tinycss2-1.1.0.tar.gz) = 218d28511802afc89a608def03084f5d460512a41d47280b5c8bfe72314c8ab3b14c98fbb0200bea6b8509c4d6f0107410d340e2d7f1830aaa92669a2699211e
+Size (tinycss2-1.1.0.tar.gz) = 28273 bytes
+SHA1 (patch-setup.py) = 0696c7ac496b4ecbec5fbc045bba7225ce0793ab
diff -r 7301572c65b2 -r 86a573b050b1 textproc/py-tinycss2/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-tinycss2/patches/patch-setup.py       Wed Apr 28 08:45:52 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2021/04/28 08:45:53 adam Exp $
+
+Use setuptools.
+
+--- setup.py.orig      2021-04-28 08:38:31.000000000 +0000
++++ setup.py
+@@ -1,7 +1,7 @@
+ #!/usr/bin/env python
+ # setup.py generated by flit for tools that don't yet use PEP 517
+ 
+-from distutils.core import setup
++from setuptools import setup
+ 
+ packages = \
+ ['tinycss2']


Home | Main Index | Thread Index | Old Index