From nobody Tue Feb 07 01:21:59 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 4P9lj32pjDz3nhhp; Tue, 7 Feb 2023 01:21:59 +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 4P9lj32MLwz3K4r; Tue, 7 Feb 2023 01:21:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675732919; 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=3Efb1N4JLnTmqMkMl7/mwEuaZOfdDXZX9Vvl0cT6nsY=; b=si6OUttWQAEWgW91cy7gIA3M7B5B346LhDE7g2CZ7A4exebZ5hmc5bFTcwqVmJJqnjCTQE Mog4AYaxxtLAn13T14a0cZSkRYPGragT0YxAnv8jmJGZINhzukffZ/R/fsxJU32mBSVC82 Ad5K2CWfACRwPflMijRuYaBDXfgQ5/D8c45/Jkph5TF9j4VK6hJCQ/EPOVBSZj3FwMFBdo LVaKJVMJCnKL45Klm3hx6/sY2ZL0xo7/Led0FhOo4ec9nQZZ4g2XlSgyoq7/tEuYY3YV4i wBc7kezphIOz88CK6oMUd+iWcVr88d01Qqs85QfxE2lqZcPopQtPfGAPmMO0RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675732919; 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=3Efb1N4JLnTmqMkMl7/mwEuaZOfdDXZX9Vvl0cT6nsY=; b=ZXgaRH6rQOzjhygRJdYDtNsRk8QumG0mSIVpGm2QM8iux8Phu0TMkgNxy3hLa7TA698kmB KZxz8qqncI9s2nNMeYpWX1Rnz9+8STW6FnFhgvrUbJYOCCKTOt1rek64KQNx+lNEymUQQI L60Xm6TTR7mWt+sl3qVvHJTRJyhXu1c/ze06fFrlbJhJuTULRz60+7M/bzh2TvCu4qEsTW ztzAog7IWwz+dHXFDqr8dvZH3YhWJmkKjsjP88OjUhS9CQ8QfwEy/Hzms6A9/vF98LgR9Q wvculIvEFo7HJ6ps4bv35b8oIl8/4dBuyOT4P41Vyo9JqDUMqtAJzOvmixqn7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675732919; a=rsa-sha256; cv=none; b=jT79R5nmdVUcyEvnrnNlf3hUa4s+Wx0NBZN30GidSHINDetNH6oVIM+ITOZUKGvFPceIDi OSKkU0tIuUEnnqwDUfYE+e8vZUsymDmYjDX0SCz1e1ryPmvOvJJUOGtFTycS2UMJOSWW3u XFrPQT59bvqEZWUYmQQnYkY0kuqHxT8tThnnkJkbHb1jidMyi2voNQQ5x/RcxQrqCgJLgb XC08BeOZZvoTpYONNopqr+RXtFGRIAoJmP1+AlkFSQ1O2TUtVmxM/YdOOYcmWyvb/dwS4k kG2N6QuG216uIau0ejLXFsDqhK/vVDV3rEtP+/z7r6H07PZ1MhwwnYbMnVoI7A== 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 4P9lj31RGHzx9x; Tue, 7 Feb 2023 01:21:59 +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 3171Lx0Z017270; Tue, 7 Feb 2023 01:21:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3171LxhR017269; Tue, 7 Feb 2023 01:21:59 GMT (envelope-from git) Date: Tue, 7 Feb 2023 01:21:59 GMT Message-Id: <202302070121.3171LxhR017269@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Charlie Li Subject: git: 04ccdc92b5b9 - main - devel/py-flit-core: convert to self-hosting bootstrap 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: vishwin X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 04ccdc92b5b92a05801cacfc6db5bfeeec1e9406 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by vishwin: URL: https://cgit.FreeBSD.org/ports/commit/?id=04ccdc92b5b92a05801cacfc6db5bfeeec1e9406 commit 04ccdc92b5b92a05801cacfc6db5bfeeec1e9406 Author: Charlie Li AuthorDate: 2022-04-05 00:32:42 +0000 Commit: Charlie Li CommitDate: 2023-02-07 01:21:34 +0000 devel/py-flit-core: convert to self-hosting bootstrap This is the first port used to bootstrap the rest of the PEP-517 tooling. python@ will be maintaining this going forward as infrastructure. https://wiki.freebsd.org/Python/PEP-517 With hat: python Approved by: maintainer timeout, fluffy (mentor) Differential Revision: https://reviews.freebsd.org/D34786 --- devel/py-flit-core/Makefile | 19 ++++++++------ devel/py-flit-core/files/setup.py | 53 --------------------------------------- 2 files changed, 11 insertions(+), 61 deletions(-) diff --git a/devel/py-flit-core/Makefile b/devel/py-flit-core/Makefile index 89c75d1f205b..09cd3de506c6 100644 --- a/devel/py-flit-core/Makefile +++ b/devel/py-flit-core/Makefile @@ -1,11 +1,12 @@ PORTNAME= flit-core -PORTVERSION= 3.8.0 +DISTVERSION= 3.8.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= flit_core-${PORTVERSION} +DISTNAME= ${PORTNAME:C/[-_]+/_/g}-${DISTVERSIONFULL} -MAINTAINER= sunpoet@FreeBSD.org +MAINTAINER= python@FreeBSD.org COMMENT= Distribution-building parts of Flit WWW= https://github.com/pypa/flit/tree/main/flit_core @@ -14,12 +15,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}testpath>=0:devel/py-testpath@${PY_FLAVOR} -USES= python:3.4+ -USE_PYTHON= autoplist concurrent distutils pytest +USES= python +USE_PYTHON= allflavors autoplist concurrent pep517 pytest +PEP517_BUILD_CMD= ${PYTHON_CMD} -m ${PORTNAME:C/[-_]+/_/g}.wheel +PEP517_BUILD_DEPEND= +PEP517_INSTALL_CMD= ${PYTHON_CMD} ${BUILD_WRKSRC}/bootstrap_install.py \ + -i ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${BUILD_WRKSRC}/dist/${PORTNAME:C/[-_]+/_/g}-*.whl +PEP517_INSTALL_DEPEND= NO_ARCH= yes -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include diff --git a/devel/py-flit-core/files/setup.py b/devel/py-flit-core/files/setup.py deleted file mode 100644 index 3ae2588ec43e..000000000000 --- a/devel/py-flit-core/files/setup.py +++ /dev/null @@ -1,53 +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 = \ -['flit_core', - 'flit_core.tests', - 'flit_core.tests.samples.imported_version.package1', - 'flit_core.tests.samples.ns1-pkg.ns1.pkg', - 'flit_core.tests.samples.package1', - 'flit_core.tests.samples.package1.subpkg', - 'flit_core.tests.samples.package1.subpkg2', - 'flit_core.vendor', - 'flit_core.vendor.tomli'] - -package_data = \ -{'': ['*'], - 'flit_core.tests': ['samples/*', - 'samples/conflicting_modules/*', - 'samples/conflicting_modules/src/*', - 'samples/constructed_version/*', - 'samples/imported_version/*', - 'samples/inclusion/*', - 'samples/inclusion/LICENSES/*', - 'samples/inclusion/doc/*', - 'samples/inclusion/doc/subdir/*', - 'samples/inclusion/doc/subdir/subsubdir/*', - 'samples/normalization/*', - 'samples/ns1-pkg/*', - 'samples/ns1-pkg/ns1/*', - 'samples/pep517/*', - 'samples/pep621/*', - 'samples/pep621_nodynamic/*', - 'samples/with_data_dir/*', - 'samples/with_data_dir/data/*', - 'samples/with_data_dir/data/share/*', - 'samples/with_data_dir/data/share/man/*', - 'samples/with_data_dir/data/share/man/man1/*'], - 'flit_core.tests.samples.package1': ['data_dir/*'], - 'flit_core.tests.samples.package1.subpkg': ['sp_data_dir/*'], - 'flit_core.vendor': ['tomli-1.2.3.dist-info/*']} - -setup(name='flit_core', - version='%%PORTVERSION%%', - description='Distribution-building parts of Flit. See flit package for more information', - author=None, - author_email='Thomas Kluyver & contributors ', - url=None, - packages=packages, - package_data=package_data, - python_requires='>=3.6', - )