- Add patches to work with new pytest:
* pytest4.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-spec?expand=0&rev=4
This commit is contained in:
parent
39af746861
commit
b544588926
21
pytest4.patch
Normal file
21
pytest4.patch
Normal 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]
|
@ -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>
|
Thu Mar 21 09:58:53 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -21,11 +21,12 @@ Name: python-pytest-spec
|
|||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Plugin to display pytest execution output like a specification
|
Summary: Plugin to display pytest execution output like a specification
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/pchomik/pytest-spec
|
URL: https://github.com/pchomik/pytest-spec
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-spec/pytest-spec-%{version}.tar.gz
|
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
|
Source1: https://raw.githubusercontent.com/pchomik/pytest-spec/master/LICENSE.txt
|
||||||
|
Patch0: pytest4.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -42,6 +43,7 @@ pytest plugin to display test execution output like a specification.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytest-spec-%{version}
|
%setup -q -n pytest-spec-%{version}
|
||||||
|
%patch0 -p1
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -52,7 +54,7 @@ cp %{SOURCE1} .
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m pytest
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user