14
0
Files
python-Logbook/python-Logbook.spec
Matej Cepl 88cfec3639 Accepting request 1114339 from home:mimi_vx:branches:devel:languages:python
- update to 1.6.0
  * Supports SQLAlchemy 1.4 and 2.0.
  * Fix various deprecation warnings.
  * exc_info arg may be a BaseException instance
  * FileHandler supports path-like objects.
  * Fixed bug which prevented compilation on Cython 3
  * Wheels are generated for more platforms and architectures

OBS-URL: https://build.opensuse.org/request/show/1114339
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Logbook?expand=0&rev=26
2023-09-30 13:17:18 +00:00

82 lines
2.5 KiB
RPMSpec

#
# spec file for package python-Logbook
#
# 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/
#
Name: python-Logbook
Version: 1.6.0
Release: 0
Summary: A logging replacement for Python
License: BSD-3-Clause
URL: https://github.com/getlogbook/logbook
Source: https://files.pythonhosted.org/packages/source/L/Logbook/Logbook-%{version}.tar.gz
BuildRequires: %{python_module Brotli}
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module SQLAlchemy}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module execnet >= 1.0.9}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 6.0}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pyzmq}
BuildRequires: %{python_module redis}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: redis
BuildRequires: util-linux
Recommends: python-Jinja2
Recommends: python-SQLAlchemy
Recommends: python-execnet >= 1.0.9
Recommends: python-gevent
Recommends: python-pyzmq
Recommends: python-redis
%python_subpackages
%description
An alternative logging implementation for python.
%prep
%autosetup -p1 -n Logbook-%{version}
dos2unix LICENSE
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%pyproject_wheel
%install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%pyproject_install
%check
export CFLAGS="%{optflags}"
%{_sbindir}/redis-server &
# test_asyncio_context_management seems to fail in OBS
%pytest_arch -k 'not test_asyncio_context_management'
kill %%1
%files %{python_files}
%license LICENSE
%doc CHANGES
%{python_sitearch}/logbook
%{python_sitearch}/Logbook-%{version}*-info
%changelog