From b544588926e62b4071738510317c499cfd58f15566bd0a2187ebf94dbea22f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 22 Aug 2019 09:01:39 +0000 Subject: [PATCH] - 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 --- pytest4.patch | 21 +++++++++++++++++++++ python-pytest-spec.changes | 6 ++++++ python-pytest-spec.spec | 6 ++++-- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 pytest4.patch diff --git a/pytest4.patch b/pytest4.patch new file mode 100644 index 0000000..9bcf61d --- /dev/null +++ b/pytest4.patch @@ -0,0 +1,21 @@ +From 1cd9ced1beda40b4a57af0774694d243a97dae53 Mon Sep 17 00:00:00 2001 +From: Lumir Balhar +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] diff --git a/python-pytest-spec.changes b/python-pytest-spec.changes index f6d421e..a47c716 100644 --- a/python-pytest-spec.changes +++ b/python-pytest-spec.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 22 09:01:23 UTC 2019 - Tomáš Chvátal + +- Add patches to work with new pytest: + * pytest4.patch + ------------------------------------------------------------------- Thu Mar 21 09:58:53 UTC 2019 - Jan Engelhardt diff --git a/python-pytest-spec.spec b/python-pytest-spec.spec index 482b6d9..0cd1c6b 100644 --- a/python-pytest-spec.spec +++ b/python-pytest-spec.spec @@ -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