File python-autoflake.spec of Package failed_python-autoflake
#
# spec file for package python-autoflake
#
# Copyright (c) 2023 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/
#
Name: python-autoflake
Version: 2.2.1
Release: 0
Summary: Program to removes unused Python imports and variables
License: MIT
URL: https://github.com/myint/autoflake
Source: https://files.pythonhosted.org/packages/source/a/autoflake/autoflake-%{version}.tar.gz
Requires: python-tomli
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyflakes >= 3.0.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-devel
%description
Autoflake removes unused imports and variables from Python code. It makes use of pyflakes to identify these unused entities.
%prep
%setup -q -n autoflake-%{version}
%build
%pyproject_build
%install
%pyproject_install
%fdupes %{buildroot}%{_bindir}
%files
%license LICENSE
%doc README.md
%{_bindir}/autoflake
%changelog