commit e6940aef75daa9729fee098260e7c09f5346e89e0cbc7fd4fb58716712f5b234 Author: Matej Cepl Date: Fri Nov 22 09:37:21 2024 +0000 new package python-decopatch, required for tests in python-click-extra OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decopatch?expand=0&rev=1 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/decopatch-1.4.10.tar.gz b/decopatch-1.4.10.tar.gz new file mode 100644 index 0000000..2862a80 --- /dev/null +++ b/decopatch-1.4.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:957f49c93f4150182c23f8fb51d13bb3213e0f17a79e09c8cca7057598b55720 +size 69538 diff --git a/python-decopatch.changes b/python-decopatch.changes new file mode 100644 index 0000000..86387a9 --- /dev/null +++ b/python-decopatch.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Nov 21 16:35:21 UTC 2024 - Johannes Kastl + +- new package python-decopatch, required for tests in + python-click-extra diff --git a/python-decopatch.spec b/python-decopatch.spec new file mode 100644 index 0000000..96b3c64 --- /dev/null +++ b/python-decopatch.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-decopatch +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-decopatch +Version: 1.4.10 +Release: 0 +Summary: python decorators made easy. +License: BSD-3-Clause +URL: https://github.com/smarie/python-decopatch +Source0: https://files.pythonhosted.org/packages/source/d/decopatch/decopatch-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module makefun} +# /SECTION +BuildRequires: fdupes + +# https://github.com/smarie/python-decopatch/blob/main/setup.cfg#L36 +Requires: python-makefun >= 1.5.0 +BuildArch: noarch +%python_subpackages + +%description +Because of a tiny oddity in the python language, writing decorators without +help can be a pain because you have to handle the no-parenthesis usage +explicitly. decopatch provides a simple way to solve this issue so that writing +decorators is simple and straightforward. + +%prep +%autosetup -p1 -n decopatch-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# checks require pytest-cases, for whose checks this package is required +# hence checks are disabled + +%files %{python_files} +%{python_sitelib}/decopatch/ +%pycache_only %{python_sitelib}/decopatch/__pycache__/ +%{python_sitelib}/decopatch-%{version}.dist-info/ + +%changelog