2012-02-13 02:27:39 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyflakes
|
|
|
|
#
|
2023-05-09 05:30:16 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-02-13 02:27:39 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2013-04-22 09:27:24 +00:00
|
|
|
|
2019-01-26 21:40:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-13 02:27:39 +00:00
|
|
|
#
|
2013-04-22 09:27:24 +00:00
|
|
|
|
|
|
|
|
2023-05-09 05:30:16 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2009-12-28 20:09:39 +00:00
|
|
|
Name: python-pyflakes
|
2022-12-15 20:53:12 +00:00
|
|
|
Version: 3.0.1
|
2012-02-13 02:27:39 +00:00
|
|
|
Release: 0
|
2009-12-28 20:09:39 +00:00
|
|
|
Summary: Passive checker of Python programs
|
|
|
|
License: MIT
|
2012-02-13 02:27:39 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-01-26 21:40:28 +00:00
|
|
|
URL: https://github.com/PyCQA/pyflakes
|
2018-01-17 15:34:35 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyflakes/pyflakes-%{version}.tar.gz
|
2023-07-12 08:24:22 +00:00
|
|
|
#PATCH-FIX-UPSTREAM https://github.com/PyCQA/pyflakes/commit/836631f2f73d45baa4021453d89fc9fd6f52be58 fix error reporter and testsuite in 3.11.4+
|
|
|
|
Patch: py3114.patch
|
2022-12-15 20:53:12 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2017-03-23 13:16:41 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-01-17 15:34:35 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-23 13:16:41 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2015-11-11 09:30:52 +00:00
|
|
|
# the pkg_resources module is required at runtime
|
|
|
|
Requires: python-setuptools
|
2016-01-13 10:07:11 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-05-09 14:46:00 +00:00
|
|
|
Requires(postun):update-alternatives
|
2009-12-28 20:09:39 +00:00
|
|
|
BuildArch: noarch
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_subpackages
|
2009-12-28 20:09:39 +00:00
|
|
|
|
|
|
|
%description
|
2012-02-13 02:27:39 +00:00
|
|
|
Pyflakes is program to analyze Python programs and detect various errors. It
|
|
|
|
works by parsing the source file, not importing it, so it is safe to use on
|
|
|
|
modules with side effects. It's also much faster.
|
2009-12-28 20:09:39 +00:00
|
|
|
|
|
|
|
%prep
|
2023-07-12 08:24:22 +00:00
|
|
|
%autosetup -p1 -n pyflakes-%{version}
|
2009-12-28 20:09:39 +00:00
|
|
|
|
|
|
|
%build
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_build
|
2009-12-28 20:09:39 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_install
|
2018-01-17 15:34:35 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/pyflakes/
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pyflakes
|
2016-01-13 10:07:11 +00:00
|
|
|
|
2018-01-17 15:34:35 +00:00
|
|
|
%check
|
2021-11-03 12:35:45 +00:00
|
|
|
%pyunittest discover -v
|
2018-01-17 15:34:35 +00:00
|
|
|
|
2016-01-13 10:07:11 +00:00
|
|
|
%post
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_install_alternative pyflakes
|
2016-01-13 10:07:11 +00:00
|
|
|
|
2017-03-29 14:19:23 +00:00
|
|
|
%postun
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_uninstall_alternative pyflakes
|
2016-01-13 10:07:11 +00:00
|
|
|
|
2017-03-23 13:16:41 +00:00
|
|
|
%files %{python_files}
|
2019-01-26 21:40:28 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc NEWS.rst README.rst AUTHORS
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_alternative %{_bindir}/pyflakes
|
2014-04-11 19:50:21 +00:00
|
|
|
%{python_sitelib}/pyflakes/
|
|
|
|
%{python_sitelib}/pyflakes-%{version}-py*.egg-info
|
2009-12-28 20:09:39 +00:00
|
|
|
|
2012-02-13 02:27:39 +00:00
|
|
|
%changelog
|