summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/py-cssselect2/Makefile7
-rw-r--r--textproc/py-cssselect2/distinfo6
-rw-r--r--textproc/py-cssselect2/files/setup.py34
3 files changed, 42 insertions, 5 deletions
diff --git a/textproc/py-cssselect2/Makefile b/textproc/py-cssselect2/Makefile
index 5e8bb7841cf0..247d07fdd8dc 100644
--- a/textproc/py-cssselect2/Makefile
+++ b/textproc/py-cssselect2/Makefile
@@ -1,7 +1,7 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= cssselect2
-PORTVERSION= 0.4.1
+PORTVERSION= 0.5.0
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,9 +15,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tinycss2>=0:textproc/py-tinycss2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}webencodings>=0:converters/py-webencodings@${PY_FLAVOR}
-USES= python:3.6+
+USES= python:3.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-cssselect2/distinfo b/textproc/py-cssselect2/distinfo
index 9a50b8e9ee64..0a873d21857a 100644
--- a/textproc/py-cssselect2/distinfo
+++ b/textproc/py-cssselect2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1604680192
-SHA256 (cssselect2-0.4.1.tar.gz) = 93fbb9af860e95dd40bf18c3b2b6ed99189a07c0f29ba76f9c5be71344664ec8
-SIZE (cssselect2-0.4.1.tar.gz) = 32756
+TIMESTAMP = 1647264676
+SHA256 (cssselect2-0.5.0.tar.gz) = d98a7bbdd8ebc46093279195d669a3359bd5a23f90c19e82c19d9eeef333e617
+SIZE (cssselect2-0.5.0.tar.gz) = 34918
diff --git a/textproc/py-cssselect2/files/setup.py b/textproc/py-cssselect2/files/setup.py
new file mode 100644
index 000000000000..9cbdcc2f99fc
--- /dev/null
+++ b/textproc/py-cssselect2/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 = \
+['cssselect2']
+
+package_data = \
+{'': ['*']}
+
+install_requires = \
+['tinycss2', 'webencodings']
+
+extras_require = \
+{'doc': ['sphinx', 'sphinx_rtd_theme'],
+ 'test': ['pytest',
+ 'pytest-cov',
+ 'pytest-flake8',
+ 'pytest-isort',
+ 'coverage[toml]']}
+
+setup(name='cssselect2',
+ version='%%PORTVERSION%%',
+ description='CSS selectors for Python ElementTree',
+ 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.7',
+ )