1
0

Accepting request 784821 from devel:languages:python

- Femove leftover py2 dependencies

- Update to 3.0.0
  * Require Python 3.6 or later.

OBS-URL: https://build.opensuse.org/request/show/784821
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jaraco.functools?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2020-04-19 19:40:41 +00:00 committed by Git OBS Bridge
commit b379af282e
4 changed files with 19 additions and 20 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:35ba944f52b1a7beee8843a5aa6752d1d5b79893eeb7770ea98be6b637bf9345
size 14340

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5cb0eea0f254584241c519641328a4d4ec2001a86c3cd6d17a8fd228493f6d97
size 15618

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
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>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-jaraco.functools
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,8 +17,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-jaraco.functools
Version: 2.0
Version: 3.0.0
Release: 0
Summary: Tools to work with functools
License: MIT
@ -31,17 +32,11 @@ BuildRequires: %{python_module more-itertools}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-backports.functools_lru_cache
BuildRequires: python2-backports.unittest_mock
Requires: python-jaraco.base >= 6.1
Requires: python-more-itertools
BuildArch: noarch
%ifpython2
Requires: python-backports.functools_lru_cache
%endif
%python_subpackages
%description
@ -51,6 +46,7 @@ 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
@ -61,22 +57,14 @@ rm -rf jaraco.functools.egg-info
%python_expand rm %{buildroot}%{$python_sitelib}/jaraco/__init__.py
%if 0%{?have_python2} && ! 0%{?skip_python2}
%py_compile %{buildroot}%{python2_sitelib}/jaraco/
%py_compile -O %{buildroot}%{python2_sitelib}/jaraco/
%endif
%if 0%{?have_python3} && ! 0%{?skip_python3}
%py3_compile %{buildroot}%{python3_sitelib}/jaraco/
%py3_compile -O %{buildroot}%{python3_sitelib}/jaraco/
%endif
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Ignore method_cache doctest because of gh#jaraco/jaraco.functools#12
# test_function_throttled - can randomly fail
%pytest -k 'not method_cache and not test_function_throttled'
%pytest -k 'not test_function_throttled'
%files %{python_files}
%license LICENSE