From f2db7b984627523dd487887ac0ca26712d2faff084fc285883e2475b4fa23bd4 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 4 Jul 2017 05:28:06 +0000 Subject: [PATCH] Accepting request 507400 from home:tbechtold:branches:devel:languages:python - update to 0.3.5: - Bring QueueListener implementation in line with the version in the stdlib. - Fixed a bug in ColorizingStreamHandler relating to encoding. - Return non-zero error code from "setup.py test" when a test fails. - Make the dictConfig tests work with both Python 2.x and 3.x. - convert to singlespec - fix Source url - split -doc package - update Url OBS-URL: https://build.opensuse.org/request/show/507400 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-logutils?expand=0&rev=3 --- logutils-0.3.3.tar.gz | 3 --- logutils-0.3.5.tar.gz | 3 +++ python-logutils.changes | 13 ++++++++++ python-logutils.spec | 54 ++++++++++++++++++++++++++++------------- 4 files changed, 53 insertions(+), 20 deletions(-) delete mode 100644 logutils-0.3.3.tar.gz create mode 100644 logutils-0.3.5.tar.gz diff --git a/logutils-0.3.3.tar.gz b/logutils-0.3.3.tar.gz deleted file mode 100644 index a352909..0000000 --- a/logutils-0.3.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4042b8e57cbe3b01552b3c84191595ae6c36f1ab5aef7e3a6ce5c2f15c297c9c -size 27106 diff --git a/logutils-0.3.5.tar.gz b/logutils-0.3.5.tar.gz new file mode 100644 index 0000000..b001d4e --- /dev/null +++ b/logutils-0.3.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc058a25d5c209461f134e1f03cab637d66a7a5ccc12e593db56fbb279899a82 +size 27703 diff --git a/python-logutils.changes b/python-logutils.changes index c3795cc..cbf67e9 100644 --- a/python-logutils.changes +++ b/python-logutils.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Thu Jun 29 16:53:49 UTC 2017 - tbechtold@suse.com + +- update to 0.3.5: + - Bring QueueListener implementation in line with the version in the stdlib. + - Fixed a bug in ColorizingStreamHandler relating to encoding. + - Return non-zero error code from "setup.py test" when a test fails. + - Make the dictConfig tests work with both Python 2.x and 3.x. +- convert to singlespec +- fix Source url +- split -doc package +- update Url + ------------------------------------------------------------------- Thu Jul 18 09:02:19 UTC 2013 - speilicke@suse.com diff --git a/python-logutils.spec b/python-logutils.spec index 9fa00f1..e1995d7 100644 --- a/python-logutils.spec +++ b/python-logutils.spec @@ -1,7 +1,7 @@ # # spec file for package python-logutils # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -13,25 +13,26 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-logutils -Version: 0.3.3 +Version: 0.3.5 Release: 0 -License: BSD-3-Clause Summary: Logging utilities -Url: http://code.google.com/p/logutils/ +License: BSD-3-Clause Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/l/logutils/logutils-%{version}.tar.gz -BuildRequires: python-devel -# Documentation requirements: -BuildRequires: python-Sphinx +Url: https://logutils.readthedocs.io/ +Source: https://files.pythonhosted.org/packages/source/l/logutils/logutils-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +BuildRequires: python3-Sphinx BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description The logutils package provides a set of handlers for the Python standard @@ -42,22 +43,41 @@ so they are packaged here. Others are updated versions which have appeared in recent Python releases, but are usable with older versions of Python and so are packaged here. +%package -n python-logutils-doc +Summary: Documentation for %{name} +Group: Documentation/Other +Provides: %{python_module logutils-doc = %{version}} + +%description -n python-logutils-doc +The logutils package provides a set of handlers for the Python standard +library's logging package. + +Some of these handlers are out-of-scope for the standard library, and +so they are packaged here. Others are updated versions which have +appeared in recent Python releases, but are usable with older versions +of Python and so are packaged here. + +This package contains the documentation. + %prep %setup -q -n logutils-%{version} %build -python setup.py build +%python_build cd doc && make html %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) -%doc LICENSE.txt NEWS.txt README.txt doc/_build/html +%doc LICENSE.txt NEWS.txt README.rst %{python_sitelib}/* +%files -n python-logutils-doc +%doc LICENSE.txt doc/_build/html + %changelog