From 540856501bc1b645321824c85d96ec9faf0c298b69e6a31a51025e5ccbe44275 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:03:32 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-flakes?expand=0&rev=12 --- python-pytest-flakes.changes | 5 +++++ python-pytest-flakes.spec | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/python-pytest-flakes.changes b/python-pytest-flakes.changes index 16b664f..e6b9699 100644 --- a/python-pytest-flakes.changes +++ b/python-pytest-flakes.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 7 06:49:38 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Mon Jan 10 21:23:01 UTC 2022 - Matej Cepl diff --git a/python-pytest-flakes.spec b/python-pytest-flakes.spec index dbaf9f7..d49cbef 100644 --- a/python-pytest-flakes.spec +++ b/python-pytest-flakes.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-flakes # -# Copyright (c) 2022 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 @@ -16,16 +16,16 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-flakes Version: 4.0.5 Release: 0 Summary: Pytest plugin to check source code with pyflakes License: MIT -Group: Development/Languages/Python URL: https://github.com/asmeurer/pytest-flakes Source: https://files.pythonhosted.org/packages/source/p/pytest-flakes/pytest-flakes-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # Test requirements BuildRequires: %{python_module pyflakes} @@ -45,10 +45,10 @@ py.test plugin for efficiently checking python source with pyflakes. %setup -q -n pytest-flakes-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,8 +57,8 @@ py.test plugin for efficiently checking python source with pyflakes. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/pytest_flakes.py* -%pycache_only %{python_sitelib}/__pycache__/pytest_flakes.* -%{python_sitelib}/pytest_flakes-%{version}-py*.egg-info +%{python_sitelib}/pytest_flakes.py +%pycache_only %{python_sitelib}/__pycache__/pytest_flakes.*pyc +%{python_sitelib}/pytest_flakes-%{version}.dist-info %changelog