File python-python-utils.spec of Package python-python-utils

#
# spec file for package python-python-utils
#
# Copyright (c) 2022 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/
#


%define skip_python2 1

Name:           python-python-utils
Version:        3.3.3
Release:        0
Summary:        Collection of Python utility functions and classes
License:        BSD-3-Clause-Clear
Group:          Development/Languages/Python
Url:            https://github.com/WoLpH/python-utils
Source:         https://github.com/WoLpH/python-utils/releases/download/v%{version}/python-utils-%{version}.tar.gz
BuildRequires:  %{python_module devel >= 3.6}
BuildRequires:  %{python_module setuptools}
# for tests:
BuildRequires:  %{python_module loguru}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module pytest-asyncio}
BuildRequires:  %{python_module pytest-cov}
BuildRequires:  %{python_module pytest-mypy}
#BuildRequires:  %%{python_module types-setuptools}
# END for tests
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:      noarch

%python_subpackages

%description
Python Utils is a collection of small Python functions and classes which
make common patterns shorter and easier.

%prep
%autosetup -n python-utils-%{version}

%build
%python_build

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

%check
# Missing types-setuptools stubs, ignore
cat >> mypy.ini <<EOF
[mypy-setuptools.*]
ignore_missing_imports = True
EOF
%pytest


%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*

openSUSE Build Service is sponsored by