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 A76FF158042 for ; Wed, 30 Oct 2024 03:41:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDBA1E02D2; Wed, 30 Oct 2024 03:41:31 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D182AE02D2 for ; Wed, 30 Oct 2024 03:41:31 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F1012341214 for ; Wed, 30 Oct 2024 03:41:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29C0EAE7 for ; Wed, 30 Oct 2024 03:41:29 +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: <1730259232.673c36560eb63207df9b72492007122e30cf0961.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/simsimd/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/simsimd/Manifest dev-python/simsimd/simsimd-5.9.6.ebuild X-VCS-Directories: dev-python/simsimd/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 673c36560eb63207df9b72492007122e30cf0961 X-VCS-Branch: master Date: Wed, 30 Oct 2024 03:41:29 +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: ac427ff7-ca25-4a37-909c-fe7d64ac4115 X-Archives-Hash: e8b22b540528631f43685bfd3edc66e1 commit: 673c36560eb63207df9b72492007122e30cf0961 Author: Michał Górny gentoo org> AuthorDate: Wed Oct 30 03:27:57 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Oct 30 03:33:52 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=673c3656 dev-python/simsimd: Bump to 5.9.6 Signed-off-by: Michał Górny gentoo.org> dev-python/simsimd/Manifest | 1 + dev-python/simsimd/simsimd-5.9.6.ebuild | 64 +++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/dev-python/simsimd/Manifest b/dev-python/simsimd/Manifest index 406be64ee6aa..4c8e4073a19b 100644 --- a/dev-python/simsimd/Manifest +++ b/dev-python/simsimd/Manifest @@ -1,3 +1,4 @@ DIST SimSIMD-5.8.0.gh.tar.gz 183559 BLAKE2B 2df0eac6eff58bc6c460b37cb7c523eae5d7e77d516bc7182ef3b39d033a1028d40536aaf99ad8ec8c28b4908ff873079ff0ca3d74acd1f763b0faaa5d4e225e SHA512 4e68050379dfe42e6c36a88a0defad0d941c873bda66cb4c65bd8367b07bca99a5c5d6eec7c8e39b15ad1b8e5bcc9dc7f43457d8552e9d72faefb88b03ad6f9b DIST SimSIMD-5.9.2.gh.tar.gz 201732 BLAKE2B 2ca654f964fba71e54b8383390021fe87a731a85cac2509319944a3d0c0f60a09a7c1cf2fdb16a78ca20f3b7618e40960f2eac6c65fae6a06e583504df35890a SHA512 cf32776e05b91784d9a3a7d86a73a91549a22ce4612124f88412bb12bd356c654ce4e70c6a436f731d832a65cba8827d1100ff26f2b88fcaa234057f17d19aeb DIST SimSIMD-5.9.3.gh.tar.gz 201742 BLAKE2B b0bb57f6f2ae787b73a42997126f0bb8dce5dbf0f052d9145a6b79d72ac922e4da5c382e9c1a0104b6f8199c1f23dfa513f8a9134f772e4e25264678b030e908 SHA512 308bd69c41d2b668d4c4a147afdb2ea27aea6d8210affafe321681dc56542f59d241cc4a767d82fe9f85938545ecdd7f96c2533067d503529db730ab10ecc73e +DIST SimSIMD-5.9.6.gh.tar.gz 201831 BLAKE2B 4a3af9caf6eceb98faac93fa4bb5cea56b7bac3f128022c28f5f56504441c16326552c1ee22a1fbaad8740434060ff4c1c47dd18d83134fdff976897df83ede6 SHA512 1c149c622a71feca1dcef99d626fbb080cdaacac7c0b333362220d733a696bc58a5c1952025ad5d13c4bdc33060ebe3f00d9bf8da9ece283c148dac70d32d5a3 diff --git a/dev-python/simsimd/simsimd-5.9.6.ebuild b/dev-python/simsimd/simsimd-5.9.6.ebuild new file mode 100644 index 000000000000..3b7152ad7a71 --- /dev/null +++ b/dev-python/simsimd/simsimd-5.9.6.ebuild @@ -0,0 +1,64 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 toolchain-funcs + +MY_P=SimSIMD-${PV} +DESCRIPTION="Fastest SIMD-Accelerated Vector Similarity Functions for x86 and Arm" +HOMEPAGE=" + https://github.com/ashvardanian/SimSIMD/ + https://pypi.org/project/simsimd/ +" +# no sdist, as of 4.3.1 +# https://github.com/ashvardanian/SimSIMD/issues/113 +SRC_URI=" + https://github.com/ashvardanian/SimSIMD/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="openmp" + +BDEPEND=" + test? ( + dev-python/pytest-repeat[${PYTHON_USEDEP}] + dev-python/tabulate[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] && use openmp; then + tc-check-openmp + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] && use openmp; then + tc-check-openmp + fi +} + +src_prepare() { + sed -i -e '/-O3/d' setup.py || die + if ! use openmp; then + sed -i -e '/-fopenmp/d' setup.py || die + fi + + distutils-r1_src_prepare +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p repeat scripts/test.py +}