From c7fc829539ba118fabbf284d7d40beaf7c3a83dc597fc2f3f3706d4677725685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:39:14 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-zope.hookable revision 5cff39b0c2f926f77156aecd9acbf0ed --- .gitattributes | 23 ++++++++ _multibuild | 3 + python-zope.hookable.changes | 111 +++++++++++++++++++++++++++++++++++ python-zope.hookable.spec | 108 ++++++++++++++++++++++++++++++++++ zope.hookable-5.4.tar.gz | 3 + 5 files changed, 248 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 python-zope.hookable.changes create mode 100644 python-zope.hookable.spec create mode 100644 zope.hookable-5.4.tar.gz 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/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-zope.hookable.changes b/python-zope.hookable.changes new file mode 100644 index 0000000..2ec40a9 --- /dev/null +++ b/python-zope.hookable.changes @@ -0,0 +1,111 @@ +------------------------------------------------------------------- +Wed May 3 11:25:15 UTC 2023 - Martin Liška + +- Use sphinx-build and do not depend on removed build_sphinx + in Sphinx 7.0 (boo#1211051). + +------------------------------------------------------------------- +Wed Feb 1 13:05:25 UTC 2023 - Ben Greiner + +- Explicitly require python3-Sphinx for building the docs. It could + have been omitted from %pythons for %python_module in a 15.X + backport project. + +------------------------------------------------------------------- +Mon Dec 5 13:47:44 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 5.4 + * Add support for building arm64 wheels on macOS. + +------------------------------------------------------------------- +Tue Nov 8 07:03:41 UTC 2022 - Matej Cepl + +- Clean up SPEC file, make rpmlint happy. +- -doc subpackage should be noarch. + +------------------------------------------------------------------- +Sun Nov 6 17:52:43 UTC 2022 - Hans-Peter Jansen + +- Update to version 5.3 + * Add support for the final release of Python 3.11. + +------------------------------------------------------------------- +Wed Oct 12 18:31:51 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 5.2 + * Add support for Python 3.10 and 3.11 (as of 3.11.0rc1). + * Disable unsafe math optimizations in C code. See pull request 25. + +------------------------------------------------------------------- +Wed Oct 13 09:21:27 UTC 2021 - pgajdos@suse.com + +- update to version 5.1.0 + - Add support for Python 3.9. + - Create Linux aarch64 wheels. + +------------------------------------------------------------------- +Wed Oct 13 08:29:25 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro +- added sources + + _multibuild + +------------------------------------------------------------------- +Wed Apr 8 12:14:59 UTC 2020 - Tomáš Chvátal + +- Do not pull in py2 package in doc subpkg + +------------------------------------------------------------------- +Mon Mar 16 14:13:58 UTC 2020 - pgajdos@suse.com + +- version update to 5.0.1 + - Stop using the setuptools ``Feature`` class, allowing this + project to be built from source with newer versions of setuptools + that remove that functionality. + +------------------------------------------------------------------- +Tue Jan 21 11:19:26 UTC 2020 - Marketa Calabkova + +- update to version 5.0.0 + * Add support for Python 3.7 and 3.8. + * Drop support for Python 3.4. + +------------------------------------------------------------------- +Mon Oct 14 14:51:13 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Fri Apr 5 07:14:07 UTC 2019 - Marketa Calabkova + +- update to version 4.2.0 + * Add support for Python 3.5 and 3.6. + * Drop support for Python 2.6, 3.2 and 3.3. + * Expose the __doc__ (and, where applicable, __bases__ and __dict__) + of the hooked object. This lets Sphinx document them. + * Respect PURE_PYTHON at runtime. + +------------------------------------------------------------------- +Sat Jul 8 07:02:54 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec + +------------------------------------------------------------------- +Fri May 15 12:00:44 UTC 2015 - benoit.monin@gmx.fr + +- update to version 4.0.4: + * Added support for Python 3.4. +- additional changes from version 4.0.3: + * Updated boostrap.py to version 2.2. + * Fixed extension compilation on Py3k. +- additional changes from version 4.0.2: + * Fleshed out PyPI Trove classifiers. +- point the source URL to pypi +- rename CHANGES.txt to CHANGES.rst: changed upstream +- rename README.txt to README.rst: changed upstream + +------------------------------------------------------------------- +Mon Jul 29 21:01:01 UTC 2013 - hpj@urpla.net + +- version 4.0.1: initial build + diff --git a/python-zope.hookable.spec b/python-zope.hookable.spec new file mode 100644 index 0000000..79d4b51 --- /dev/null +++ b/python-zope.hookable.spec @@ -0,0 +1,108 @@ +# +# spec file +# +# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2013-2022 LISA GmbH, Bingen, Germany. +# +# 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 +Name: python-zope.hookable%{psuffix} +Version: 5.4 +Release: 0 +Summary: Zope hookable +License: ZPL-2.1 +URL: https://github.com/zopefoundation/zope.hookable +Source: https://files.pythonhosted.org/packages/source/z/zope.hookable/zope.hookable-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION documentation requirements +BuildRequires: python3-Sphinx +# /SECTION +# SECTION testing requirements +%if %{with test} +BuildRequires: %{python_module zope.hookable} +BuildRequires: %{python_module zope.testing} +%endif +# /SECTION +%python_subpackages + +%description +Hookable object support. + +Support the efficient creation of hookable objects, which are callable objects +that are meant to be replaced by other callables, at least optionally. + +The idea is you create a function that does some default thing and make it +hookable. Later, someone can modify what it does by calling its sethook method +and changing its implementation. All users of the function, including those +that imported it, will see the change. + +%package -n %{name}-doc +Summary: Zope hookable +Provides: %{python_module zope.hookable-doc = %{version}} +BuildArch: noarch + +%description -n %{name}-doc +This package contains documentation files for %{name}. + +%prep +%setup -q -n zope.hookable-%{version} +rm -rf zope.hookable.egg-info + +%build +%if !%{with test} +%python_build +sphinx-build -b html docs build/sphinx/html && rm build/sphinx/html/.buildinfo build/sphinx/html/objects.inv +%endif + +%install +%if !%{with test} +%python_install +%{python_expand rm -f %{buildroot}%{$python_sitearch}/zope/hookable/_zope_hookable.c + %fdupes %{buildroot}%{$python_sitearch} +} +%endif + +%check +%if %{with test} +pushd src +%pyunittest 'zope.hookable.tests.test_hookable.test_suite' +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE.txt +%doc CHANGES.rst COPYRIGHT.txt README.rst +%dir %{python_sitearch}/zope +%{python_sitearch}/zope/hookable +%{python_sitearch}/zope.hookable-%{version}*-info +%{python_sitearch}/zope.hookable-%{version}*-nspkg.pth +%endif + +%if !%{with test} +%files -n %{name}-doc +%doc build/sphinx/html/ +%endif + +%changelog diff --git a/zope.hookable-5.4.tar.gz b/zope.hookable-5.4.tar.gz new file mode 100644 index 0000000..37a3749 --- /dev/null +++ b/zope.hookable-5.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb601f00ac87e5aa582a81315ed96768ce3513280729d3f51f79312e2b8b94ac +size 25390