From 1b94936924f36ceac3d8f92a30c2cd19941911c517902a279594ceb9371615a3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 17 May 2025 08:58:40 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cooldict?expand=0&rev=11 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + cooldict-1.04.tar.gz | 3 ++ python-cooldict.changes | 28 +++++++++++++++++ python-cooldict.spec | 66 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 cooldict-1.04.tar.gz create mode 100644 python-cooldict.changes create mode 100644 python-cooldict.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/cooldict-1.04.tar.gz b/cooldict-1.04.tar.gz new file mode 100644 index 0000000..29f1a83 --- /dev/null +++ b/cooldict-1.04.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c43c9e0b4ad4e21ec8efae9f10e640c3785ac1a69ed32db9ba7f92cf52a91159 +size 5619 diff --git a/python-cooldict.changes b/python-cooldict.changes new file mode 100644 index 0000000..ab37b45 --- /dev/null +++ b/python-cooldict.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +Fri May 16 12:20:40 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Mar 7 13:24:35 UTC 2019 - Tomáš Chvátal + +- Update to 1.04: + * include license + * python3 compat +- Drop merged cooldict_python3.patch + +------------------------------------------------------------------- +Tue Dec 4 12:46:55 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Tue Apr 17 11:36:57 UTC 2018 - jengelh@inai.de + +- Update descriptions + +------------------------------------------------------------------- +Sun Apr 15 10:36:54 UTC 2018 - afaerber@suse.de + +- Initial (1.02) +* cooldict_python3.patch: Fix a Python 3.6 SyntaxError diff --git a/python-cooldict.spec b/python-cooldict.spec new file mode 100644 index 0000000..0a1b726 --- /dev/null +++ b/python-cooldict.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-cooldict +# +# Copyright (c) 2025 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/ +# + + +%define normversion 1.4 +Name: python-cooldict +Version: 1.04 +Release: 0 +Summary: dict-like structures for Python +License: BSD-2-Clause +Group: Development/Languages/Python +URL: https://github.com/zardus/cooldict +Source: https://files.pythonhosted.org/packages/source/c/cooldict/cooldict-%{version}.tar.gz +BuildRequires: %{python_module ana >= 0.1} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-ana >= 0.1 +BuildArch: noarch +%python_subpackages + +%description +cooldict provides some dict-like structures for Python, such as +* a write-through cache around another dict +* a finalizable dict +* a branching dict +* a copy-on-write dict (with and without sinkholing capability) + +%prep +%setup -q -n cooldict-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Well there is a test, but it does not work even on the git, so skip for now +#%%python_exec cooldict.py + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/cooldict.py +%{python_sitelib}/cooldict-%{normversion}*-info +%pycache_only %{python_sitelib}/__pycache__/cooldict* + +%changelog