14
0
forked from pool/python-loguru

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

- Add runtime requirement for contextvars and the correct BR for
  Leap
- Skip failing tests on 32-bit

OBS-URL: https://build.opensuse.org/request/show/865376
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-loguru?expand=0&rev=6
This commit is contained in:
2021-01-21 11:54:01 +00:00
committed by Git OBS Bridge
parent 908758e165
commit acb5725154
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jan 21 10:44:04 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- Add runtime requirement for contextvars and the correct BR for
Leap
- Skip failing tests on 32-bit
-------------------------------------------------------------------
Thu Jan 21 06:00:45 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -31,7 +31,10 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: (python36-aiocontextvars if python36-base)
BuildRequires: ((python3-aiocontextvars and python3-base < 3.7) or (python36-aiocontextvars and python36-base))
%if 0%{?python_version_nodots} < 37
Requires: python-aiocontextvars
%endif
Recommends: python-colorama
BuildArch: noarch
@@ -53,7 +56,11 @@ which dispatches log messages to configured handlers.
%check
export LANG=en_US.UTF-8
%pytest
if [ $(getconf LONG_BIT) = 32 ]; then
# Threads have different references on 32-bit
donttest="(test_log_formatters and thread and not thread.name)"
fi
%pytest ${donttest:+ -k "not ($donttest)"}
%files %{python_files}
%license LICENSE