From nobody Sun Feb 12 18:46:32 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 4PFGf13NWTz3qYFj; Sun, 12 Feb 2023 18:46:33 +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 4PFGf11WgQz3s1R; Sun, 12 Feb 2023 18:46:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676227593; 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=cZ/7SX5+TgTzRRRcLfhpSrsYsEiBnt1jQOWFqeJIQwQ=; b=FjCofSacVMKR9SSpoE4tIDAJC+5zwyGkAFJ+kBa9zE649JmYFFoud+sEYpmj6aXUi8Jmu+ S8bASrzhbKAWiW/Cfd3ZvUu7zzJdWEGT38BRiGa0dAEE4/SeHcO1bKhSJulMZPYZ2P38R8 Gga8atIK5zz1GHAoerBjk6tZA9bortoAu+Y4FOJ5zidEWAJFsMpyMMwskZICo0Ge0jJAFf SPhoRib0K4FEmMdghJ4xScBE/MGTF00NAfTQc7yF/KuQtrZZTXYryJsp1zHNqx1upTbxMm RXCprRUSGiLNwK6CBrErNqXCwuxSY9AT8GgI9YPgZd5guDbPCaXl8jqHQsMg7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676227593; 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=cZ/7SX5+TgTzRRRcLfhpSrsYsEiBnt1jQOWFqeJIQwQ=; b=B8NZloRDpj1SwqDCZvdqx/2yrIm+TbwgPqLM1XjgyENXe6TZztBJt8qZpyrW9/IBxIqTzx nkKU4RrFfRhN1CsRltcVN+PUGwWrZTcsK3qNxdawEQEm+CnXS4A6kJNZBNFUsJyaX0AE9y ZJO8/eqHJCjWokf0IAg8/eNTwQ6o3BFr04wM8VfMQ3aihwHm4SBolWed6AgFzzOFo+JKV6 q3hXSc2D24uJPwxJMkgzM1aGo+nHb8S4m4r7rRV5zZM9/TxGGawFS6tjWnGQFw0OKdA37H w0GNDuKnLX9Mm3cw+rOnHpu/lN6KgS19aarOA5Duo6dd15e00k5Soxbh6T+N0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676227593; a=rsa-sha256; cv=none; b=EnVFYDzKZO74Srq0pJY4/7AbwIwt6FVXQcv96IC270i2FmktgDjT/lzuTOaODHKEpIHD1g M+S5QqGWy0HeKf40+qMP5kAbd85VI4eAENoCIUV5zuERFvJOKwMdb5NL7dh/73PDD2XBOT fU9K2A6IpDxGYtLldcpS9d3SfWU2cypakOyNKRqAZv4jLo8SrC1dKZI5LUKy1nz7XiBIR3 BZwfhfxyPxanHqR8x69z453WB/qAqY6b1uhoioiX6WDezw/htGLArIEThAcp598xHT0PG0 T+KwaLIs/rBH3yCJn8pGSe53ANxxBxTMZ1xr/HJI3B4WdVWsp68mVhZdx329pg== 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 4PFGf10L1ZzpW9; Sun, 12 Feb 2023 18:46:33 +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 31CIkW55097876; Sun, 12 Feb 2023 18:46:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31CIkW2K097875; Sun, 12 Feb 2023 18:46:32 GMT (envelope-from git) Date: Sun, 12 Feb 2023 18:46:32 GMT Message-Id: <202302121846.31CIkW2K097875@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: 9bb250cfb034 - main - textproc/py-tomli: 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: 9bb250cfb034501c2344337d97dc61f31c70ef5c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=9bb250cfb034501c2344337d97dc61f31c70ef5c commit 9bb250cfb034501c2344337d97dc61f31c70ef5c Author: Po-Chuan Hsieh AuthorDate: 2023-02-12 18:36:56 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-02-12 18:41:47 +0000 textproc/py-tomli: Convert to USE_PYTHON=pep517 - Add build for all Python flavors/versions (USE_PYTHON=allflavors) - Bump PORTREVISION for dependency and package change --- textproc/py-tomli/Makefile | 9 +++++---- textproc/py-tomli/files/setup.py | 25 ------------------------- 2 files changed, 5 insertions(+), 29 deletions(-) diff --git a/textproc/py-tomli/Makefile b/textproc/py-tomli/Makefile index b440e6a17fc3..8a367993d5a6 100644 --- a/textproc/py-tomli/Makefile +++ b/textproc/py-tomli/Makefile @@ -1,5 +1,6 @@ PORTNAME= tomli PORTVERSION= 2.0.1 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,12 +12,12 @@ WWW= https://github.com/hukkin/tomli 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 -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py +PEP517_BUILD_CMD= ${PYTHON_CMD} -m flit_core.wheel +PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2.0<4:devel/py-flit-core@${PY_FLAVOR} .include diff --git a/textproc/py-tomli/files/setup.py b/textproc/py-tomli/files/setup.py deleted file mode 100644 index 3a7a2820c9a8..000000000000 --- a/textproc/py-tomli/files/setup.py +++ /dev/null @@ -1,25 +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 = \ -['tomli'] - -package_data = \ -{'': ['*']} - -package_dir = \ -{'': 'src'} - -setup(name='tomli', - version='%%PORTVERSION%%', - description="A lil' TOML parser", - author=None, - author_email='Taneli Hukkinen ', - url=None, - packages=packages, - package_data=package_data, - package_dir=package_dir, - python_requires='>=3.7', - )