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.diff -r1.6 -r1.7 pkgsrc/textproc/py-tinycss2/Makefile
(adam)
@@ -1,22 +1,27 @@ | @@ -1,22 +1,27 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2019/07/09 11:29:30 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2021/04/28 08:45:52 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= tinycss2-0.6.1 | 3 | DISTNAME= tinycss2-1.1.0 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= textproc python | 5 | CATEGORIES= textproc python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=t/tinycss2/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=t/tinycss2/} | |
7 | 7 | |||
8 | MAINTAINER= kleink@NetBSD.org | 8 | MAINTAINER= kleink@NetBSD.org | |
9 | HOMEPAGE= https://pythonhosted.org/tinycss2/ | 9 | HOMEPAGE= https://github.com/Kozea/tinycss2 | |
10 | COMMENT= Low-level CSS parser for Python | 10 | COMMENT= Low-level CSS parser for Python | |
11 | LICENSE= modified-bsd | 11 | LICENSE= modified-bsd | |
12 | 12 | |||
13 | USE_LANGUAGES= # empty | |||
14 | ||||
15 | DEPENDS+= ${PYPKGPREFIX}-webencodings>=0.4:../../textproc/py-webencodings | 13 | DEPENDS+= ${PYPKGPREFIX}-webencodings>=0.4:../../textproc/py-webencodings | |
16 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov | 14 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov | |
17 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8 | 15 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8 | |
18 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-isort-[0-9]*:../../devel/py-test-isort | 16 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-isort-[0-9]*:../../devel/py-test-isort | |
19 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner | 17 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner | |
20 | 18 | |||
19 | USE_LANGUAGES= # none | |||
20 | ||||
21 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |||
22 | ||||
23 | do-test: | |||
24 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests | |||
25 | ||||
21 | .include "../../lang/python/egg.mk" | 26 | .include "../../lang/python/egg.mk" | |
22 | .include "../../mk/bsd.pkg.mk" | 27 | .include "../../mk/bsd.pkg.mk" |
@@ -1,56 +1,30 @@ | @@ -1,56 +1,30 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2017/08/01 15:31:16 kleink Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2021/04/28 08:45:53 adam Exp $ | |
2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
5 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | 5 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | |
6 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 6 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
7 | ${PYSITELIB}/tinycss2/__init__.py | 7 | ${PYSITELIB}/tinycss2/__init__.py | |
8 | ${PYSITELIB}/tinycss2/__init__.pyc | 8 | ${PYSITELIB}/tinycss2/__init__.pyc | |
9 | ${PYSITELIB}/tinycss2/__init__.pyo | 9 | ${PYSITELIB}/tinycss2/__init__.pyo | |
10 | ${PYSITELIB}/tinycss2/_compat.py | |||
11 | ${PYSITELIB}/tinycss2/_compat.pyc | |||
12 | ${PYSITELIB}/tinycss2/_compat.pyo | |||
13 | ${PYSITELIB}/tinycss2/ast.py | 10 | ${PYSITELIB}/tinycss2/ast.py | |
14 | ${PYSITELIB}/tinycss2/ast.pyc | 11 | ${PYSITELIB}/tinycss2/ast.pyc | |
15 | ${PYSITELIB}/tinycss2/ast.pyo | 12 | ${PYSITELIB}/tinycss2/ast.pyo | |
16 | ${PYSITELIB}/tinycss2/bytes.py | 13 | ${PYSITELIB}/tinycss2/bytes.py | |
17 | ${PYSITELIB}/tinycss2/bytes.pyc | 14 | ${PYSITELIB}/tinycss2/bytes.pyc | |
18 | ${PYSITELIB}/tinycss2/bytes.pyo | 15 | ${PYSITELIB}/tinycss2/bytes.pyo | |
19 | ${PYSITELIB}/tinycss2/color3.py | 16 | ${PYSITELIB}/tinycss2/color3.py | |
20 | ${PYSITELIB}/tinycss2/color3.pyc | 17 | ${PYSITELIB}/tinycss2/color3.pyc | |
21 | ${PYSITELIB}/tinycss2/color3.pyo | 18 | ${PYSITELIB}/tinycss2/color3.pyo | |
22 | ${PYSITELIB}/tinycss2/css-parsing-tests/An+B.json | |||
23 | ${PYSITELIB}/tinycss2/css-parsing-tests/LICENSE | |||
24 | ${PYSITELIB}/tinycss2/css-parsing-tests/README.rst | |||
25 | ${PYSITELIB}/tinycss2/css-parsing-tests/color3.json | |||
26 | ${PYSITELIB}/tinycss2/css-parsing-tests/color3_hsl.json | |||
27 | ${PYSITELIB}/tinycss2/css-parsing-tests/color3_keywords.json | |||
28 | ${PYSITELIB}/tinycss2/css-parsing-tests/component_value_list.json | |||
29 | ${PYSITELIB}/tinycss2/css-parsing-tests/declaration_list.json | |||
30 | ${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_hsl.py | |||
31 | ${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_hsl.pyc | |||
32 | ${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_hsl.pyo | |||
33 | ${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_keywords.py | |||
34 | ${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_keywords.pyc | |||
35 | ${PYSITELIB}/tinycss2/css-parsing-tests/make_color3_keywords.pyo | |||
36 | ${PYSITELIB}/tinycss2/css-parsing-tests/one_component_value.json | |||
37 | ${PYSITELIB}/tinycss2/css-parsing-tests/one_declaration.json | |||
38 | ${PYSITELIB}/tinycss2/css-parsing-tests/one_rule.json | |||
39 | ${PYSITELIB}/tinycss2/css-parsing-tests/rule_list.json | |||
40 | ${PYSITELIB}/tinycss2/css-parsing-tests/stylesheet.json | |||
41 | ${PYSITELIB}/tinycss2/css-parsing-tests/stylesheet_bytes.json | |||
42 | ${PYSITELIB}/tinycss2/nth.py | 19 | ${PYSITELIB}/tinycss2/nth.py | |
43 | ${PYSITELIB}/tinycss2/nth.pyc | 20 | ${PYSITELIB}/tinycss2/nth.pyc | |
44 | ${PYSITELIB}/tinycss2/nth.pyo | 21 | ${PYSITELIB}/tinycss2/nth.pyo | |
45 | ${PYSITELIB}/tinycss2/parser.py | 22 | ${PYSITELIB}/tinycss2/parser.py | |
46 | ${PYSITELIB}/tinycss2/parser.pyc | 23 | ${PYSITELIB}/tinycss2/parser.pyc | |
47 | ${PYSITELIB}/tinycss2/parser.pyo | 24 | ${PYSITELIB}/tinycss2/parser.pyo | |
48 | ${PYSITELIB}/tinycss2/serializer.py | 25 | ${PYSITELIB}/tinycss2/serializer.py | |
49 | ${PYSITELIB}/tinycss2/serializer.pyc | 26 | ${PYSITELIB}/tinycss2/serializer.pyc | |
50 | ${PYSITELIB}/tinycss2/serializer.pyo | 27 | ${PYSITELIB}/tinycss2/serializer.pyo | |
51 | ${PYSITELIB}/tinycss2/test.py | |||
52 | ${PYSITELIB}/tinycss2/test.pyc | |||
53 | ${PYSITELIB}/tinycss2/test.pyo | |||
54 | ${PYSITELIB}/tinycss2/tokenizer.py | 28 | ${PYSITELIB}/tinycss2/tokenizer.py | |
55 | ${PYSITELIB}/tinycss2/tokenizer.pyc | 29 | ${PYSITELIB}/tinycss2/tokenizer.pyc | |
56 | ${PYSITELIB}/tinycss2/tokenizer.pyo | 30 | ${PYSITELIB}/tinycss2/tokenizer.pyo |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2017/10/12 06:43:44 adam Exp $ | 1 | $NetBSD: distinfo,v 1.4 2021/04/28 08:45:53 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (tinycss2-0.6.1.tar.gz) = 28fe6ae369ef6d4d2d2932595f06ecc940b5d62f | 3 | SHA1 (tinycss2-1.1.0.tar.gz) = cf1c369e6593bac519b73be6ea9d1844631db5b2 | |
4 | RMD160 (tinycss2-0.6.1.tar.gz) = dce70f896677117bdaa4b8181cab6f09095b77fb | 4 | RMD160 (tinycss2-1.1.0.tar.gz) = b44e5d2ab0092ed956e625f7f47697c5a414e1c7 | |
5 | SHA512 (tinycss2-0.6.1.tar.gz) = fa064bbb06d641a497a3c1eb35118bbf8ca8c4d32fbd3d8c64bb10d6cdab24387e77cd4c3277a957f23de2bd527a407836245f4387d7f880958858bd9cc7ab89 | 5 | SHA512 (tinycss2-1.1.0.tar.gz) = 218d28511802afc89a608def03084f5d460512a41d47280b5c8bfe72314c8ab3b14c98fbb0200bea6b8509c4d6f0107410d340e2d7f1830aaa92669a2699211e | |
6 | Size (tinycss2-0.6.1.tar.gz) = 59548 bytes | 6 | Size (tinycss2-1.1.0.tar.gz) = 28273 bytes | |
7 | SHA1 (patch-setup.py) = 0696c7ac496b4ecbec5fbc045bba7225ce0793ab |
$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']