diff --git a/python-loguru.changes b/python-loguru.changes index b299b07..6d7bc5d 100644 --- a/python-loguru.changes +++ b/python-loguru.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 21 10:44:04 UTC 2021 - Benjamin Greiner + +- 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 diff --git a/python-loguru.spec b/python-loguru.spec index efa740a..dec92db 100644 --- a/python-loguru.spec +++ b/python-loguru.spec @@ -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