From nobody Sun Feb 12 18:46:30 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PFGdz066mz3qYSy; Sun, 12 Feb 2023 18:46:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFGdy6YvZz3rf0; Sun, 12 Feb 2023 18:46:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676227590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1uODjfA9dgDFn6SFnSeUzei4w2mTjSQ8lRrbT8ZrONo=; b=DzflFuGshUWlfUBCxSPM99PtagAL1KpJx72YDBeYKXYvn5PjsdThrG5hxL2VBn1JVz22Kz zRSvgTDE7mXYk0BmCYybBVXXoVlDfzlIiO3SMmZcqFuuN869n6tsbExNob26IzTi8l9OgI X1uuHSgX2OXnvbGiPr21OJBzD22wKnpt6+ioSGgxtQJG0SL5OTwJdOmIaEZ0q6H1NJo/ug 8NLfc+4X+X9s7bv9vjwowcX/HkGXwMB6XEi0cwzWFBPb6qmooHWdW+FzyZ4qW3hXtSIeir RlNnyhv4ZFufisFwFzBLkLYszOS4pjuU60URtvIeFkIaSwz91WdLcsuRALFGhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676227590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1uODjfA9dgDFn6SFnSeUzei4w2mTjSQ8lRrbT8ZrONo=; b=uExdzNaAZpKaMCIBqFQKLlYCIp6b1skEY/uP/g/XWve8rLPyET6TJcleiVyW59zMaEXX/d rUcBfWBike+i/PqFa0a+cXFV8Laj7Cck+3TD4CzRa4T3BqQu9goVAqp3nE7qmX8S8Copdb 2GK+gME2ZfRGBNMr8iXwF+uBDi6adPk/P5MGhiYXoqzHvOD3a8/ahF9hu7CiHRzwim+Wjq 3LeomtXqAFfXx+CfZPZNnJ8pqxuqts4wAwm/h3hztawO+NJU4YwOmm4bwQRbAllUSnCpFh EcKITFIF9Mg4//gzy1fXdHUJdXmDunZt1xtM0JcxL0qgzj3qEEuc/sYKYV+SbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676227590; a=rsa-sha256; cv=none; b=ZKOtwkyBEVzR24GsoS4zWuk5+NK+HqOaaqiswzDELLUyt0jHI+EkkRgBZIP3+wn3GKsLE7 UfzNopl9if1PfrnRexBVs/fVJ4H7G6/xE/tUWk707To4lL+aSbQ7ADzwuZF8zgIF2FdHdc z9RfHs5vVUseMJqT2n831Z/PPSa9EnkxvrjFVnyEV3TQLjwTNTrrs5EmwIw3iSZgOoZQB8 nHhGW6FPBcY1vOcmgF76CAauabQ02mKOJtCt2HBGv+DRjV7oIf3ApmpbqQx9pSWSe7CLJ1 9yvAnsgISGJlWeDqzZILHwWJfTHLo8xlXDJzc4zts0bw7dWdU5k3HfaEcinyEA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PFGdy5fLJzpnd; Sun, 12 Feb 2023 18:46:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31CIkU98097823; Sun, 12 Feb 2023 18:46:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31CIkU3P097822; Sun, 12 Feb 2023 18:46:30 GMT (envelope-from git) Date: Sun, 12 Feb 2023 18:46:30 GMT Message-Id: <202302121846.31CIkU3P097822@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: f2e8fb682381 - main - devel/py-pyproject_hooks: Convert to USE_PYTHON=pep517 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f2e8fb682381c30edeafcda3ad56c61db17f4b79 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f2e8fb682381c30edeafcda3ad56c61db17f4b79 commit f2e8fb682381c30edeafcda3ad56c61db17f4b79 Author: Po-Chuan Hsieh AuthorDate: 2023-02-12 18:36:53 +0000 Commit: Po-Chuan Hsieh 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 .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 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 ', - url=None, - packages=packages, - package_data=package_data, - package_dir=package_dir, - extras_require=extras_require, - python_requires='>=3.7', - )