forked from pool/python-boltons
* Fix OMD.addlist when the added list is empty * Add funcutils.noop, satisfying PEP 559 * Support lists for iterutils.bucketize * Python 3.9 test fixes for OMD (PEP 584, see #271) * Make typeutils.make_sentinel more pickleable * jsonutils.reverse_iter_lines now works on Py3 and Windows - Drop boltons-pr271-py39-frozendict.patch: * Included upstream. - Add patch fix-ecoutil-imports.patch: * Support Python 3.10. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-boltons?expand=0&rev=18
61 lines
1.9 KiB
RPMSpec
61 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-boltons
|
|
#
|
|
# Copyright (c) 2021 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-%{**}}
|
|
Name: python-boltons
|
|
Version: 21.0.0
|
|
Release: 0
|
|
Summary: The "Boltons" utility package for Python
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/mahmoud/boltons
|
|
Source: https://github.com/mahmoud/boltons/archive/%{version}.tar.gz#/boltons-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM Support Python 3.10 gh#mahmoud/boltons#270e974975984f662f998c8f6eb0ebebd964de82
|
|
Patch0: fix-ecoutil-imports.patch
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Boltons is a package containing over 160 utility types and functions
|
|
that can be used as a package or independently. Documentation is on
|
|
http://boltons.readthedocs.org.
|
|
|
|
%prep
|
|
%autosetup -p1 -n boltons-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md CHANGELOG.md docs/*.rst
|
|
%{python_sitelib}/boltons
|
|
%{python_sitelib}/boltons-%{version}*-info
|
|
|
|
%changelog
|