Sync from SUSE:SLFO:Main python-jaraco.functools revision 632a4ab2529118def15f392cf49d06c3

This commit is contained in:
Adrian Schröter 2024-05-03 21:10:19 +02:00
commit 70fd551654
4 changed files with 210 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

BIN
jaraco.functools-3.6.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,106 @@
-------------------------------------------------------------------
Fri Apr 21 12:27:19 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:42:13 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Sun Mar 26 20:03:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.6.0:
* #21: Renamed ``call_aside`` to ``invoke``, deprecating
``call_aside``.
-------------------------------------------------------------------
Fri Oct 28 17:48:20 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to v3.5.2
* Refreshed packaging.
-------------------------------------------------------------------
Wed Sep 14 22:01:12 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Tidelift is a good and interesting company, but we really dont
need to have python-jaraco.tidelit as a dependency.
-------------------------------------------------------------------
Wed Aug 31 12:31:24 UTC 2022 - Torsten Gruner <simmphonie@opensuse.org>
- update to 3.5.1
* Packaging refresh
* Enrolled with Tidelift
-------------------------------------------------------------------
Sun Mar 27 11:12:17 UTC 2022 - Dirk Müller <dmueller@suse.com>
- 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 21:54:54 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- compile cache for all python3 flavors
gh#openSUSE/python-rpm-macros#66
-------------------------------------------------------------------
Thu Sep 17 11:33:01 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 3.0.1:
#14: Removed unnecessary compatibility libraries in testing.
-------------------------------------------------------------------
Sat Mar 14 08:13:39 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Femove leftover py2 dependencies
-------------------------------------------------------------------
Mon Mar 9 13:14:29 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to 3.0.0
* Require Python 3.6 or later.
-------------------------------------------------------------------
Wed Aug 21 14:43:51 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Skip another test that is randomly failing
-------------------------------------------------------------------
Wed Apr 17 16:02:33 CEST 2019 - Matej Cepl <mcepl@suse.com>
- Skip method_cache doctest test (gh#jaraco/jaraco.functools#12).
-------------------------------------------------------------------
Tue Feb 26 09:20:58 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- 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 10:05:54 UTC 2018 - dmueller@suse.com
- enable tests
-------------------------------------------------------------------
Thu Aug 23 10:57:21 UTC 2018 - dheidler@suse.de
- Initial Package for v1.20

View File

@ -0,0 +1,78 @@
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-jaraco.functools
Version: 3.6.0
Release: 0
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 stdlibs 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