File python-bintrees.spec of Package python-bintrees

# spec file for package python-bintrees
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-bintrees
Version:        2.0.7
Release:        0
Summary:        Binary-, RedBlack- and AVL-Trees in Python and Cython
License:        MIT
Group:          Development/Languages/Python
#BuildRequires:  %%{python_module Cython}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  unzip
BuildArch:      noarch


This package provides Binary- RedBlack- and AVL-Trees written in Python and Cython/C.

These classes are much slower than the built-in dict class, but all iterators/generators yielding data in sorted key order. Trees can be uses as drop in replacement for dicts in most cases.

%setup -q -n bintrees-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}

#%%python_exec test

%files %{python_files}
%license LICENSE.txt
%doc NEWS.rst README.rst