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:
@@ -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>
|
Thu Jan 21 06:00:45 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,10 @@ BuildRequires: %{python_module pytest}
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
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
|
Recommends: python-colorama
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@@ -53,7 +56,11 @@ which dispatches log messages to configured handlers.
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
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}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|||||||
Reference in New Issue
Block a user