14
0

Accepting request 983583 from home:bnavigator:branches:devel:languages:python

- More than one test can timeout
  * Drop extend-timeout.patch
  * Add hypothesis-profile-conftest.patch

OBS-URL: https://build.opensuse.org/request/show/983583
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textdistance?expand=0&rev=9
This commit is contained in:
2022-06-18 19:20:51 +00:00
committed by Git OBS Bridge
parent 6db85be7e0
commit f0d351b3d1
5 changed files with 24 additions and 18 deletions

View File

@@ -16,19 +16,16 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python36 1
Name: python-textdistance
Version: 4.2.1
Release: 0
Summary: Compute distance between the two texts
License: MIT
URL: https://github.com/life4/textdistance
Source: https://github.com/life4/textdistance/archive/refs/tags/v.%{version}.tar.gz
# PATCH-FIX-OPENSUSE extend-timeout.patch bsc#[0-9]+ mcepl@suse.com
# extend timetout for failing test
Patch0: extend-timeout.patch
Source: https://github.com/life4/textdistance/archive/refs/tags/v.%{version}.tar.gz#/python-textdistance-%{version}.tar.gz
# PATCH-FEATURE-OPENSUSE hypothesis-profile-conftest.patch -- add hypothesis profile for slow OBS executions, code@bnavigator.de
Patch1: hypothesis-profile-conftest.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -53,7 +50,6 @@ implementation, common interface, optional external libs usage.
%prep
%autosetup -p1 -n textdistance-v.%{version}
chmod a-x README.md
%build
@@ -65,7 +61,7 @@ chmod a-x README.md
%check
# we don't have all external libraries to test with
%pytest -m "not external"
%pytest -m "not external" --hypothesis-profile obs
%files %{python_files}
%doc README.md