From nobody Mon Jan 30 13:04:41 2023 X-Original-To: dev-commits-ports-main@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 4P57gZ0g8gz3cXfS; Mon, 30 Jan 2023 13:04:42 +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 4P57gY6JD3z4KyC; Mon, 30 Jan 2023 13:04:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675083882; 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=srY4e1JZcqeOCH3phfOhD2QOPaq4EKzOXZdTQhdf2Rs=; b=ZQNBU9dwLYCEDkiOU5QRth6rb4y5X02po9HPGz8/2hwePTRF609xSoLw+azUZPjX/fQKB9 HbmZHGUpx1OR+FMA0nSACaK3/gq6NoE2IkgMHVQgazMi63OIZ352JSNvPm1vYOLWoxuMxf lB7I19e+dp85QAo31hNBlLgH6WgnMCtfUMLOLnMBBBq4FTFFetOrL46q6cTDF4QrUAhQuI Yy1DuGNw1PioQ4A/GnSjd+lKVdBlZLzUzlQV5zSMX4TBMmIISVPWt9srG4zu7bxE3kjwRl v1f+F1gOo1eMIZDvHIjORz4APg1HKfJta6UDkK0oiTn9Z9Km8/XlTbphEefhaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675083882; 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=srY4e1JZcqeOCH3phfOhD2QOPaq4EKzOXZdTQhdf2Rs=; b=QjCC9Mx2VT2pw2esLeex4Tis2VkKxwswHaSpCl3rDNgwkl0JZzPkYJUgb4ZFI2zhrVmiQZ U3uDo+XXjJsMMBfsPwMcitDskAO0Z64HewGTAUjrqkS+8Ylc9AEXk3X2XEpfebgaFZdNI/ aDfE4TkvqQF8Go7Sg/CFgBAEnXDR1ZA1P9IHrOj1b2qAMiKG1KeNITdBPNNwI7FEqw+8a0 qDjPuwWYpKEIZ3490F3Mo0UjdlDG8/dGhn/7qMyRFzGA4hHIsaMaDM+cImXeVZ4Mr4t5tf GKeCQMWczX/s+pYL8sOfErtBEmCKRzM99zIv0I/f1BYLNWpdJQyAP4T6Q3GrGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675083882; a=rsa-sha256; cv=none; b=bOqKBIx1oVgVK97Vlv1WqQPCzSh7ND/Y9yLwvFbdLcWUfin0d3ILnQhtgxbagsfSrFQELC bqQt2XNYmKA1KuLit3c/LwbzCmlL81Mtgi3rSCXgFFEqpZyiaUtYsAMiOz8NtaNTqE0X1t aoqrEEguXejjurKHo0IGca/ye2H9jTEjH/ZHvF9+vH0vU+/7j1ihJqFZEbV0MiOKbwSghh TpyF2L7U+Ng1Megp/zqdFMt7iNxy0XSI2dcYkvUu6j98+13CtPfvMYIIAmGv2gSJxRbftf Cakgv7wAtTpqjJSJOgVSTmwbGTh9FM4bz9bPYQirKi//nnXodvMWchBGSH88jw== 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 4P57gY56r0z17qF; Mon, 30 Jan 2023 13:04:41 +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 30UD4fkQ051140; Mon, 30 Jan 2023 13:04:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30UD4fks051139; Mon, 30 Jan 2023 13:04:41 GMT (envelope-from git) Date: Mon, 30 Jan 2023 13:04:41 GMT Message-Id: <202301301304.30UD4fks051139@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: 4dc064d4dfde - main - devel/py-pyproject_hooks: Add py-pyproject_hooks 1.0.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: 4dc064d4dfde8350bfaa75ae825fbbd533be2460 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4dc064d4dfde8350bfaa75ae825fbbd533be2460 commit 4dc064d4dfde8350bfaa75ae825fbbd533be2460 Author: Po-Chuan Hsieh AuthorDate: 2023-01-30 12:21:01 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-01-30 12:58:47 +0000 devel/py-pyproject_hooks: Add py-pyproject_hooks 1.0.0 pyproject-hooks is a low-level library for calling build-backends in pyproject.toml-based project. It provides the basic functionality to help write tooling that generates distribution files from Python projects. If you want a tool that builds Python packages, you'll want to use devel/py-build instead. This is an underlying piece for pip, build and other "build frontends" use to call "build backends" within them. --- devel/Makefile | 1 + devel/py-pyproject_hooks/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-pyproject_hooks/distinfo | 3 +++ devel/py-pyproject_hooks/files/setup.py | 29 +++++++++++++++++++++++++++++ devel/py-pyproject_hooks/pkg-descr | 7 +++++++ 5 files changed, 68 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index fd49b0f5960c..07ceb17c34f0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5154,6 +5154,7 @@ SUBDIR += py-pyplusplus SUBDIR += py-pyproject-fmt SUBDIR += py-pyproject-metadata + SUBDIR += py-pyproject_hooks SUBDIR += py-pypugjs SUBDIR += py-pyqtree SUBDIR += py-pyquery diff --git a/devel/py-pyproject_hooks/Makefile b/devel/py-pyproject_hooks/Makefile new file mode 100644 index 000000000000..aa48adc912ac --- /dev/null +++ b/devel/py-pyproject_hooks/Makefile @@ -0,0 +1,28 @@ +PORTNAME= pyproject_hooks +PORTVERSION= 1.0.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Wrappers to call pyproject.toml-based build backend hooks +WWW= https://github.com/pypa/pyproject-hooks + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.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/distinfo b/devel/py-pyproject_hooks/distinfo new file mode 100644 index 000000000000..89545ec2ffd0 --- /dev/null +++ b/devel/py-pyproject_hooks/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1674588052 +SHA256 (pyproject_hooks-1.0.0.tar.gz) = f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5 +SIZE (pyproject_hooks-1.0.0.tar.gz) = 16901 diff --git a/devel/py-pyproject_hooks/files/setup.py b/devel/py-pyproject_hooks/files/setup.py new file mode 100644 index 000000000000..bf69b647b92a --- /dev/null +++ b/devel/py-pyproject_hooks/files/setup.py @@ -0,0 +1,29 @@ +#!/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', + ) diff --git a/devel/py-pyproject_hooks/pkg-descr b/devel/py-pyproject_hooks/pkg-descr new file mode 100644 index 000000000000..b3d0478c907d --- /dev/null +++ b/devel/py-pyproject_hooks/pkg-descr @@ -0,0 +1,7 @@ +pyproject-hooks is a low-level library for calling build-backends in +pyproject.toml-based project. It provides the basic functionality to help write +tooling that generates distribution files from Python projects. + +If you want a tool that builds Python packages, you'll want to use +devel/py-build instead. This is an underlying piece for pip, build and other +"build frontends" use to call "build backends" within them.