forked from pool/python-pytest-flake8
- Update to 1.3.0
* Compatible for Flake8 from version flake8>=4. (#4) * Pin to flake8<6 as it's incompatible. (#2) * Remove reference to py.builtin in tests. (#2) * Disabled the 'enabler' plugin when running tests. (#2) * Declare minimum flake8 as v5. (#1) * Adopted jaraco/skeleton for packaging. - Add patch support-pytest-9.patch: * Support pytest 9 changes. - Drop patch support-flake8-5.patch, no longer required. - Use pyproject macros. - Update URL to its new home and License.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-flake8
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,37 +17,48 @@
|
||||
|
||||
|
||||
Name: python-pytest-flake8
|
||||
Version: 1.1.1
|
||||
Version: 1.3.0
|
||||
Release: 0
|
||||
Summary: Plugin for pytest to check FLAKE8 requirements
|
||||
License: BSD-2-Clause
|
||||
URL: https://github.com/tholo/pytest-flake8
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-flake8/pytest-flake8-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM Support flake8 >= 5.0 gh#tholo/pytest-flake8#88
|
||||
Patch0: support-flake8-5.patch
|
||||
BuildRequires: %{python_module flake8 >= 5.0}
|
||||
BuildRequires: %{python_module pytest >= 3.5}
|
||||
BuildRequires: %{python_module py}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
License: MIT
|
||||
URL: https://github.com/coherent-oss/pytest-flake8
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-flake8/pytest_flake8-%{version}.tar.gz
|
||||
Patch0: support-pytest-9.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools >= 61.2}
|
||||
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-flake8 >= 5.0
|
||||
Requires: python-py
|
||||
Requires: python-pytest >= 3.5
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module flake8 >= 4.0}
|
||||
BuildRequires: %{python_module pytest >= 7.0}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-flake8 >= 4.0
|
||||
Requires: python-pytest >= 7.0
|
||||
Suggests: python-sphinx >= 3.5
|
||||
Suggests: python-jaraco.packaging >= 9.3
|
||||
Suggests: python-rst.linker >= 1.9
|
||||
Suggests: python-furo
|
||||
Suggests: python-sphinx-lint
|
||||
Suggests: python-pytest-checkdocs >= 2.4
|
||||
Suggests: python-pytest-ruff >= 0.2.1
|
||||
Suggests: python-pytest-cov
|
||||
Suggests: python-pytest-enabler >= 2.2
|
||||
Suggests: python-pytest-mypy
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Plugin for py.test for efficiently checking PEP8 compliance.
|
||||
Plugin for pytest for efficiently checking PEP8 compliance.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n pytest-flake8-%{version}
|
||||
%autosetup -p1 -n pytest_flake8-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -55,9 +66,9 @@ Plugin for py.test for efficiently checking PEP8 compliance.
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG README.rst
|
||||
%pycache_only %{python_sitelib}/__pycache__/*.pyc
|
||||
%doc README.rst
|
||||
%{python_sitelib}/pytest_flake8.py
|
||||
%{python_sitelib}/pytest_flake8-%{version}*-info
|
||||
%pycache_only %{python_sitelib}/__pycache__/pytest_flake8*.pyc
|
||||
%{python_sitelib}/pytest_flake8-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user