From 386b6ae7b247b108200a6c54f69ee918f4cfe75bd89d5450bc13a2cdf1cfc847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 14 Nov 2025 16:14:50 +0000 Subject: [PATCH] - Update to 4.2.2 * Update classifiers, Github Actions... for Python 3.14 * Update metadatas for PEP 639 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-immutabledict?expand=0&rev=20 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + _multibuild | 3 ++ immutabledict-4.2.1.tar.gz | 3 ++ immutabledict-4.2.2.tar.gz | 3 ++ python-immutabledict.changes | 73 +++++++++++++++++++++++++++++++ python-immutabledict.spec | 85 ++++++++++++++++++++++++++++++++++++ 7 files changed, 191 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 immutabledict-4.2.1.tar.gz create mode 100644 immutabledict-4.2.2.tar.gz create mode 100644 python-immutabledict.changes create mode 100644 python-immutabledict.spec 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/_multibuild b/_multibuild new file mode 100644 index 0000000..6996b96 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/immutabledict-4.2.1.tar.gz b/immutabledict-4.2.1.tar.gz new file mode 100644 index 0000000..ec99ebc --- /dev/null +++ b/immutabledict-4.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d91017248981c72eb66c8ff9834e99c2f53562346f23e7f51e7a5ebcf66a3bcc +size 6228 diff --git a/immutabledict-4.2.2.tar.gz b/immutabledict-4.2.2.tar.gz new file mode 100644 index 0000000..e3bdad5 --- /dev/null +++ b/immutabledict-4.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb6ed3090df593148f94cb407d218ca526fd2639694afdb553dc4f50ce6feeca +size 6099 diff --git a/python-immutabledict.changes b/python-immutabledict.changes new file mode 100644 index 0000000..94d5f22 --- /dev/null +++ b/python-immutabledict.changes @@ -0,0 +1,73 @@ +------------------------------------------------------------------- +Fri Nov 14 15:14:44 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 4.2.2 + * Update classifiers, Github Actions... for Python 3.14 + * Update metadatas for PEP 639 + +------------------------------------------------------------------- +Tue Nov 19 15:37:28 UTC 2024 - Dirk Müller + +- update to 4.2.1: + * Published with attestation + * Update classifiers, Github Actions... for Python 3.13 (no + code changes) + +------------------------------------------------------------------- +Sat Mar 16 08:33:35 UTC 2024 - Dirk Müller + +- update to 4.2.0: + * Add `discard` method which return a new immutabledict without + the item at the given key, if present + +------------------------------------------------------------------- +Mon Feb 12 05:59:02 UTC 2024 - Steve Kowalik + +- Use pytest to run the testsuite. + +------------------------------------------------------------------- +Sat Dec 16 21:09:56 UTC 2023 - Dirk Müller + +- update to 4.1.0: + * Do not store cached hash value when pickling + +------------------------------------------------------------------- +Thu Dec 7 22:34:25 UTC 2023 - Dirk Müller + +- update to 4.0.0: + * Replace `__init__` by `__new__`. + * Add explicit items()/keys()/values() methods to speedup these + methods. + * Add set/delete/update functions. + * Add documentation at immutabledict.corenting.fr + +------------------------------------------------------------------- +Thu Aug 10 09:28:31 UTC 2023 - Dirk Müller + +- update to 3.0.0: + * copy() (breaking change): remove the option to pass keyword + arguments (which were present as key/value pairs in the copy). + Now the method doesn't take any arguments (it behaves the same + as a normal dict). + * Python versions: drop Python 3.7 support + * Typing: fixes + - Make the key covariant. Thanks to @spacether for the PR #244 + - Fix key/value typing missing for ImmutableOrderedDict + +------------------------------------------------------------------- +Mon Jul 10 12:18:42 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu Jul 6 11:17:25 UTC 2023 - Dirk Müller + +- update to 2.2.5: + * Fix hard-coded class reference in fromkeys() resulting in + always using `dict` for `fromkeys()` (instead of OrderedDict + in ImmutableOrderedDict for example) + +------------------------------------------------------------------- +Sat Apr 8 21:26:20 UTC 2023 - Marcus Rueckert + +- initial package diff --git a/python-immutabledict.spec b/python-immutabledict.spec new file mode 100644 index 0000000..b9b93e5 --- /dev/null +++ b/python-immutabledict.spec @@ -0,0 +1,85 @@ +# +# spec file for package python-immutabledict +# +# 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/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +%define short_name immutabledict +%{?sle15_python_module_pythons} +Name: python-%{short_name}%{psuffix} +Version: 4.2.2 +Release: 0 +Summary: Immutable wrapper around dictionaries (a fork of frozendict) +License: MIT +URL: https://github.com/corenting/immutabledict +Source: https://files.pythonhosted.org/packages/source/i/immutabledict/immutabledict-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core >= 2.0.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing_extensions} +BuildRequires: %{python_module wheel} +%if %{with test} +BuildRequires: %{python_module pytest} +%endif +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module %{short_name} = %version} +%endif +%python_subpackages + +%description +A fork of the original frozendict, an immutable wrapper around dictionaries. This library is a pure Python, MIT-licensed alternative to the new LGPL-3.0 licensed frozendict. + +It implements the complete mapping interface and can be used as a drop-in replacement for dictionaries where immutability is desired. The immutabledict constructor mimics dict, and all of the expected interfaces (iter, len, repr, hash, getitem) are provided. Note that an immutabledict does not guarantee the immutability of its values, so the utility of hash method is restricted by usage. + +The only difference is that the copy() method of immutable takes variable keyword arguments, which will be present as key/value pairs in the new, immutable copy. + +%prep +%setup -q -n %{short_name}-%{version} + +%build +%pyproject_wheel + +%install +%if !%{with test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +%pytest +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/%{short_name} +%{python_sitelib}/%{short_name}-%{version}.dist-info +%endif + +%changelog