From f157dc69f60a414dacd5ccbf8af5e3403339dcb1fe64d9375deafaf4301b315a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 27 Jan 2023 20:10:19 +0000 Subject: [PATCH] Accepting request 1061607 from home:bnavigator:branches:devel:languages:python:numeric - Clean out recommendations and test requirements - Move to PEP517 build OBS-URL: https://build.opensuse.org/request/show/1061607 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-subprocess?expand=0&rev=4 --- python-pytest-subprocess.changes | 6 ++++++ python-pytest-subprocess.spec | 32 +++++++++++--------------------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/python-pytest-subprocess.changes b/python-pytest-subprocess.changes index 5005f8b..c8aaf5e 100644 --- a/python-pytest-subprocess.changes +++ b/python-pytest-subprocess.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 27 18:22:44 UTC 2023 - Ben Greiner + +- Clean out recommendations and test requirements +- Move to PEP517 build + ------------------------------------------------------------------- Thu Jan 26 14:08:30 UTC 2023 - Matej Cepl diff --git a/python-pytest-subprocess.spec b/python-pytest-subprocess.spec index bfae3bf..d133f21 100644 --- a/python-pytest-subprocess.spec +++ b/python-pytest-subprocess.spec @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define modname pytest_subprocess Name: python-pytest-subprocess Version: 1.4.2 Release: 0 @@ -26,28 +24,20 @@ License: MIT URL: https://github.com/aklajnert/pytest-subprocess Source0: https://files.pythonhosted.org/packages/source/p/pytest-subprocess/pytest-subprocess-%{version}.tar.gz Source1: tests.tar.xz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytest >= 4.0.0 -Recommends: python-Pygments >= 2.0 -Recommends: python-anyio -Recommends: python-changelogd -Recommends: python-coverage -Recommends: python-docutils >= 0.12 -Recommends: python-furo -Recommends: python-nox -Recommends: python-pytest-asyncio >= 0.15.1 -Recommends: python-pytest-rerunfailures -Recommends: python-sphinx -Recommends: python-sphinx-autodoc-typehints -Recommends: python-sphinxcontrib-napoleon BuildArch: noarch # SECTION Test requirements BuildRequires: %{python_module anyio} -BuildRequires: %{python_module docutils} -BuildRequires: %{python_module pygments} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module Pygments >= 2} +BuildRequires: %{python_module docutils >= 0.12} +BuildRequires: %{python_module pytest >= 4} +BuildRequires: %{python_module pytest-asyncio >= 0.15.1} +BuildRequires: %{python_module pytest-rerunfailures} # /SECTION %python_subpackages @@ -63,10 +53,10 @@ chmod -x LICENSE README.rst pytest_subprocess/py.typed pytest_subprocess.egg-inf sed -Ei "s/\r$//" README.rst %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -76,7 +66,7 @@ sed -Ei "s/\r$//" README.rst %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/%{modname}/ -%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/pytest_subprocess/ +%{python_sitelib}/pytest_subprocess-%{version}.dist-info %changelog