From f7dd8724a63eb10aff8120d5bdcce861c5740054c8a4512053b6fb9305adca84 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 02:56:46 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-whatever?expand=0&rev=11 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + 0.7.tar.gz | 3 ++ python-whatever.changes | 33 ++++++++++++++++++++++ python-whatever.spec | 61 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0.7.tar.gz create mode 100644 python-whatever.changes create mode 100644 python-whatever.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/0.7.tar.gz b/0.7.tar.gz new file mode 100644 index 0000000..deefe0c --- /dev/null +++ b/0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d2476cb928357aa913c31374b52535c871519e400b99c6b21c470434d0bb2e2 +size 6373 diff --git a/python-whatever.changes b/python-whatever.changes new file mode 100644 index 0000000..1fc467c --- /dev/null +++ b/python-whatever.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Fri Jun 13 02:42:45 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Thu Feb 27 09:57:15 UTC 2025 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Feb 20 08:36:04 UTC 2023 - Daniel Garcia + +- update to version 0.7 + * support Python 3.11 + * include CHANGELOG into a release (Igor Gnatenko) + +------------------------------------------------------------------- +Thu Feb 6 13:28:58 UTC 2020 - Marketa Calabkova + +- update to version 0.6 + * support Python 3.8 + * dropped Python 2.6 and 3.3 support + +------------------------------------------------------------------- +Thu Mar 14 21:05:02 UTC 2019 - Jan Engelhardt + +- Trim empty phrasing from description. + +------------------------------------------------------------------- +Tue Mar 12 16:41:19 UTC 2019 - Tomáš Chvátal + +- Initial commit, needed by funcy diff --git a/python-whatever.spec b/python-whatever.spec new file mode 100644 index 0000000..53103ef --- /dev/null +++ b/python-whatever.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-whatever +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-whatever +Version: 0.7 +Release: 0 +Summary: Module to make anonymous functions by partial application of operators +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/Suor/whatever +Source: https://github.com/Suor/whatever/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +A Python module to make lambdas by partial application of python operators. +It is inspired by the Perl 6 one, see http://perlcabal.org/syn/S02.html#The_Whatever_Object + +%prep +%setup -q -n whatever-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/whatever.py +%{python_sitelib}/whatever-%{version}.dist-info +%pycache_only %{python_sitelib}/__pycache__ + +%changelog