2019-07-17 07:42:44 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-flake8-builtins
|
|
|
|
|
#
|
2024-04-20 14:06:35 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-07-17 07:42:44 +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.
|
|
|
|
|
|
2019-08-25 05:20:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2019-07-17 07:42:44 +00:00
|
|
|
|
|
|
|
|
|
2023-12-27 10:19:43 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-07-17 07:42:44 +00:00
|
|
|
Name: python-flake8-builtins
|
2024-04-20 14:06:35 +00:00
|
|
|
Version: 2.5.0
|
2019-07-17 07:42:44 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Flake8 Builtins plugin
|
2019-08-25 05:20:26 +00:00
|
|
|
License: GPL-2.0-only
|
2020-04-16 11:08:37 +00:00
|
|
|
URL: https://github.com/gforcada/flake8-builtins
|
2023-12-27 10:19:43 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/f/flake8-builtins/flake8_builtins-%{version}.tar.gz
|
2022-12-15 21:12:09 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2023-12-27 10:19:43 +00:00
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2020-04-16 11:08:37 +00:00
|
|
|
BuildRequires: fdupes
|
2019-08-25 05:20:26 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-01-02 16:40:23 +00:00
|
|
|
Requires: python-flake8 >= 5.0.4
|
2020-04-16 11:08:37 +00:00
|
|
|
BuildArch: noarch
|
2019-07-17 07:42:44 +00:00
|
|
|
# SECTION test requirements
|
2023-01-02 16:40:23 +00:00
|
|
|
BuildRequires: %{python_module flake8 >= 5.0.4}
|
2020-04-16 11:08:37 +00:00
|
|
|
BuildRequires: %{python_module hypothesis}
|
|
|
|
|
BuildRequires: %{python_module hypothesmith}
|
2019-07-17 07:42:44 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2019-08-25 05:20:26 +00:00
|
|
|
This plugin checks for Python builtins being used as variables or parameters.
|
2019-07-17 07:42:44 +00:00
|
|
|
|
|
|
|
|
%prep
|
2023-12-27 10:19:43 +00:00
|
|
|
%setup -q -n flake8_builtins-%{version}
|
2019-07-17 07:42:44 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-12-27 10:19:43 +00:00
|
|
|
%pyproject_wheel
|
2019-07-17 07:42:44 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-12-27 10:19:43 +00:00
|
|
|
%pyproject_install
|
2019-07-17 07:42:44 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2020-04-16 11:08:37 +00:00
|
|
|
# test_builtin_works_on_many_examples - will crash in obs as it is speed related
|
|
|
|
|
%pytest run_tests.py -k 'not test_builtin_works_on_many_examples'
|
2019-07-17 07:42:44 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2020-04-16 11:08:37 +00:00
|
|
|
%license LICENSE
|
2019-07-17 07:42:44 +00:00
|
|
|
%doc CHANGES.rst README.rst
|
2023-12-27 10:19:43 +00:00
|
|
|
%{python_sitelib}/flake8_builtins.py
|
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/flake8_builtins*
|
|
|
|
|
%{python_sitelib}/flake8_builtins-%{version}.dist-info
|
2019-07-17 07:42:44 +00:00
|
|
|
|
|
|
|
|
%changelog
|