commit f0ad31a3b9abca26077e4a0783f4b68e6eadf0137e7ea2ddb92c4dec944733de Author: OBS User buildservice-autocommit Date: Wed Nov 20 16:45:12 2024 +0000 baserev update by copy to link target OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gfloat?expand=0&rev=3 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gfloat-0.4.tar.gz b/gfloat-0.4.tar.gz new file mode 100644 index 0000000..7f00e45 --- /dev/null +++ b/gfloat-0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:420015086e54285844b74b276fd3e6842aa328ffe9bc4829d99574fd2279dd39 +size 590165 diff --git a/no-nbval.patch b/no-nbval.patch new file mode 100644 index 0000000..5c92055 --- /dev/null +++ b/no-nbval.patch @@ -0,0 +1,10 @@ +Index: gfloat-0.4/pyproject.toml +=================================================================== +--- gfloat-0.4.orig/pyproject.toml ++++ gfloat-0.4/pyproject.toml +@@ -40,5 +40,4 @@ module = "mx.*" + ignore_missing_imports = true + + [tool.pytest.ini_options] +-addopts = "--nbval" + testpaths = ["docs", "test"] diff --git a/python-gfloat.changes b/python-gfloat.changes new file mode 100644 index 0000000..7ec2f4c --- /dev/null +++ b/python-gfloat.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Nov 19 15:52:55 UTC 2024 - Dirk Müller + +- Initial package (0.4) diff --git a/python-gfloat.spec b/python-gfloat.spec new file mode 100644 index 0000000..c19f5aa --- /dev/null +++ b/python-gfloat.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-gfloat +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-gfloat +Version: 0.4 +Release: 0 +Summary: Generic floating point handling in Python +License: MIT +URL: None +Source: https://files.pythonhosted.org/packages/source/g/gfloat/gfloat-%{version}.tar.gz +Patch1: no-nbval.patch +BuildRequires: %{python_module ml-dtypes} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module more-itertools} +BuildRequires: %{python_module numpy} +# /SECTION +BuildRequires: fdupes +Requires: python-more-itertools +Requires: python-numpy +BuildArch: noarch +%python_subpackages + +%description +Generic floating point handling in Python + +%prep +%autosetup -p1 -n gfloat-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# reduce dependencies +rm -v test/test_jax.py test/test_microxcaling.py +%pytest + +%files %{python_files} +%doc ChangeLog README.md +%license LICENSE +%{python_sitelib}/gfloat +%{python_sitelib}/gfloat-%{version}.dist-info + +%changelog