pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-tinycss2



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Apr 28 08:45:53 UTC 2021

Modified Files:
        pkgsrc/textproc/py-tinycss2: Makefile PLIST distinfo
Added Files:
        pkgsrc/textproc/py-tinycss2/patches: patch-setup.py

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/textproc/py-tinycss2/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/py-tinycss2/PLIST
cvs rdiff -u -r1.3 -r1.4 pkgsrc/textproc/py-tinycss2/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/py-tinycss2/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/textproc/py-tinycss2/Makefile
diff -u pkgsrc/textproc/py-tinycss2/Makefile:1.6 pkgsrc/textproc/py-tinycss2/Makefile:1.7
--- pkgsrc/textproc/py-tinycss2/Makefile:1.6    Tue Jul  9 11:29:30 2019
+++ pkgsrc/textproc/py-tinycss2/Makefile        Wed Apr 28 08:45:52 2021
@@ -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"

Index: pkgsrc/textproc/py-tinycss2/PLIST
diff -u pkgsrc/textproc/py-tinycss2/PLIST:1.1 pkgsrc/textproc/py-tinycss2/PLIST:1.2
--- pkgsrc/textproc/py-tinycss2/PLIST:1.1       Tue Aug  1 15:31:16 2017
+++ pkgsrc/textproc/py-tinycss2/PLIST   Wed Apr 28 08:45:53 2021
@@ -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}/${EGG_INFODIR}/top_level.tx
 ${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/bytes.pyo
 ${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/parser.pyo
 ${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

Index: pkgsrc/textproc/py-tinycss2/distinfo
diff -u pkgsrc/textproc/py-tinycss2/distinfo:1.3 pkgsrc/textproc/py-tinycss2/distinfo:1.4
--- pkgsrc/textproc/py-tinycss2/distinfo:1.3    Thu Oct 12 06:43:44 2017
+++ pkgsrc/textproc/py-tinycss2/distinfo        Wed Apr 28 08:45:53 2021
@@ -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

Added files:

Index: pkgsrc/textproc/py-tinycss2/patches/patch-setup.py
diff -u /dev/null pkgsrc/textproc/py-tinycss2/patches/patch-setup.py:1.1
--- /dev/null   Wed Apr 28 08:45:53 2021
+++ pkgsrc/textproc/py-tinycss2/patches/patch-setup.py  Wed Apr 28 08:45:53 2021
@@ -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