From 5efa2b4edfabc2a86ea2698baba1ede4b27c5bfb779684b32bfc76a573f960c8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 19 Aug 2022 06:44:43 +0000 Subject: [PATCH] Accepting request 998010 from home:bnavigator:branches:devel:languages:python - Clean specfile, remove coverage - Use pytest as upstream does OBS-URL: https://build.opensuse.org/request/show/998010 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=51 --- python-WebTest.changes | 6 ++++++ python-WebTest.spec | 20 +++++++------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/python-WebTest.changes b/python-WebTest.changes index eda3b85..40aabd7 100644 --- a/python-WebTest.changes +++ b/python-WebTest.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 18 15:21:41 UTC 2022 - Ben Greiner + +- Clean specfile, remove coverage +- Use pytest as upstream does + ------------------------------------------------------------------- Fri Aug 27 11:45:04 UTC 2021 - pgajdos@suse.com diff --git a/python-WebTest.spec b/python-WebTest.spec index 06a2a91..6ee3115 100644 --- a/python-WebTest.spec +++ b/python-WebTest.spec @@ -1,7 +1,7 @@ # # spec file for package python-WebTest # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,23 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-WebTest Version: 3.0.0 Release: 0 Summary: Helper to test WSGI applications License: MIT Group: Development/Languages/Python -URL: https://webtest.pythonpaste.org/ +URL: https://docs.pylonsproject.org/projects/webtest/ Source: https://files.pythonhosted.org/packages/source/W/WebTest/WebTest-%{version}.tar.gz BuildRequires: %{python_module PasteDeploy} BuildRequires: %{python_module WSGIProxy2} BuildRequires: %{python_module WebOb >= 1.2} BuildRequires: %{python_module beautifulsoup4} -BuildRequires: %{python_module coverage} BuildRequires: %{python_module cssselect} BuildRequires: %{python_module pyquery} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module waitress >= 0.8.5} BuildRequires: fdupes @@ -44,10 +44,6 @@ Requires: python-WebOb >= 1.2 Requires: python-beautifulsoup4 Requires: python-waitress >= 0.8.5 BuildArch: noarch -%ifpython2 -Obsoletes: %{oldpython}-webtest < %{version} -Provides: %{oldpython}-webtest = %{version} -%endif %python_subpackages %description @@ -67,8 +63,6 @@ This package contains documentation files for %{name}. %prep %setup -q -n WebTest-%{version} -# remove version limitation for nose -sed -i 's/nose<1\.3\.0/nose/' setup.py %build %python_build @@ -79,13 +73,13 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pyunittest -v +%pytest %files %{python_files} %license license.rst %doc CHANGELOG.rst README.rst %{python_sitelib}/webtest/ -%{python_sitelib}/WebTest-%{version}-py*.egg-info +%{python_sitelib}/WebTest-%{version}*-info %files -n %{name}-doc %doc build/sphinx/html