From f9d4350c441d6e28f49aa0272c27949e1d47eb8afe34336b14538d8035f9dee7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 27 May 2025 13:37:24 +0000 Subject: [PATCH] Accepting request 1280546 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1280546 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-class-newline?expand=0&rev=5 --- python-flake8-class-newline.changes | 5 +++++ python-flake8-class-newline.spec | 22 ++++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/python-flake8-class-newline.changes b/python-flake8-class-newline.changes index f8605a7..8c5158b 100644 --- a/python-flake8-class-newline.changes +++ b/python-flake8-class-newline.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 12:01:57 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed May 19 06:46:49 UTC 2021 - pgajdos@suse.com diff --git a/python-flake8-class-newline.spec b/python-flake8-class-newline.spec index 4dfb908..e90a2b0 100644 --- a/python-flake8-class-newline.spec +++ b/python-flake8-class-newline.spec @@ -1,7 +1,7 @@ # # spec file for package python-flake8-class-newline # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,21 +20,22 @@ Name: python-flake8-class-newline Version: 1.6.0 Release: 0 -License: MIT Summary: Flake8 lint for newline after class definitions -URL: https://github.com/AlexanderVanEck/flake8-class-newline +License: MIT Group: Development/Languages/Python +URL: https://github.com/AlexanderVanEck/flake8-class-newline Source: https://files.pythonhosted.org/packages/source/f/flake8-class-newline/flake8-class-newline-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-flake8 +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module flake8} BuildRequires: %{python_module pytest} # /SECTION -BuildRequires: fdupes -Requires: python-flake8 -BuildArch: noarch - %python_subpackages %description @@ -44,10 +45,10 @@ Flake8 Extension to lint for a method newline after a Class definition %setup -q -n flake8-class-newline-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -56,6 +57,7 @@ Flake8 Extension to lint for a method newline after a Class definition %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/flake8[-_]class[-_]newline +%{python_sitelib}/flake8[-_]class[-_]newline-%{version}*-info %changelog