Date: Sun, 12 Feb 2023 18:46:30 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: f2e8fb682381 - main - devel/py-pyproject_hooks: Convert to USE_PYTHON=pep517 Message-ID: <202302121846.31CIkU3P097822@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f2e8fb682381c30edeafcda3ad56c61db17f4b79 commit f2e8fb682381c30edeafcda3ad56c61db17f4b79 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-02-12 18:36:53 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-02-12 18:41:46 +0000 devel/py-pyproject_hooks: Convert to USE_PYTHON=pep517 - Add build for all Python flavors/versions (USE_PYTHON=allflavors) - Bump PORTREVISION for dependency and package change --- devel/py-pyproject_hooks/Makefile | 11 ++++++----- devel/py-pyproject_hooks/files/setup.py | 29 ----------------------------- 2 files changed, 6 insertions(+), 34 deletions(-) diff --git a/devel/py-pyproject_hooks/Makefile b/devel/py-pyproject_hooks/Makefile index aa48adc912ac..f1b1fbeadb73 100644 --- a/devel/py-pyproject_hooks/Makefile +++ b/devel/py-pyproject_hooks/Makefile @@ -1,5 +1,6 @@ PORTNAME= pyproject_hooks PORTVERSION= 1.0.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,18 +12,18 @@ WWW= https://github.com/pypa/pyproject-hooks LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USES= python +USE_PYTHON= allflavors autoplist concurrent pep517 NO_ARCH= yes +PEP517_BUILD_CMD= ${PYTHON_CMD} -m flit_core.wheel +PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR} + .include <bsd.port.pre.mk> .if ${PYTHON_REL} < 31100 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR} .endif -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include <bsd.port.post.mk> diff --git a/devel/py-pyproject_hooks/files/setup.py b/devel/py-pyproject_hooks/files/setup.py deleted file mode 100644 index bf69b647b92a..000000000000 --- a/devel/py-pyproject_hooks/files/setup.py +++ /dev/null @@ -1,29 +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 = \ -['pyproject_hooks', 'pyproject_hooks._in_process'] - -package_data = \ -{'': ['*']} - -package_dir = \ -{'': 'src'} - -extras_require = \ -{":python_version<'3.11'": ['tomli >=1.1.0 ']} - -setup(name='pyproject_hooks', - version='%%PORTVERSION%%', - description='Wrappers to call pyproject.toml-based build backend hooks.', - author=None, - author_email='Thomas Kluyver <thomas@kluyver.me.uk>', - url=None, - packages=packages, - package_data=package_data, - package_dir=package_dir, - extras_require=extras_require, - python_requires='>=3.7', - )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302121846.31CIkU3P097822>