# # spec file for package python-jaraco.functools # # 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/ # %define skip_python2 1 %define skip_python36 1 %define skip_python38 1 %define skip_python39 1 %define skip_python311 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %{?sle15_python_module_pythons} Name: python-jaraco.functools Version: 3.6.0 Release: 2.2 Summary: Tools to work with functools License: MIT Group: Development/Languages/Python URL: https://github.com/jaraco/jaraco.functools Source0: https://files.pythonhosted.org/packages/source/j/jaraco.functools/jaraco.functools-%{version}.tar.gz BuildRequires: %{python_module jaraco.classes} BuildRequires: %{python_module jaraco.packaging >= 9} BuildRequires: %{python_module more-itertools} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 56} BuildRequires: %{python_module setuptools_scm >= 3.4.1} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-jaraco.packaging >= 9 Requires: python-more-itertools BuildArch: noarch # SECTION test and docs BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pytest} BuildRequires: %{python_module rst.linker >= 1.9} # /SECTION %python_subpackages %description jaraco.functools Tools for working with functools. Additional functools in the spirit of stdlib’s functools. %prep %setup -q -n jaraco.functools-%{version} sed -i 's/--flake8//' pytest.ini sed -i 's/--black --cov//' pytest.ini rm -rf jaraco.functools.egg-info %build %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # test_function_throttled - can randomly fail %pytest -k 'not test_function_throttled' %files %{python_files} %license LICENSE %doc docs/*.rst README.rst CHANGES.rst %{python_sitelib}/jaraco.functools-%{version}*-info %{python_sitelib}/jaraco/functools.py* %dir %{python_sitelib}/jaraco/__pycache__ %pycache_only %{python_sitelib}/jaraco/__pycache__/functools*.py* %changelog * Fri Apr 21 2023 Dirk Müller - add sle15_python_module_pythons (jsc#PED-68) * Thu Apr 13 2023 Matej Cepl - Make calling of %%{sle15modernpython} optional. * Sun Mar 26 2023 Dirk Müller - update to 3.6.0: * #21: Renamed ``call_aside`` to ``invoke``, deprecating ``call_aside``. * Fri Oct 28 2022 Yogalakshmi Arunachalam - Update to v3.5.2 * Refreshed packaging. * Wed Sep 14 2022 Matej Cepl - Tidelift is a good and interesting company, but we really don’t need to have python-jaraco.tidelit as a dependency. * Wed Aug 31 2022 Torsten Gruner - update to 3.5.1 * Packaging refresh * Enrolled with Tidelift * Sun Mar 27 2022 Dirk Müller - update to 3.5.0: * #19: Add type annotations to ``method_cache``. * Require Python 3.7. * ``apply`` now uses ``functools.wraps`` to ensure docstring * passthrough. * #18: In method_cache, support cache_clear before cache * is initialized. * Refreshed package metadata. * Switched to PEP 420 for ``jaraco`` namespace. * Added ``except_`` decorator. * Wed Dec 2 2020 Benjamin Greiner - compile cache for all python3 flavors gh#openSUSE/python-rpm-macros#66 * Thu Sep 17 2020 Dirk Mueller - update to 3.0.1: [#14]: Removed unnecessary compatibility libraries in testing. * Sat Mar 14 2020 Tomáš Chvátal - Femove leftover py2 dependencies * Mon Mar 9 2020 Marketa Calabkova - Update to 3.0.0 * Require Python 3.6 or later. * Wed Aug 21 2019 Tomáš Chvátal - Skip another test that is randomly failing * Wed Apr 17 2019 Matej Cepl - Skip method_cache doctest test (gh#jaraco/jaraco.functools#12). * Tue Feb 26 2019 John Vandenberg - Add LICENSE - Compile manually due to switch to pkgutil namespace technique - Add fdupes - Re-instate use of --doctest-modules to increase coverage - Remove undesirable build dependency pytest-sugar - Add missing runtime dependency on python-jaraco.base - Add missing runtime dependency on more-itertools - Add explicit build dependency on python-six - Update to v2.0 * Switch to pkgutil namespace technique for the ``jaraco`` namespace. * Tue Aug 28 2018 dmueller@suse.com - enable tests * Thu Aug 23 2018 dheidler@suse.de - Initial Package for v1.20