From nobody Sun Feb 12 18:46:23 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 4PFGdr3K4Lz3qYF5; Sun, 12 Feb 2023 18:46:24 +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 4PFGdr1GKJz3rLW; Sun, 12 Feb 2023 18:46:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676227584; 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=cma0kae3hkrXDEqhSb37vvjKPv5iIcfeAyuTF/KaECA=; b=bSNlaVeS9uK6C1wi/jBosoFHASAgogf0eOfx7/L8aIk0+7J0gf44RvQMwqfWwQZfmEnVCr XG6PYvseuO1Kl9WNnySO7AAJUT1HaDYIUZ5OTnPmO8YDJYMS87l1GdyMvlneM9zV5BaXW2 JS/ODX35MGCXqiJUXgC9raGqEWWMadtFQHcMfFupap/G9bwc6tOZBUK5muQw//BaAf+kU4 4UF/EsDWafqRMLypECWoFi+SGmAjjd84O8ix7Qvkqq5sFrlG1f/ZgQ1zmqozKpnDA1kfDy n0dkSnnuRVeHubwXNl/NavqsREkGQ8GDMBesRa6rwCBmn/DZmYEdqkB4oze4ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676227584; 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=cma0kae3hkrXDEqhSb37vvjKPv5iIcfeAyuTF/KaECA=; b=kKsv81zJbBxgq4oUmXKq/wQSqZZjfTEEEe73hnhok1wrNM+ntkWPexQiYr7QOp11Ryqum8 8UCUAgKzUWTSQ6hS8gbmwY4/6XwWZnL7BLPKkm4QpVVTcKSNQA8Dcu8cWXVxsY+TyjxvPv Z9pquKwzRh3CZuQi6XEWFzD0a4T7Nni7wWf+ewAQ3FatOs56AQlNZo6Q0TMqJ7PuDAnmpH xezuIPPKxk0g+6eliEGA9P8zvCh2JtmevMJkxnRxK5mn/ep/cp5sM7FviizZZoDji6GrrG 2ijqvzbmYUXNIwkgTx/tzJ2zliaYwLzeoMmoeCsJpsfkUM7L1A05Hm/yMLKK9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676227584; a=rsa-sha256; cv=none; b=aVmXpnt+dYh8YSEVIAN2GkOAsPYnA5DHoMtj0+JqN5rjfiaXHtxE2/GNPPtEk+8u2p4yww ozrOcK8s6ndDxQSDkehOr84+heLdP0uYVJiNJG70oQssSeJxU4uTCKYANJS72XsznJ64yc MldWwRB6rFhyZZN8+bYTPD7bOMECR3f31cNnZdq4A+KjgOkGxOaKGueBGohvSWPP+1Niqp SI9Zec/orXJkInY3ozVWz2PBmtdyLF6g0FbFmKVHmC3CFd40i7VNQBlvqg8f4OcWfwDygi xhWLYPakGKoa9jM620WSycvca2RxLj5sHr7jJ2IfbP3o8nAuNDYSrLjBRpDxIA== 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 4PFGdr01xwzpKZ; Sun, 12 Feb 2023 18:46:24 +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 31CIkNHa097670; Sun, 12 Feb 2023 18:46:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31CIkNep097669; Sun, 12 Feb 2023 18:46:23 GMT (envelope-from git) Date: Sun, 12 Feb 2023 18:46:23 GMT Message-Id: <202302121846.31CIkNep097669@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: e7cfa3158cd4 - main - devel/py-build: 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: e7cfa3158cd49aa3ef4d6c4632c6b9d0bbce1c74 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e7cfa3158cd49aa3ef4d6c4632c6b9d0bbce1c74 commit e7cfa3158cd49aa3ef4d6c4632c6b9d0bbce1c74 Author: Po-Chuan Hsieh AuthorDate: 2023-02-12 18:36:48 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-02-12 18:36:48 +0000 devel/py-build: Convert to USE_PYTHON=pep517 - Add build for all Python flavors/versions (USE_PYTHON=allflavors) - Bump PORTREVISION for dependency and package change --- devel/py-build/Makefile | 11 ++++---- devel/py-build/files/setup.py | 59 ------------------------------------------- 2 files changed, 6 insertions(+), 64 deletions(-) diff --git a/devel/py-build/Makefile b/devel/py-build/Makefile index 3f83236c3cdb..e92f5a0f20ac 100644 --- a/devel/py-build/Makefile +++ b/devel/py-build/Makefile @@ -1,5 +1,6 @@ PORTNAME= build PORTVERSION= 0.10.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,11 +15,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=19.0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyproject_hooks>=0:devel/py-pyproject_hooks@${PY_FLAVOR} -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.4:devel/py-flit-core@${PY_FLAVOR} + .include .if ${PYTHON_REL} < 30800 @@ -29,7 +33,4 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.22:devel/py-importlib 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-build/files/setup.py b/devel/py-build/files/setup.py deleted file mode 100644 index 0fe44296b904..000000000000 --- a/devel/py-build/files/setup.py +++ /dev/null @@ -1,59 +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 = \ -['build'] - -package_data = \ -{'': ['*']} - -package_dir = \ -{'': 'src'} - -install_requires = \ -['packaging >= 19.0', 'pyproject_hooks'] - -extras_require = \ -{':os_name == "nt"': ['colorama'], - ':python_version < "3.11"': ['tomli >= 1.1.0'], - ':python_version < "3.8"': ['importlib-metadata >= 0.22'], - 'docs': ['furo >= 2021.08.31', - 'sphinx ~= 4.0', - 'sphinx-argparse-cli >= 1.5', - 'sphinx-autodoc-typehints >= 1.10'], - 'test': ['filelock >= 3', - 'pytest >= 6.2.4', - 'pytest-cov >= 2.12', - 'pytest-mock >= 2', - 'pytest-rerunfailures >= 9.1', - 'pytest-xdist >= 1.34', - 'toml >= 0.10.0', - 'wheel >= 0.36.0'], - 'test:python_version < "3.10"': ['setuptools >= 42.0.0'], - 'test:python_version >= "3.10"': ['setuptools >= 56.0.0'], - 'typing': ['importlib-metadata >= 5.1', - 'mypy == 0.991', - 'tomli', - 'typing-extensions >= 3.7.4.3'], - 'virtualenv': ['virtualenv >= 20.0.35']} - -entry_points = \ -{'console_scripts': ['pyproject-build = build.__main__:entrypoint'], - 'pipx.run': ['build = build.__main__:entrypoint']} - -setup(name='build', - version='%%PORTVERSION%%', - description='A simple, correct Python build frontend', - author=None, - author_email='Filipe Laíns , Bernát Gábor , layday , Henry Schreiner ', - url=None, - packages=packages, - package_data=package_data, - package_dir=package_dir, - install_requires=install_requires, - extras_require=extras_require, - entry_points=entry_points, - python_requires='>= 3.7', - )