git: 509b348ad682 - main - textproc/py-cssselect2: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 19:30:07 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=509b348ad682637a50aa5d48286d8546f68f438e commit 509b348ad682637a50aa5d48286d8546f68f438e Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-03-21 18:48:07 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-03-21 19:21:19 +0000 textproc/py-cssselect2: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- textproc/py-cssselect2/Makefile | 7 +++---- textproc/py-cssselect2/files/setup.py | 34 ---------------------------------- 2 files changed, 3 insertions(+), 38 deletions(-) diff --git a/textproc/py-cssselect2/Makefile b/textproc/py-cssselect2/Makefile index 4899a745c878..14d3f867e2e2 100644 --- a/textproc/py-cssselect2/Makefile +++ b/textproc/py-cssselect2/Makefile @@ -1,5 +1,6 @@ PORTNAME= cssselect2 PORTVERSION= 0.7.0 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,15 +12,13 @@ WWW= https://github.com/Kozea/cssselect2 LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tinycss2>=0:textproc/py-tinycss2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}webencodings>=0:converters/py-webencodings@${PY_FLAVOR} USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 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/files/setup.py b/textproc/py-cssselect2/files/setup.py deleted file mode 100644 index 9cbdcc2f99fc..000000000000 --- a/textproc/py-cssselect2/files/setup.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/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', - )