From 890a6ee85427bf486c405daa2e8e99c54b810e3359b8c5aa9ddce4f03d279bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 20:11:54 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-backcall revision f7c5c5d37f8128d4f20e9154ca92778f --- .gitattributes | 23 +++++++++++++++ backcall-0.2.0.tar.gz | 3 ++ python-backcall.changes | 37 ++++++++++++++++++++++++ python-backcall.spec | 64 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 127 insertions(+) create mode 100644 .gitattributes create mode 100644 backcall-0.2.0.tar.gz create mode 100644 python-backcall.changes create mode 100644 python-backcall.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/backcall-0.2.0.tar.gz b/backcall-0.2.0.tar.gz new file mode 100644 index 0000000..7107b13 --- /dev/null +++ b/backcall-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e +size 18041 diff --git a/python-backcall.changes b/python-backcall.changes new file mode 100644 index 0000000..838d29f --- /dev/null +++ b/python-backcall.changes @@ -0,0 +1,37 @@ +------------------------------------------------------------------- +Fri Apr 21 12:22:28 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:40:12 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sun Jul 12 21:50:04 UTC 2020 - Arun Persaud + +- specfile: + * update copyright year + * license included in tar-ball + * be more specific in %files section + +- update to version 0.2.0: + * license in tar-ball + * moved to flit + +------------------------------------------------------------------- +Fri May 4 08:16:15 UTC 2018 - jengelh@inai.de + +- Update wording of description so it does not assume any specific + user context. + +------------------------------------------------------------------- +Tue May 1 05:39:29 UTC 2018 - toddrme2178@gmail.com + +- Fix license file + +------------------------------------------------------------------- +Thu Apr 12 23:19:10 UTC 2018 - arun@gmx.de + +- initial version diff --git a/python-backcall.spec b/python-backcall.spec new file mode 100644 index 0000000..dde0a98 --- /dev/null +++ b/python-backcall.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-backcall +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} +Name: python-backcall +Version: 0.2.0 +Release: 0 +Summary: Specifications for callback functions passed in to an API +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/takluyver/backcall +Source0: https://files.pythonhosted.org/packages/source/b/backcall/backcall-%{version}.tar.gz +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# +%python_subpackages + +%description +If code lets other people supply callback functions, it is important +to specify the function signature that is being expected, and to +check that functions support that. Adding extra parameters later +would break other peoples code unless one is careful. +backcall provides a way of specifying the callback signature using a +prototype function. + +%prep +%setup -q -n backcall-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/backcall +%{python_sitelib}/backcall-%{version}-py*.egg-info + +%changelog