2018-06-02 03:40:12 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-pep8-naming
|
|
|
|
|
#
|
2025-12-28 20:42:19 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
2018-06-02 03:40:12 +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.
|
|
|
|
|
|
2018-12-04 13:46:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-02 03:40:12 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-pep8-naming
|
2025-12-28 20:42:19 +00:00
|
|
|
Version: 0.15.1
|
2018-06-02 03:40:12 +00:00
|
|
|
Release: 0
|
2018-07-30 07:34:03 +00:00
|
|
|
Summary: Flake8 plugin for checking PEP-8 naming conventions
|
2018-06-02 03:40:12 +00:00
|
|
|
License: MIT
|
2021-06-18 08:52:47 +00:00
|
|
|
URL: https://github.com/PyCQA/pep8-naming
|
2025-12-28 20:42:19 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pep8-naming/pep8_naming-%{version}.tar.gz
|
2024-06-04 20:46:22 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2018-06-02 03:40:12 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-01-02 09:47:10 +00:00
|
|
|
Requires: python-flake8 >= 5.0.0
|
2018-06-02 03:40:12 +00:00
|
|
|
BuildArch: noarch
|
2019-02-02 18:39:49 +00:00
|
|
|
# SECTION test requirements
|
2023-01-02 09:47:10 +00:00
|
|
|
BuildRequires: %{python_module flake8 >= 5.0.0}
|
2019-02-02 18:39:49 +00:00
|
|
|
# /SECTION
|
2018-06-02 03:40:12 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Check the PEP-8 naming conventions.
|
|
|
|
|
|
|
|
|
|
This module provides a plugin for ``flake8``, the Python code checker.
|
|
|
|
|
|
|
|
|
|
(It replaces the plugin ``flint-naming`` for the ``flint`` checker.)
|
|
|
|
|
|
|
|
|
|
%prep
|
2025-12-28 20:42:19 +00:00
|
|
|
%autosetup -p1 -n pep8_naming-%{version}
|
2018-06-02 03:40:12 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-06-04 20:46:22 +00:00
|
|
|
%pyproject_wheel
|
2018-06-02 03:40:12 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-06-04 20:46:22 +00:00
|
|
|
%pyproject_install
|
2018-06-02 03:40:12 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
|
|
|
$python -B run_tests.py
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc CHANGELOG.rst README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python_sitelib}/pep8ext_naming.py*
|
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/pep8ext_naming.*.py*
|
2024-06-04 20:46:22 +00:00
|
|
|
%{python_sitelib}/pep8_naming-%{version}.dist-info
|
2018-06-02 03:40:12 +00:00
|
|
|
|
|
|
|
|
%changelog
|