commit:     b069a86dd9b336001d8b8addb7acd250893ed780
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 22 12:58:16 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug 22 12:59:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b069a86d

dev-python/gfloat: Bump to 0.5.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/gfloat/Manifest            |  1 +
 dev-python/gfloat/gfloat-0.5.2.ebuild | 72 +++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-python/gfloat/Manifest b/dev-python/gfloat/Manifest
index 233be47aa270..29b05936cf39 100644
--- a/dev-python/gfloat/Manifest
+++ b/dev-python/gfloat/Manifest
@@ -1,2 +1,3 @@
 DIST gfloat-0.3.tar.gz 43790 BLAKE2B 
3b6628dd6410090a684bc253965e167297f4105e3690b9ac38c0192c202fbc7e02026103723721494d4826d835b70a217114335201ab1c329d6bac02412f9e7f
 SHA512 
2df65a3a188e99d1aa3da1b067aa3eaa9aabc22f42414b773c312d9c8dae9baf34d797f947a1646ea89e1db8f2bdb5f97a9672c292e2e0a2a8312e0e6f2fc496
 DIST gfloat-0.4.tar.gz 590165 BLAKE2B 
18545cf02f301839599171552b8a031f4c0c20bdf9be4263f8b2b43d6fa9316e10370421d96476dc538a5a751b4e00abf08261a898846459d6d38bce5778bfa7
 SHA512 
7a9ae161d25ba4349966a04bb6fa29e6c703d7e0303bfbf9702ec93613e03b4d83c85c27766adb171da3b8ea6059371fbb2815c21ad91dd1ba9c97ee088ea1a3
+DIST gfloat-0.5.2.tar.gz 657852 BLAKE2B 
a88446064bde5a739c361571058f5cf217d8433cd8b57c66ad159ea84c248059dc04c1167ca243494b4de8155639f8ccff3aed73f9bd67748202f53aa7e6c01c
 SHA512 
accacc12e56c874819a8711bc10dd4f1a3cfaa804e0a98360bf29318c5d9d60acdb75d59bb415c8cfd14f72ed01ccc181d7cc2172433ab6400f200b3e72686a8

diff --git a/dev-python/gfloat/gfloat-0.5.2.ebuild 
b/dev-python/gfloat/gfloat-0.5.2.ebuild
new file mode 100644
index 000000000000..8a257be4c6b4
--- /dev/null
+++ b/dev-python/gfloat/gfloat-0.5.2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Generic floating-point types in Python"
+HOMEPAGE="
+       https://github.com/graphcore-research/gfloat/
+       https://pypi.org/project/gfloat/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test-rust"
+
+RDEPEND="
+       dev-python/array-api-compat[${PYTHON_USEDEP}]
+       dev-python/more-itertools[${PYTHON_USEDEP}]
+       dev-python/numpy[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/matplotlib[${PYTHON_USEDEP}]
+               dev-python/ml-dtypes[${PYTHON_USEDEP}]
+               dev-python/tabulate[${PYTHON_USEDEP}]
+               test-rust? (
+                       dev-python/nbval[${PYTHON_USEDEP}]
+               )
+               !arm? (
+                       dev-python/jinja2[${PYTHON_USEDEP}]
+                       dev-python/pandas[${PYTHON_USEDEP}]
+               )
+       )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+python_test() {
+       local EPYTEST_IGNORE=(
+               # requires array-api-strict (probably not very valuable 
downstream)
+               test/test_array_api.py
+               # require jax
+               docs/source/03-value-tables.ipynb
+               docs/source/04-benchmark.ipynb
+               test/test_jax.py
+               # requires mx (possibly git version), torch
+               test/test_microxcaling.py
+               # requires torch
+               test/test_torch.py
+       )
+
+       if ! has_version "dev-python/jinja2[${PYTHON_USEDEP}]" ||
+               ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"
+       then
+               EPYTEST_IGNORE+=(
+                       docs/source
+               )
+       fi
+
+       if has_version "dev-python/nbval[${PYTHON_USEDEP}]"; then
+               epytest -p nbval
+       else
+               epytest -o addopts=
+       fi
+}

Reply via email to