git: c6a2378bea4c - main - textproc/py-tinycss2: Update to 1.1.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Dec 2021 19:43:15 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c6a2378bea4c156c3cfd67842dd9d444b3690c1d

commit c6a2378bea4c156c3cfd67842dd9d444b3690c1d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-12-21 18:49:52 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-12-21 18:49:52 +0000

    textproc/py-tinycss2: Update to 1.1.1
    
    Changes:        https://github.com/Kozea/tinycss2/releases
---
 textproc/py-tinycss2/Makefile       |  5 ++++-
 textproc/py-tinycss2/distinfo       |  6 +++---
 textproc/py-tinycss2/files/setup.py | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 4 deletions(-)

diff --git a/textproc/py-tinycss2/Makefile b/textproc/py-tinycss2/Makefile
index 3c936feda9d3..a7f4a6d0beea 100644
--- a/textproc/py-tinycss2/Makefile
+++ b/textproc/py-tinycss2/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	tinycss2
-PORTVERSION=	1.1.0
+PORTVERSION=	1.1.1
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -24,4 +24,7 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+post-patch:
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
 .include <bsd.port.mk>
diff --git a/textproc/py-tinycss2/distinfo b/textproc/py-tinycss2/distinfo
index f88fdb8933c1..b216b283d71e 100644
--- a/textproc/py-tinycss2/distinfo
+++ b/textproc/py-tinycss2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1604680194
-SHA256 (tinycss2-1.1.0.tar.gz) = fbdcac3044d60eb85fdb2aa840ece43cf7dbe798e373e6ee0be545d4d134e18a
-SIZE (tinycss2-1.1.0.tar.gz) = 28273
+TIMESTAMP = 1638556628
+SHA256 (tinycss2-1.1.1.tar.gz) = b2e44dd8883c360c35dd0d1b5aad0b610e5156c2cb3b33434634e539ead9d8bf
+SIZE (tinycss2-1.1.1.tar.gz) = 65703
diff --git a/textproc/py-tinycss2/files/setup.py b/textproc/py-tinycss2/files/setup.py
new file mode 100644
index 000000000000..14a3fdb87b45
--- /dev/null
+++ b/textproc/py-tinycss2/files/setup.py
@@ -0,0 +1,34 @@
+#!/usr/bin/env python
+# setup.py generated by flit for tools that don't yet use PEP 517
+
+from distutils.core import setup
+
+packages = \
+['tinycss2']
+
+package_data = \
+{'': ['*']}
+
+install_requires = \
+['webencodings >=0.4']
+
+extras_require = \
+{'doc': ['sphinx', 'sphinx_rtd_theme'],
+ 'test': ['pytest',
+          'pytest-cov',
+          'pytest-flake8',
+          'pytest-isort',
+          'coverage[toml]']}
+
+setup(name='tinycss2',
+      version='%%PORTVERSION%%',
+      description='A tiny CSS parser',
+      author=None,
+      author_email='Simon Sapin <simon.sapin@exyr.org>',
+      url=None,
+      packages=packages,
+      package_data=package_data,
+      install_requires=install_requires,
+      extras_require=extras_require,
+      python_requires='>=3.6',
+     )