14
0

Accepting request 522425 from home:TheBlackCat:branches:devel:languages:python

- Implement single-spec version
- Update to Version 1.1.0
  * Added a handler for Riemann (thanks Šarūnas Navickas)
  * Added a handler for Slack (thanks @jonathanng)
  * Colorizing mixin can now force coloring on or off (thanks @ayalash)
- Update to Version 1.0.1
  * Fix PushOver handler cropping (thanks Sébastien Celles)

OBS-URL: https://build.opensuse.org/request/show/522425
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Logbook?expand=0&rev=5
This commit is contained in:
Todd R
2017-09-08 19:32:30 +00:00
committed by Git OBS Bridge
parent 6277f17086
commit 16b6cc80cb
4 changed files with 58 additions and 18 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:87da2515a6b3db866283cb9d4e5a6ec44e52a1d556ebb2ea3b6e7e704b5f1872
size 178113

3
Logbook-1.1.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e37a18f4f8244b02a1c44cfd2a3bab9513e6e22b67986ab6a91d52b87f0940b
size 186683

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Sep 8 18:57:09 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version
- Update to Version 1.1.0
* Added a handler for Riemann (thanks Šarūnas Navickas)
* Added a handler for Slack (thanks @jonathanng)
* Colorizing mixin can now force coloring on or off (thanks @ayalash)
- Update to Version 1.0.1
* Fix PushOver handler cropping (thanks Sébastien Celles)
-------------------------------------------------------------------
Fri Jan 6 20:55:50 UTC 2017 - boris@steki.net

View File

@@ -16,39 +16,68 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Tests require a network connection
%bcond_with test
Name: python-Logbook
Version: 1.0.0
Version: 1.1.0
Release: 0
Summary: A logging replacement for Python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://pypi.org/project/Logbook/
Source: https://pypi.io/packages/34/e8/6419c217bbf464fe8a902418120cccaf476201bd03b50958db24d6e90f65/Logbook-1.0.0.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
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 Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
%if %{with test}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module SQLAlchemy}
BuildRequires: %{python_module execnet >= 1.0.9}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pyzmq}
BuildRequires: %{python_module redis}
BuildRequires: python-mock
%endif
Recommends: python-Jinja2
Recommends: python-SQLAlchemy
Recommends: python-execnet >= 1.0.9
Recommends: python-gevent
Recommends: python-redis
Recommends: python-pyzmq
%python_subpackages
%description
An awesome logging implementation that is fun to use.
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
CFLAGS="%{optflags}" python setup.py build
export CFLAGS="%{optflags}"
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
#%%check
#python setup.py test
%if %{with test}
%check
export CFLAGS="%{optflags}"
%python_exec setup.py test
%endif
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES
%doc CHANGES LICENSE
%{python_sitearch}/*
%changelog