From nobody Fri Apr 26 03:26:10 2024 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 4VQdRQ65tBz5HSH8; Fri, 26 Apr 2024 03:26:10 +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 4VQdRQ5b4mz4Zsr; Fri, 26 Apr 2024 03:26:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714101970; 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=pxUgntjZDLdvVJOxL2WvUvCmKf498K3xhUVMymD9xYQ=; b=ypf/F859zRbLOOgI11Yd78FrRtzjnoPGEQ44g81QMoEv5NwVmL6ftO0Zqy5tbrrT1sRVHx R0ByvM6eNgGSWh31heRfU05ySZq3ZryliOo/V6biDQtyD6FE81BFeBZE0GDXPUywPHJ3Ff SYsF5m5tZT3tMZlByFEce9mrCUjdSaZFJLmhzw7vOxqsyi+Pmz2YfgDOTqXqU0O686tz9c n2qbq/+gwFg79dTx7VP9tar8Zm7bJtfCCbwtQWXTS5Pkn2dh75L6sbO6UL9OlV7VDkieWE RQuolaBXZq7lJyLpU/lQdBShK3s+Ujv21kAAcnPYLpAdGXUwOwlreRyZFwhItw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714101970; a=rsa-sha256; cv=none; b=DXd/dNXgGXoN0Zgic/s2TWnbo1POMxa/kTRKMLhrjjHcDTuGK/lbIimysx80eMofi7NGw/ kikXi4yxbFXnmx9xxLxPW8SQfIlkrKP+HK9R1QSHAn0t+2UdspYiNXSSpT8An3p0L6B3G5 EYjVCWZk/IUhU9qDmCgrfVkwRlE+HVXvv9/5AsH6j36Kr/BWDx8yoymxs3cLy+E8EodTTr JdNN5EA1PS14pA3P8Qj7TjM/VnMf/J27yjv2S5iehIxnW7aRrQfYsDwH2HwkpYLC8JNBqI tZ00RvbrCCe4xStc9MMAt0AQ8y+kjjqByWQ9M00JnFpqnX3aqS4K+7EQhgpHhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714101970; 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=pxUgntjZDLdvVJOxL2WvUvCmKf498K3xhUVMymD9xYQ=; b=hWAiIWHB2OzfcYaFYYdrl/6/blyiMZ1eCjHCqCIMd19x0xm2WCC2yrYKyH8MPS/x4flgrJ FHLF6FLuXyEn72eEDFREqTA3LfM8c8yrrwtHueayJOuGd8DZE0i5snxB6wH0VxokCH6p4K w35p2jtd4+VfSTCXr4NXbJv2IaWAAGXp8ceLCXKKR7CVyOzZWjmhVxyOZL+QwSlXfDfWzn Zoml5nyLMgeHjGziVHV0iAvSuA3/8Lfn7ampX0zESFDhUGutgDITC2SK+JCbH82ObHeYbc vU2kJ5CqMoMCuxa/zHdcMGSNcHaZ/JfinmKlS0mjIMS4p7UD+ctZ/vKUiR5zsA== 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 4VQdRQ53SzzR2V; Fri, 26 Apr 2024 03:26:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43Q3QAS3027347; Fri, 26 Apr 2024 03:26:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43Q3QAn2027344; Fri, 26 Apr 2024 03:26:10 GMT (envelope-from git) Date: Fri, 26 Apr 2024 03:26:10 GMT Message-Id: <202404260326.43Q3QAn2027344@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: a2851b786959 - main - devel/py-nanobind: New port: Tiny and efficient C++/Python bindings 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a2851b786959d5b5ad821da82d167f435ed1bf8c Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=a2851b786959d5b5ad821da82d167f435ed1bf8c commit a2851b786959d5b5ad821da82d167f435ed1bf8c Author: Yuri Victorovich AuthorDate: 2024-04-26 01:15:15 +0000 Commit: Yuri Victorovich CommitDate: 2024-04-26 03:26:05 +0000 devel/py-nanobind: New port: Tiny and efficient C++/Python bindings --- devel/Makefile | 1 + devel/py-nanobind/Makefile | 37 ++++++++++++++++++++++++++++ devel/py-nanobind/distinfo | 5 ++++ devel/py-nanobind/files/patch-pyproject.toml | 9 +++++++ devel/py-nanobind/pkg-descr | 5 ++++ 5 files changed, 57 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c398cfa454c7..5440e3313dc4 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5094,6 +5094,7 @@ SUBDIR += py-mypy_extensions SUBDIR += py-mystic SUBDIR += py-naiveBayesClassifier + SUBDIR += py-nanobind SUBDIR += py-nanotime SUBDIR += py-natsort SUBDIR += py-natural diff --git a/devel/py-nanobind/Makefile b/devel/py-nanobind/Makefile new file mode 100644 index 000000000000..d39734df7c67 --- /dev/null +++ b/devel/py-nanobind/Makefile @@ -0,0 +1,37 @@ +PORTNAME= nanobind +DISTVERSIONPREFIX= v +DISTVERSION= 1.9.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Tiny and efficient C++/Python bindings +WWW= https://github.com/wjakob/nanobind + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} + +USES= cmake:insource,testing python +USE_PYTHON= pep517 autoplist + +USE_GITHUB= yes +GH_ACCOUNT= wjakob +GH_TUPLE= Tessil:robin-map:188c455:robin_map/ext/robin_map + +CMAKE_OFF= NB_TEST +CMAKE_TESTING_ON= NB_TEST +CMAKE_TESTING_TARGET= + +NO_ARCH= yes + +post-test: # run-tests + @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest . + +.include diff --git a/devel/py-nanobind/distinfo b/devel/py-nanobind/distinfo new file mode 100644 index 000000000000..e20bbfcbaeaf --- /dev/null +++ b/devel/py-nanobind/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1714059630 +SHA256 (wjakob-nanobind-v1.9.2_GH0.tar.gz) = 149a3da40b0a988513d8cf5e71db3037373823505a3c92f87b988c92d7e0ab34 +SIZE (wjakob-nanobind-v1.9.2_GH0.tar.gz) = 785164 +SHA256 (Tessil-robin-map-188c455_GH0.tar.gz) = c3f05ed8933a1f9aa57295c8ad17bd44756cf5cf030a95325c61aa862fa19680 +SIZE (Tessil-robin-map-188c455_GH0.tar.gz) = 70577 diff --git a/devel/py-nanobind/files/patch-pyproject.toml b/devel/py-nanobind/files/patch-pyproject.toml new file mode 100644 index 000000000000..90fb521c5bd4 --- /dev/null +++ b/devel/py-nanobind/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +--- pyproject.toml.orig 2024-04-25 15:40:44 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools>=42", "wheel", "scikit-build", "cmake>=3.17", "ninja"] ++requires = ["setuptools>=42", "wheel", "scikit-build"] + build-backend = "setuptools.build_meta" + + diff --git a/devel/py-nanobind/pkg-descr b/devel/py-nanobind/pkg-descr new file mode 100644 index 000000000000..52bfaa1ab0b0 --- /dev/null +++ b/devel/py-nanobind/pkg-descr @@ -0,0 +1,5 @@ +nanobind is a small binding library that exposes C++ types in Python and vice +versa. It is reminiscent of Boost.Python and pybind11 and uses near-identical +syntax. In contrast to these existing tools, nanobind is more efficient: +bindings compile in a shorter amount of time, produce smaller binaries, and have +better runtime performance.