1
0

Accepting request 725257 from devel:languages:python:pytest

- Add patches to work with new pytest:
  * pytest4.patch

OBS-URL: https://build.opensuse.org/request/show/725257
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-spec?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2019-08-22 13:05:47 +00:00 committed by Git OBS Bridge
commit 7693845dfb
3 changed files with 31 additions and 2 deletions

21
pytest4.patch Normal file
View File

@ -0,0 +1,21 @@
From 1cd9ced1beda40b4a57af0774694d243a97dae53 Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com>
Date: Mon, 6 May 2019 07:35:20 +0200
Subject: [PATCH] New section name in setup.cfg
Fixes the error: Failed: [pytest] section in setup.cfg files is
no longer supported, change to [tool:pytest] instead.
---
setup.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: pytest-spec-1.1.0/setup.cfg
===================================================================
--- pytest-spec-1.1.0.orig/setup.cfg
+++ pytest-spec-1.1.0/setup.cfg
@@ -1,4 +1,4 @@
-[pytest]
+[tool:pytest]
pep8maxlinelength = 150
[egg_info]

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Aug 22 09:01:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Add patches to work with new pytest:
* pytest4.patch
-------------------------------------------------------------------
Thu Mar 21 09:58:53 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -21,11 +21,12 @@ Name: python-pytest-spec
Version: 1.1.0
Release: 0
Summary: Plugin to display pytest execution output like a specification
License: GPL-2.0
License: GPL-2.0-only
Group: Development/Languages/Python
URL: https://github.com/pchomik/pytest-spec
Source: https://files.pythonhosted.org/packages/source/p/pytest-spec/pytest-spec-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/pchomik/pytest-spec/master/LICENSE.txt
Patch0: pytest4.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -42,6 +43,7 @@ pytest plugin to display test execution output like a specification.
%prep
%setup -q -n pytest-spec-%{version}
%patch0 -p1
cp %{SOURCE1} .
%build
@ -52,7 +54,7 @@ cp %{SOURCE1} .
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m pytest
%pytest
%files %{python_files}
%doc README.rst