forked from pool/python-recordclass
- update to 0.22.0.2:
* Fix regression with `as_dataclass`.
- update to 0.22:
* `Recordclass 0.22` started support of `python 3.13`.
* Add a base class `datastruct` for subclasses that should
behave more like simple datastructures.
* Fix bug with `__match_args__` (#6).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-recordclass?expand=0&rev=9
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
46
python-recordclass.changes
Normal file
46
python-recordclass.changes
Normal file
@@ -0,0 +1,46 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 2 15:13:24 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.22.0.2:
|
||||
* Fix regression with `as_dataclass`.
|
||||
- update to 0.22:
|
||||
* `Recordclass 0.22` started support of `python 3.13`.
|
||||
* Add a base class `datastruct` for subclasses that should
|
||||
behave more like simple datastructures.
|
||||
* Fix bug with `__match_args__` (#6).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 29 09:35:17 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.21.1:
|
||||
* Allow to specify __match_args__.
|
||||
* Add @as_record adapter for def-style decalarations of
|
||||
dataclasses that are considered as just a struct.
|
||||
* The option fast_new will be removed in 0.22. It will be
|
||||
always as fast_new=True by creation.
|
||||
* Fix issues with `_PyUnicodeWriter` for python 3.13.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 9 18:53:20 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- Update to 0.18.0.1
|
||||
* Exclude test_dataobject_match.py (for testing match statement) for python < 3.10.
|
||||
|
||||
- Update to 0.18
|
||||
* Python 3.11 support.
|
||||
* Adapt data object to take benefit from bytecode specialization in 3.11.
|
||||
* Fix issue for argument with default value in __new__, which havn't __repr__ that can be interpreted as valid python expression for creation of the default value.
|
||||
* Add support for typing.ClassVar.
|
||||
* Add Py_TPFLAGS_SEQUENCE and Py_TPFLAGS_MAPPING.
|
||||
* Add __match_args__ to support match protocol for dataobject-based subclasses.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 7 03:49:55 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- 0.17.5
|
||||
Make to compile, to build and to test successfully for python 3.11.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 31 21:55:59 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Initial package.
|
||||
62
python-recordclass.spec
Normal file
62
python-recordclass.spec
Normal file
@@ -0,0 +1,62 @@
|
||||
#
|
||||
# spec file for package python-recordclass
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-recordclass
|
||||
Version: 0.22.0.2
|
||||
Release: 0
|
||||
Summary: Library implementing a mutable variant of namedtuple
|
||||
License: MIT
|
||||
URL: https://github.com/intellimath/recordclass
|
||||
Source: https://files.pythonhosted.org/packages/source/r/recordclass/recordclass-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# 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
|
||||
3
recordclass-0.22.0.2.tar.gz
Normal file
3
recordclass-0.22.0.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:64d1ad1a43d97b1d7754317ea5e3903e8094bca7af9f2a08af9ff44b4c273c56
|
||||
size 1332456
|
||||
Reference in New Issue
Block a user