commit 2310fa9510bb0efba88cdf64ae19eccebbdf7bcfb7c3a6e3d46ce6f17db81534 Author: Markéta Machová Date: Mon Aug 1 08:38:43 2022 +0000 Accepting request 991912 from home:badshah400:branches:science New package needed for updates to python-Mathics OBS-URL: https://build.opensuse.org/request/show/991912 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-recordclass?expand=0&rev=1 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/python-recordclass.changes b/python-recordclass.changes new file mode 100644 index 0000000..5f0c021 --- /dev/null +++ b/python-recordclass.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Jul 31 21:55:59 UTC 2022 - Atri Bhattacharya + +- Initial package. diff --git a/python-recordclass.spec b/python-recordclass.spec new file mode 100644 index 0000000..85b838f --- /dev/null +++ b/python-recordclass.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-recordclass +# +# Copyright (c) 2022 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-recordclass +Version: 0.17.2 +Release: 0 +Summary: Library implementing a mutable variant of namedtuple +License: MIT +URL: https://bitbucket.org/intellimath/recordclass +Source: https://files.pythonhosted.org/packages/source/r/recordclass/recordclass-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +# SECTION Test requirements +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pyperf} +# /SECTION +%python_subpackages + +%description +Mutable variant of namedtuple -- recordclass, which support assignments, and +other memory saving variants. + +%prep +%setup -q -n recordclass-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +# Crashes when run using pytest +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} python%{$python_version} test_all.py + +%files %{python_files} +%doc README.md +%license LICENSE.txt +%{python_sitearch}/recordclass/ +%{python_sitearch}/recordclass-%{version}-py%{python_version}.egg-info/ + +%changelog diff --git a/recordclass-0.17.2.tar.gz b/recordclass-0.17.2.tar.gz new file mode 100644 index 0000000..b62f7ca --- /dev/null +++ b/recordclass-0.17.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a6bd410e29095f7f947a3106e10b6354945029309cc2c9f301f491a797293da +size 446086