File python-plugincode.spec of Package python-plugincode
#
# spec file for package python-plugincode
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-plugincode
Version: 32.0.0
Release: 0
Summary: plugincode is a library that provides plugin functionality for ScanCode toolkit
License: Apache-2.0
URL: https://github.com/nexB/plugincode
Source: https://files.pythonhosted.org/packages/source/p/plugincode/plugincode-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools_scm >= 4}
# SECTION test requirements
BuildRequires: %{python_module black}
BuildRequires: %{python_module click >= 6.7}
BuildRequires: %{python_module commoncode >= 31.0.0}
BuildRequires: %{python_module pluggy >= 0.12.0}
BuildRequires: %{python_module pytest}
# /SECTION
BuildRequires: fdupes
Requires: python-click >= 6.7
Requires: python-commoncode >= 31.0.0
Requires: python-pluggy >= 0.12.0
Suggests: python-Sphinx >= 3.3.1
Suggests: python-sphinx-rtd-theme >= 0.5.0
Suggests: python-doc8 >= 0.8.1
Suggests: python-aboutcode-toolkit >= 6.0.0
Suggests: python-black
BuildArch: noarch
%python_subpackages
%description
plugincode is a library that provides plugin functionality for ScanCode toolkit.
%prep
%setup -q -n plugincode-%{version}
sed -i 's:venv/bin/black:black:' tests/test_skeleton_codestyle.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst
%{python_sitelib}/plugincode*/
%changelog