diff --git python-logging-tree/python-logging-tree.spec python-logging-tree/python-logging-tree.spec.tmp index e41c64c24f..165ab597c8 100644 --- python-logging-tree/python-logging-tree.spec +++ python-logging-tree/python-logging-tree.spec.tmp @@ -8,7 +8,7 @@ Name: python-logging-tree Version: 1.7 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Introspect and display the logger tree inside "logging" Group: Development/Libraries @@ -27,31 +27,39 @@ BuildRequires: python3-devel BuildRequires: python3-nose %endif -%description -Introspection for the ``logging`` logger tree in the Standard Library. +%global _description\ +Introspection for the ``logging`` logger tree in the Standard Library.\ +\ +While you can write programs that call this package's ``tree()``\ +function and examine the hierarchy of logger objects that it finds\ +inside of the Standard Library ``logging`` module, the simplest use of\ +this package for debugging is to call ``printout()`` to print the\ +loggers, filters, and handlers that your application has configured::\ +\ + >>> logging.getLogger('a')\ + >>> logging.getLogger('a.b').setLevel(logging.DEBUG)\ + >>> logging.getLogger('x.c')\ + >>> from logging_tree import printout\ + >>> printout()\ + ""\ + Level WARNING\ + |\ + o<--"a"\ + | |\ + | o<--"a.b"\ + | Level DEBUG\ + |\ + o<--[x]\ + |\ + o<--"x.c" -While you can write programs that call this package's ``tree()`` -function and examine the hierarchy of logger objects that it finds -inside of the Standard Library ``logging`` module, the simplest use of -this package for debugging is to call ``printout()`` to print the -loggers, filters, and handlers that your application has configured:: +%description %_description - >>> logging.getLogger('a') - >>> logging.getLogger('a.b').setLevel(logging.DEBUG) - >>> logging.getLogger('x.c') - >>> from logging_tree import printout - >>> printout() - "" - Level WARNING - | - o<--"a" - | | - | o<--"a.b" - | Level DEBUG - | - o<--[x] - | - o<--"x.c" +%package -n python2-logging-tree +Summary: %summary +%{?python_provide:%python_provide python2-logging-tree} + +%description -n python2-logging-tree %_description %if 0%{?with_python3} %package -n python3-logging-tree @@ -120,7 +128,7 @@ pushd %{py3dir} popd %endif -%files +%files -n python2-logging-tree # There is no LICENSE or README shipped with the package. # There are docstrings in the code itself, though. # https://github.com/brandon-rhodes/logging_tree/pull/1 @@ -135,6 +143,10 @@ popd %endif %changelog +* Tue Aug 08 2017 Zbigniew Jędrzejewski-Szmek - 1.7-6 +- Python 2 binary package renamed to python2-logging-tree + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 1.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild