Sync from SUSE:SLFO:Main python-zope.hookable revision 5cff39b0c2f926f77156aecd9acbf0ed

This commit is contained in:
Adrian Schröter 2024-05-03 23:39:14 +02:00
commit c7fc829539
5 changed files with 248 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -0,0 +1,111 @@
-------------------------------------------------------------------
Wed May 3 11:25:15 UTC 2023 - Martin Liška <mliska@suse.cz>
- 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 <code@bnavigator.de>
- 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 <yarunachalam@suse.com>
- Update to version 5.4
* Add support for building arm64 wheels on macOS.
-------------------------------------------------------------------
Tue Nov 8 07:03:41 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Clean up SPEC file, make rpmlint happy.
- -doc subpackage should be noarch.
-------------------------------------------------------------------
Sun Nov 6 17:52:43 UTC 2022 - Hans-Peter Jansen <hpj@urpla.net>
- 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 <yarunachalam@suse.com>
- 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 <tchvatal@suse.com>
- 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 <mcalabkova@suse.com>
- 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 <mcepl@suse.com>
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
-------------------------------------------------------------------
Fri Apr 5 07:14:07 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- 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

108
python-zope.hookable.spec Normal file
View File

@ -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

BIN
zope.hookable-5.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.