14
0

Accepting request 782954 from home:mcalabkova:branches:devel:languages:python

- Update to 3.0.0
  * Require Python 3.6 or later.

OBS-URL: https://build.opensuse.org/request/show/782954
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.functools?expand=0&rev=10
This commit is contained in:
Tomáš Chvátal
2020-03-09 13:32:31 +00:00
committed by Git OBS Bridge
parent 9d4da84ab2
commit e5da15c1a1
4 changed files with 14 additions and 15 deletions

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,7 +32,6 @@ 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
@@ -51,6 +51,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 +62,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