From 6a05e3cd26f8acbf1e13d6f02f5eb0a42ff74238ccabf469ff00b408fd6efee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 12:04:41 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-docstrings?expand=0&rev=22 --- python-flake8-docstrings.changes | 5 +++++ python-flake8-docstrings.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-flake8-docstrings.changes b/python-flake8-docstrings.changes index db03723..34949f4 100644 --- a/python-flake8-docstrings.changes +++ b/python-flake8-docstrings.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 12:04:19 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Dec 27 09:34:24 UTC 2023 - Dirk Müller diff --git a/python-flake8-docstrings.spec b/python-flake8-docstrings.spec index ef6e1dc..8b3cb14 100644 --- a/python-flake8-docstrings.spec +++ b/python-flake8-docstrings.spec @@ -1,7 +1,7 @@ # # spec file for package python-flake8-docstrings # -# Copyright (c) 2023 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 @@ -23,8 +23,10 @@ Release: 0 Summary: Extension for flake8 which uses pydocstyle to check docstrings License: MIT URL: https://gitlab.com/pycqa/flake8-docstrings -Source: https://files.pythonhosted.org/packages/source/f/flake8-docstrings/flake8_docstrings-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/f/flake8_docstrings/flake8_docstrings-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-flake8 >= 3 @@ -40,17 +42,17 @@ A module that adds an extension for the pydocstyle tool to flake8. %setup -q -n flake8_docstrings-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/flake8_docstrings.* -%{python_sitelib}/flake8_docstrings-%{version}-py*.egg-info +%{python_sitelib}/flake8_docstrings-%{version}*-info %pycache_only %{python_sitelib}/__pycache__ %changelog