forked from pool/python-loguru
* Update `InterceptHandler` recipe to make it compatible with
Python 3.11 (#654).
* Add a new `watch` optional argument to file sinks in order to
automatically re-create possibly deleted or changed file
(#471).
* Make `patch()` calls cumulative instead of overriding the
possibly existing patching function (#462).
* Make sinks added with `enqueue=True` and `catch=False` still
process logged messages in case of internal exception (#833).
* Avoid possible deadlocks caused by re-using the logger inside
a sink, a signal handler or a `__del__` method. Since the
logger is not re-entrant, such misuse will be detected and
will now generate a `RuntimeError` (#712, thanks
@jacksmith15).
* Fix file sink rotation using an aware `datetime.time` for
which the timezone was ignored (#697).
* Fix logs colorization not automatically enabled for Jupyter
Notebook and Google Colab (#494).
* Fix logs colorization not automatically enabled for Github
Actions and others CI platforms (#604).
* Fix `logger.complete()` possibly hanging forever when
`enqueue=True` and `catch=False` if internal thread killed
due to `Exception` raised by sink (#647).
* Fix incompatibility with `freezegun` library used to simulate
time (#600).
* Raise exception if `logger.catch()` is used to wrap a class
instead of a function to avoid unexpected behavior (#623).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-loguru?expand=0&rev=21
72 lines
2.1 KiB
RPMSpec
72 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-loguru
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
%define skip_python36 1
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-loguru
|
|
Version: 0.7.0
|
|
Release: 0
|
|
Summary: Python logging component with a simple interface
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/Delgan/loguru
|
|
Source: https://files.pythonhosted.org/packages/source/l/loguru/loguru-%{version}.tar.gz
|
|
BuildRequires: %{python_module colorama}
|
|
BuildRequires: %{python_module freezegun}
|
|
BuildRequires: %{python_module mypy}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Recommends: python-colorama
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python logging component providing a single object
|
|
which dispatches log messages to configured handlers.
|
|
|
|
%prep
|
|
%autosetup -p1 -n loguru-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
if [ $(getconf LONG_BIT) = 32 ]; then
|
|
# Threads have different references on 32-bit
|
|
donttest=" or (test_log_formatters and thread and not thread.name)"
|
|
fi
|
|
%pytest -k "not (donttestexprprefixdummy $donttest)"
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python_sitelib}/loguru
|
|
%{python_sitelib}/loguru-%{version}*-info
|
|
|
|
%changelog
|