dev-python/simsimd: Bump to 6.2.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-11-28 07:02:57 +01:00
parent a5ae961927
commit 6b96747edb
2 changed files with 65 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST SimSIMD-6.1.1.gh.tar.gz 208900 BLAKE2B 3f2f450eff1494bb80734e571d7e90c1b3ffe4687260a9dd499e135e17354dbe1b46f65abf3ecd262d8e500cdfe6b6f0b37f2607f009b6d13be4bcb3ec846fe0 SHA512 338bd6c12647f0231bfa5f1f22538c3ebfa3a838abcbcc86bee21ed8713dd72701f62245e143e3546b6299fd324221b72abd9b2d7041fece5ea379a65ffd95cc
DIST SimSIMD-6.2.0.gh.tar.gz 216042 BLAKE2B 67e9cf9eb7bfdc376b23204c348969899bb7209f1dcd693feffa0d401bcfea5a473510b44ac494ecba03cd6ef1844ad12e155fceca7a19b7d95911416ede5572 SHA512 99757a549b3171eedace9377fad801ba33f4c9ab0ad4c3debfd141dc33f253131a725de5a386fb0c9313b27af6e8010cd0bdc250fa40e965baafb92210c7fb5d
DIST SimSIMD-6.2.1.gh.tar.gz 216348 BLAKE2B 292d952c77dd35b4f0378661155d186102b7dd319d89040f1148bebee660be356e0a23492e3d9ce3646f17f65b1e9bd7ca436131f812eaf11cbcc0ac056bf4d0 SHA512 602aa84e5c16781dc414703d27234ec6dd28c89f708385422012e7afb729254fb1f4803049a7ca77d48eba34f621bff4c9dde1fa42ddbeeb67c843af72071bde

View File

@@ -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
}