forked from pool/python-Logbook
Accepting request 628720 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/628720 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Logbook?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0e37a18f4f8244b02a1c44cfd2a3bab9513e6e22b67986ab6a91d52b87f0940b
|
||||
size 186683
|
3
Logbook-1.4.0.tar.gz
Normal file
3
Logbook-1.4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3c0a3ebd48e89fcdd725fe393eb9226c789dca5a4e7842d65e2f256645fd1cd9
|
||||
size 84334
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user