From b214036f3f2e8a793f71b4d74dc5a3d21699d1f2b3612f3e7e4b30196fdf2268 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Thu, 6 Jul 2023 16:30:02 +0000 Subject: [PATCH] baserev update by copy to link target OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-immutabledict?expand=0&rev=4 --- python-immutabledict.changes | 12 +++++ python-immutabledict.spec | 86 ++++++++++++++++++++++++++++++++++++ _multibuild | 3 ++ .gitattributes | 23 ++++++++++ .gitignore | 1 + immutabledict-2.2.5.tar.gz | 3 ++ 6 files changed, 128 insertions(+) create mode 100644 python-immutabledict.changes create mode 100644 python-immutabledict.spec create mode 100644 _multibuild create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 immutabledict-2.2.5.tar.gz diff --git a/python-immutabledict.changes b/python-immutabledict.changes new file mode 100644 index 0000000..bde34f1 --- /dev/null +++ b/python-immutabledict.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +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..72273cb --- /dev/null +++ b/python-immutabledict.spec @@ -0,0 +1,86 @@ +# +# spec file +# +# Copyright (c) 2023 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 github_user corenting +%define short_name immutabledict +Name: python-%{short_name}%{psuffix} +Version: 2.2.5 +Release: 0 +Summary: Immutable wrapper around dictionaries (a fork of frozendict) +License: MIT +Group: Development/Languages/Python +URL: https://github.com/corenting/immutabledict +Source: https://files.pythonhosted.org/packages/source/i/immutabledict/immutabledict-%{version}.tar.gz +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +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}} +%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} +%pyunittest discover -v +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/%{short_name} +%{python_sitelib}/%{short_name}-%{version}*-info +%endif + +%changelog 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/.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/immutabledict-2.2.5.tar.gz b/immutabledict-2.2.5.tar.gz new file mode 100644 index 0000000..5af7ca4 --- /dev/null +++ b/immutabledict-2.2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ce423cf7861ba84eaa7c2eca482e46854eac07765ef4873b640eb67eea8b203 +size 4316