From 92530f0c2a123c922703ccf12a5086fbb0f48cbf9015527468726cebd608d19d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 11 Aug 2018 06:39:28 +0000 Subject: [PATCH] Accepting request 628692 from home:czerw:test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to Version 1.4.0 * Added support for checking if trace logs have been emitted in TestHandler (thanks @thedrow) * Added support for controlling rotating file names -- Logbook now allows users to customize the formatting of rollover/rotating files (thanks Tucker Beck) * Added support for compressed log files, supporting both gzip and brotli compression methods (thanks Maor Marcus) * Fixed CPU usage for queuing handlers (thanks Adam Urbańczyk) - Remove cleanup of tests/*.pyc files and tests/__pycache__ from downloaded source code - Fully enable tests - Add cython build of _speedups.c for each python version OBS-URL: https://build.opensuse.org/request/show/628692 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Logbook?expand=0&rev=7 --- Logbook-1.1.0.tar.gz | 3 --- Logbook-1.4.0.tar.gz | 3 +++ python-Logbook.changes | 13 ++++++++++++ python-Logbook.spec | 45 +++++++++++++++++++++--------------------- 4 files changed, 39 insertions(+), 25 deletions(-) delete mode 100644 Logbook-1.1.0.tar.gz create mode 100644 Logbook-1.4.0.tar.gz diff --git a/Logbook-1.1.0.tar.gz b/Logbook-1.1.0.tar.gz deleted file mode 100644 index 6046d6c..0000000 --- a/Logbook-1.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e37a18f4f8244b02a1c44cfd2a3bab9513e6e22b67986ab6a91d52b87f0940b -size 186683 diff --git a/Logbook-1.4.0.tar.gz b/Logbook-1.4.0.tar.gz new file mode 100644 index 0000000..81fe290 --- /dev/null +++ b/Logbook-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c0a3ebd48e89fcdd725fe393eb9226c789dca5a4e7842d65e2f256645fd1cd9 +size 84334 diff --git a/python-Logbook.changes b/python-Logbook.changes index 89ba967..da23786 100644 --- a/python-Logbook.changes +++ b/python-Logbook.changes @@ -1,4 +1,17 @@ ------------------------------------------------------------------- +Fri Aug 10 13:23:32 UTC 2018 - petr@cervinka.net + +- Update to Version 1.4.0 + * Added support for checking if trace logs have been emitted in TestHandler (thanks @thedrow) + * Added support for controlling rotating file names -- Logbook now allows users to + customize the formatting of rollover/rotating files (thanks Tucker Beck) + * Added support for compressed log files, supporting both gzip and brotli compression + methods (thanks Maor Marcus) + * Fixed CPU usage for queuing handlers (thanks Adam Urbańczyk) +- Remove cleanup of tests/*.pyc files and tests/__pycache__ from downloaded source code +- Fully enable tests +- Add cython build of _speedups.c for each python version +------------------------------------------------------------------- Fri Sep 8 18:57:09 UTC 2017 - toddrme2178@gmail.com - Implement single-spec version diff --git a/python-Logbook.spec b/python-Logbook.spec index 570be37..eb4edb0 100644 --- a/python-Logbook.spec +++ b/python-Logbook.spec @@ -1,7 +1,7 @@ # # spec file for package python-Logbook # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,39 +17,38 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Tests require a network connection -%bcond_with test Name: python-Logbook -Version: 1.1.0 +Version: 1.4.0 Release: 0 Summary: A logging replacement for Python License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/getlogbook/logbook +URL: https://github.com/getlogbook/logbook Source: https://files.pythonhosted.org/packages/source/L/Logbook/Logbook-%{version}.tar.gz -BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: %{python_module Brotli} BuildRequires: %{python_module Cython} -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} -%if %{with test} 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 pytest} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module pyzmq} BuildRequires: %{python_module redis} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-mock -%endif +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-redis Recommends: python-pyzmq - +Recommends: python-redis %python_subpackages %description @@ -58,26 +57,28 @@ An alternative logging implementation for python. %prep %setup -q -n Logbook-%{version} sed -i 's/\r$//' LICENSE -rm tests/*.pyc -rm -r tests/__pycache__ %build export CFLAGS="%{optflags}" -%python_build +cython-%{python2_version} logbook/_speedups.pyx +%python2_build +rm logbook/_speedups.c +cython-%{python3_version} logbook/_speedups.pyx +%python3_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} -%if %{with test} %check export CFLAGS="%{optflags}" -%python_exec setup.py test -%endif +%{_sbindir}/redis-server & +%python_exec -m pytest +kill %1 %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES LICENSE +%license LICENSE +%doc CHANGES %{python_sitearch}/* %changelog