15
0

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
This commit is contained in:
2025-05-27 13:37:24 +00:00
committed by Git OBS Bridge
parent 8aa2a68813
commit f9d4350c44
2 changed files with 17 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 27 12:01:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Wed May 19 06:46:49 UTC 2021 - pgajdos@suse.com

View File

@@ -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