From d532f1af151429d140e0ed6d6d130f331e4940549930e6b38cbc7fe3f3c12715 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 9 May 2023 21:06:28 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-sphinx?expand=0&rev=13 --- python-pytest-sphinx.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-pytest-sphinx.spec b/python-pytest-sphinx.spec index 33491a3..3c5f664 100644 --- a/python-pytest-sphinx.spec +++ b/python-pytest-sphinx.spec @@ -25,7 +25,9 @@ Summary: Doctest plugin for pytest with support for Sphinx-specific docte License: BSD-3-Clause URL: https://github.com/thisch/pytest-sphinx Source: https://github.com/thisch/pytest-sphinx/archive/v%{version}.tar.gz#/pytest-sphinx-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytest >= 7.0.0 @@ -43,10 +45,10 @@ Doctest plugin for pytest with support for Sphinx-specific doctest-directives. %setup -q -n pytest-sphinx-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +57,8 @@ Doctest plugin for pytest with support for Sphinx-specific doctest-directives. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pytest_sphinx.py +%{python_sitelib}/pytest_sphinx-%{version}.dist-info +%pycache_only %{python_sitelib}/__pycache__/* %changelog