From 9bbd86a27de464ecc2a6afd1aad953abd4b08abedbc2523c722db84546e8d2a2 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:05:40 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-pycodestyle?expand=0&rev=16 --- python-pytest-pycodestyle.changes | 5 +++++ python-pytest-pycodestyle.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-pytest-pycodestyle.changes b/python-pytest-pycodestyle.changes index 8e4a74f..d5ffbd8 100644 --- a/python-pytest-pycodestyle.changes +++ b/python-pytest-pycodestyle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 7 06:58:09 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue Feb 4 17:02:50 UTC 2025 - Dirk Müller diff --git a/python-pytest-pycodestyle.spec b/python-pytest-pycodestyle.spec index dbb492c..19e6ae8 100644 --- a/python-pytest-pycodestyle.spec +++ b/python-pytest-pycodestyle.spec @@ -25,11 +25,13 @@ License: MIT URL: https://github.com/henry0312/pytest-pycodestyle Source: https://files.pythonhosted.org/packages/source/p/pytest-pycodestyle/pytest_pycodestyle-%{version}.tar.gz BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pycodestyle} BuildRequires: %{python_module pytest >= 5.4} BuildRequires: %{python_module pytest-isort} BuildRequires: %{python_module py} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-py @@ -49,10 +51,10 @@ pytest plugin to run pycodestyle in python tests sed -i -e 's:~=:>=:g' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,8 +63,8 @@ sed -i -e 's:~=:>=:g' setup.py %files %{python_files} %doc README.md %license LICENSE -%pycache_only %{python_sitelib}/__pycache__/*.pyc +%pycache_only %{python_sitelib}/__pycache__/pytest_pycodestyle*.pyc %{python_sitelib}/pytest_pycodestyle.py -%{python_sitelib}/pytest_pycodestyle-%{version}*-info +%{python_sitelib}/pytest_pycodestyle-%{version}.dist-info %changelog