diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-04 03:03:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-04 03:03:54 +0000 |
commit | 3cc82055be7dba177f4aea15af9f5414b532da7e (patch) | |
tree | 1eed8bbe7a93b3a0a7d6091ead40e81519978a38 /dev-python/gfloat | |
parent | 212000bb5eabdfeb9a6e7a9b8f28e2740cae555a (diff) |
gentoo auto-resync : 04:11:2024 - 03:03:54
Diffstat (limited to 'dev-python/gfloat')
-rw-r--r-- | dev-python/gfloat/Manifest | 2 | ||||
-rw-r--r-- | dev-python/gfloat/gfloat-0.4.ebuild | 53 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/gfloat/Manifest b/dev-python/gfloat/Manifest index cc1829498ad1..d878c31ae041 100644 --- a/dev-python/gfloat/Manifest +++ b/dev-python/gfloat/Manifest @@ -1,3 +1,5 @@ DIST gfloat-0.3.tar.gz 43790 BLAKE2B 3b6628dd6410090a684bc253965e167297f4105e3690b9ac38c0192c202fbc7e02026103723721494d4826d835b70a217114335201ab1c329d6bac02412f9e7f SHA512 2df65a3a188e99d1aa3da1b067aa3eaa9aabc22f42414b773c312d9c8dae9baf34d797f947a1646ea89e1db8f2bdb5f97a9672c292e2e0a2a8312e0e6f2fc496 +DIST gfloat-0.4.tar.gz 590165 BLAKE2B 18545cf02f301839599171552b8a031f4c0c20bdf9be4263f8b2b43d6fa9316e10370421d96476dc538a5a751b4e00abf08261a898846459d6d38bce5778bfa7 SHA512 7a9ae161d25ba4349966a04bb6fa29e6c703d7e0303bfbf9702ec93613e03b4d83c85c27766adb171da3b8ea6059371fbb2815c21ad91dd1ba9c97ee088ea1a3 EBUILD gfloat-0.3.ebuild 643 BLAKE2B 810e4e8c35f057ef38b582b3a4e6b54a31994499203da1c3f645add8f44dad32c3dd499cae81804aae318b0b9d10d6a95f5301c6c8955c34b15fa2ed44610190 SHA512 05d5b8da42dac240c0fec79d8c224b5702c1c2016682fc2d904bb14531a32f34374192a8b56a26a14a83ec5b410e70c159d21332c49b2bb65ee4e733a85efc4f +EBUILD gfloat-0.4.ebuild 1051 BLAKE2B d3eb474ac0738650b421a23be1c3e6f49f246434c0d86abef41d461cc4376885128e23f02d1c4cadb60b7409b8ef5c67595cf278dca99dcced6efd04bd7ba6e9 SHA512 b67621a66c98d58caf677d19c2a61752fa7777566dd31b35cbfed64ec06bf25e7892a3fc3bc6df17c4cb0d54644e982bf5ba484b367fa4adccb38c9bac1e00e0 MISC metadata.xml 353 BLAKE2B 7d99f8b4d1b169146dab1605d391c9db63777d6a07af8308d0df982ff0848fc8f27dd2186f4c0f33f1fb73b1e091c8cee007e2d5157afe4cc863b1178b6034f8 SHA512 e17c967db7e216a060f9b2d16e6e395bfca5074a32386f738e7484afad08fd06794ac0015dec856053c2d8ec3ae17e6e1751b393e788a770f778589abdf2d78a diff --git a/dev-python/gfloat/gfloat-0.4.ebuild b/dev-python/gfloat/gfloat-0.4.ebuild new file mode 100644 index 000000000000..8fb620eee753 --- /dev/null +++ b/dev-python/gfloat/gfloat-0.4.ebuild @@ -0,0 +1,53 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +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 ~arm ~arm64 ~x86" +IUSE="test-rust" + +RDEPEND=" + dev-python/more-itertools[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/ml-dtypes[${PYTHON_USEDEP}] + test-rust? ( + dev-python/nbval[${PYTHON_USEDEP}] + ) + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_IGNORE=( + # 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 + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + if has_version "dev-python/nbval[${PYTHON_USEDEP}]"; then + epytest -p nbval + else + epytest -o addopts= + fi +} |