14
0
forked from pool/python-loguru
Files
python-loguru/python-loguru.spec

69 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# 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.
Accepting request 774679 from home:mnhauke - Update to version 0.4.1 * Deprecate the ansi parameter of .opt() in favor of colors which is a name more appropriate. * Prevent unrelated files and directories to be incorrectly collected thus causing errors during the retention process * Strip color markups contained in record["message"] when logging with .opt(ansi=True) instead of leaving them as is. * Ignore color markups contained in *args and **kwargs when logging with .opt(ansi=True), leave them as is instead of trying to use them to colorize the message which could cause undesirable errors. - Update to version 0.4.0 * Add support for coroutine functions used as sinks and add the new logger.complete() asynchronous method to await them. * Add a way to filter logs using one level per module in the form of a dict passed to the filter argument. * Add type hints to annotate the public methods using a .pyi stub file. * Add support for copy.deepcopy() of the logger allowing multiple independent loggers with separate set of handlers. * Add the possibility to convert datetime to UTC before formatting (in logs and filenames) by adding "!UTC" at the end of the time format specifier. * Add the level name as the first argument of namedtuple returned by the .level() method. * Remove class objects from the list of supported sinks and restrict usage of **kwargs in .add() to file sink only. User is in charge of instantiating sink and wrapping additional keyword arguments if needed, before passing it to the .add() method. * Rename the logger.configure() keyword argument patch to patcher OBS-URL: https://build.opensuse.org/request/show/774679 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-loguru?expand=0&rev=3
2020-02-16 12:06:14 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-loguru
2023-10-05 08:54:35 +00:00
Version: 0.7.2
Release: 0
Summary: Python logging component with a simple interface
Accepting request 774679 from home:mnhauke - Update to version 0.4.1 * Deprecate the ansi parameter of .opt() in favor of colors which is a name more appropriate. * Prevent unrelated files and directories to be incorrectly collected thus causing errors during the retention process * Strip color markups contained in record["message"] when logging with .opt(ansi=True) instead of leaving them as is. * Ignore color markups contained in *args and **kwargs when logging with .opt(ansi=True), leave them as is instead of trying to use them to colorize the message which could cause undesirable errors. - Update to version 0.4.0 * Add support for coroutine functions used as sinks and add the new logger.complete() asynchronous method to await them. * Add a way to filter logs using one level per module in the form of a dict passed to the filter argument. * Add type hints to annotate the public methods using a .pyi stub file. * Add support for copy.deepcopy() of the logger allowing multiple independent loggers with separate set of handlers. * Add the possibility to convert datetime to UTC before formatting (in logs and filenames) by adding "!UTC" at the end of the time format specifier. * Add the level name as the first argument of namedtuple returned by the .level() method. * Remove class objects from the list of supported sinks and restrict usage of **kwargs in .add() to file sink only. User is in charge of instantiating sink and wrapping additional keyword arguments if needed, before passing it to the .add() method. * Rename the logger.configure() keyword argument patch to patcher OBS-URL: https://build.opensuse.org/request/show/774679 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-loguru?expand=0&rev=3
2020-02-16 12:06:14 +00:00
License: MIT
Group: Development/Languages/Python
Accepting request 774679 from home:mnhauke - Update to version 0.4.1 * Deprecate the ansi parameter of .opt() in favor of colors which is a name more appropriate. * Prevent unrelated files and directories to be incorrectly collected thus causing errors during the retention process * Strip color markups contained in record["message"] when logging with .opt(ansi=True) instead of leaving them as is. * Ignore color markups contained in *args and **kwargs when logging with .opt(ansi=True), leave them as is instead of trying to use them to colorize the message which could cause undesirable errors. - Update to version 0.4.0 * Add support for coroutine functions used as sinks and add the new logger.complete() asynchronous method to await them. * Add a way to filter logs using one level per module in the form of a dict passed to the filter argument. * Add type hints to annotate the public methods using a .pyi stub file. * Add support for copy.deepcopy() of the logger allowing multiple independent loggers with separate set of handlers. * Add the possibility to convert datetime to UTC before formatting (in logs and filenames) by adding "!UTC" at the end of the time format specifier. * Add the level name as the first argument of namedtuple returned by the .level() method. * Remove class objects from the list of supported sinks and restrict usage of **kwargs in .add() to file sink only. User is in charge of instantiating sink and wrapping additional keyword arguments if needed, before passing it to the .add() method. * Rename the logger.configure() keyword argument patch to patcher OBS-URL: https://build.opensuse.org/request/show/774679 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-loguru?expand=0&rev=3
2020-02-16 12:06:14 +00:00
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 pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
Accepting request 774679 from home:mnhauke - Update to version 0.4.1 * Deprecate the ansi parameter of .opt() in favor of colors which is a name more appropriate. * Prevent unrelated files and directories to be incorrectly collected thus causing errors during the retention process * Strip color markups contained in record["message"] when logging with .opt(ansi=True) instead of leaving them as is. * Ignore color markups contained in *args and **kwargs when logging with .opt(ansi=True), leave them as is instead of trying to use them to colorize the message which could cause undesirable errors. - Update to version 0.4.0 * Add support for coroutine functions used as sinks and add the new logger.complete() asynchronous method to await them. * Add a way to filter logs using one level per module in the form of a dict passed to the filter argument. * Add type hints to annotate the public methods using a .pyi stub file. * Add support for copy.deepcopy() of the logger allowing multiple independent loggers with separate set of handlers. * Add the possibility to convert datetime to UTC before formatting (in logs and filenames) by adding "!UTC" at the end of the time format specifier. * Add the level name as the first argument of namedtuple returned by the .level() method. * Remove class objects from the list of supported sinks and restrict usage of **kwargs in .add() to file sink only. User is in charge of instantiating sink and wrapping additional keyword arguments if needed, before passing it to the .add() method. * Rename the logger.configure() keyword argument patch to patcher OBS-URL: https://build.opensuse.org/request/show/774679 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-loguru?expand=0&rev=3
2020-02-16 12:06:14 +00:00
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
rm -v tests/test_type_hinting.py
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
Accepting request 774679 from home:mnhauke - Update to version 0.4.1 * Deprecate the ansi parameter of .opt() in favor of colors which is a name more appropriate. * Prevent unrelated files and directories to be incorrectly collected thus causing errors during the retention process * Strip color markups contained in record["message"] when logging with .opt(ansi=True) instead of leaving them as is. * Ignore color markups contained in *args and **kwargs when logging with .opt(ansi=True), leave them as is instead of trying to use them to colorize the message which could cause undesirable errors. - Update to version 0.4.0 * Add support for coroutine functions used as sinks and add the new logger.complete() asynchronous method to await them. * Add a way to filter logs using one level per module in the form of a dict passed to the filter argument. * Add type hints to annotate the public methods using a .pyi stub file. * Add support for copy.deepcopy() of the logger allowing multiple independent loggers with separate set of handlers. * Add the possibility to convert datetime to UTC before formatting (in logs and filenames) by adding "!UTC" at the end of the time format specifier. * Add the level name as the first argument of namedtuple returned by the .level() method. * Remove class objects from the list of supported sinks and restrict usage of **kwargs in .add() to file sink only. User is in charge of instantiating sink and wrapping additional keyword arguments if needed, before passing it to the .add() method. * Rename the logger.configure() keyword argument patch to patcher OBS-URL: https://build.opensuse.org/request/show/774679 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-loguru?expand=0&rev=3
2020-02-16 12:06:14 +00:00
%doc README.rst
%{python_sitelib}/loguru
%{python_sitelib}/loguru-%{version}*-info
%changelog