forked from pool/python-jaraco.functools
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:
parent
9d4da84ab2
commit
e5da15c1a1
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:35ba944f52b1a7beee8843a5aa6752d1d5b79893eeb7770ea98be6b637bf9345
|
||||
size 14340
|
3
jaraco.functools-3.0.0.tar.gz
Normal file
3
jaraco.functools-3.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5cb0eea0f254584241c519641328a4d4ec2001a86c3cd6d17a8fd228493f6d97
|
||||
size 15618
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
@ -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 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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user