From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A5C9C15812D for ; Tue, 07 Jan 2025 05:27:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0E6BE07D0; Tue, 07 Jan 2025 05:27:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B325CE07D0 for ; Tue, 07 Jan 2025 05:27:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B07A9340813 for ; Tue, 07 Jan 2025 05:27:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 163F81D60 for ; Tue, 07 Jan 2025 05:27:40 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1736227652.889dbdf64a5d3e9b43b7877964cd481d935fb400.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ml-dtypes/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/ml-dtypes/Manifest dev-python/ml-dtypes/ml-dtypes-0.5.1.ebuild X-VCS-Directories: dev-python/ml-dtypes/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 889dbdf64a5d3e9b43b7877964cd481d935fb400 X-VCS-Branch: master Date: Tue, 07 Jan 2025 05:27:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f07bb2f7-90a2-4dd2-8d14-2c59fa91365e X-Archives-Hash: d50a9eb02b6342d4346fffe63a520561 commit: 889dbdf64a5d3e9b43b7877964cd481d935fb400 Author: Michał Górny gentoo org> AuthorDate: Tue Jan 7 05:07:55 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jan 7 05:27:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=889dbdf6 dev-python/ml-dtypes: Bump to 0.5.1 Signed-off-by: Michał Górny gentoo.org> dev-python/ml-dtypes/Manifest | 1 + dev-python/ml-dtypes/ml-dtypes-0.5.1.ebuild | 58 +++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/dev-python/ml-dtypes/Manifest b/dev-python/ml-dtypes/Manifest index eb3d041189c8..2b8e67db9f36 100644 --- a/dev-python/ml-dtypes/Manifest +++ b/dev-python/ml-dtypes/Manifest @@ -1,2 +1,3 @@ DIST eigen-7bf2968fed5f246c0589e1111004cb420fcd7c71.tar.bz2 2239233 BLAKE2B 3a7e81c302cb11ae1d6ef9433a9ec41506c1f37d04cfb8744ac3fcf7dbe9430c1b48d7197ca3b8e1f9354398bac3d0dbc3e0599c0b649acd6175e906befe2973 SHA512 29ee89770726e6e0f5135b7fab24649f3e69223caed90d2daa6f0014783e69fe98f0551de49bd4e393d7b7938f2943caf1ed00f3933fa771ac14fae3c63fd5dd DIST ml_dtypes-0.5.0.gh.tar.gz 86170 BLAKE2B a289490fd6d06801965cc72d1abfe4a3b8b48459462bc4ae73a3ace2b4385f26b46081d924c02e1342a18eb98db2df33e3dd77284e40f2357a209a85010071f3 SHA512 20b2677c1e69b9ea298ac7d8ccfee3f0d19b847a805efa183ba04845e1a1697e9030abe00d6e8a4d46981df14c8d5986bcbc3b4e0f36eef2aee1cd04e3996bfe +DIST ml_dtypes-0.5.1.gh.tar.gz 86384 BLAKE2B 1989df40221262784983732067946bc1ac51c44db27e54d30471884508f080403107c811d33940b2de27a1cea5d5928bebdfc96b987c36d71b7f8f81f68c4615 SHA512 d0fab3492ad9f8caeec665c026baca9eca7a15fcb032267ff57d9c9b6eccb852e6659b4f7bd25f64b50974b5a93f5be9ec68ab1746ede286f22d60c13a7d2d4c diff --git a/dev-python/ml-dtypes/ml-dtypes-0.5.1.ebuild b/dev-python/ml-dtypes/ml-dtypes-0.5.1.ebuild new file mode 100644 index 000000000000..e0843af55970 --- /dev/null +++ b/dev-python/ml-dtypes/ml-dtypes-0.5.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +MY_P=${PN/-/_}-${PV} +EIGEN_CommitId="7bf2968fed5f246c0589e1111004cb420fcd7c71" + +DESCRIPTION="A stand-alone implementation of several NumPy dtype extensions" +HOMEPAGE=" + https://github.com/jax-ml/ml_dtypes/ + https://pypi.org/project/ml-dtypes/ +" +SRC_URI=" + https://github.com/jax-ml/ml_dtypes/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz + https://gitlab.com/libeigen/eigen/-/archive/${EIGEN_CommitId}/eigen-${EIGEN_CommitId}.tar.bz2 +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +DEPEND=" + >=dev-python/numpy-1.21:=[${PYTHON_USEDEP}] +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-python/pybind11[${PYTHON_USEDEP}] + test? ( + dev-python/absl-py[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + rmdir third_party/eigen || die + mv "${WORKDIR}/eigen-${EIGEN_CommitId}" third_party/eigen || die + distutils-r1_python_prepare_all +} + +src_test() { + mv ml_dtypes/tests . || die + rm -r ml_dtypes || die + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + distutils-r1_src_test +}