%global _empty_manifest_terminate_build 0 Name: python-coloredlogs Version: 15.0.1 Release: 1 Summary: Colored terminal output for Python's logging module License: MIT URL: https://coloredlogs.readthedocs.io Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cc/c7/eed8f27100517e8c0e6b923d5f0845d0cb99763da6fdee00478f91db7325/coloredlogs-15.0.1.tar.gz BuildArch: noarch Requires: python3-humanfriendly Requires: python3-capturer %description The `coloredlogs` package enables colored terminal output for Python's logging_ module. The ColoredFormatter_ class inherits from `logging.Formatter`_ and uses `ANSI escape sequences`_ to render your logging messages in color. It uses only standard colors so it should work on any UNIX terminal. It's currently tested on Python 2.7, 3.5+ and PyPy (2 and 3). On Windows `coloredlogs` automatically tries to enable native ANSI support (on up-to-date Windows 10 installations) and falls back on using colorama_ (if installed). Here is a screen shot of the demo that is printed when the command ``coloredlogs --demo`` is executed: Note that the screenshot above includes custom logging levels defined by my verboselogs_ package: if you install both `coloredlogs` and `verboselogs` it will Just Work (`verboselogs` is of course not required to use `coloredlogs`). %package -n python3-coloredlogs Summary: Colored terminal output for Python's logging module Provides: python-coloredlogs BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-coloredlogs The `coloredlogs` package enables colored terminal output for Python's logging_ module. The ColoredFormatter_ class inherits from `logging.Formatter`_ and uses `ANSI escape sequences`_ to render your logging messages in color. It uses only standard colors so it should work on any UNIX terminal. It's currently tested on Python 2.7, 3.5+ and PyPy (2 and 3). On Windows `coloredlogs` automatically tries to enable native ANSI support (on up-to-date Windows 10 installations) and falls back on using colorama_ (if installed). Here is a screen shot of the demo that is printed when the command ``coloredlogs --demo`` is executed: Note that the screenshot above includes custom logging levels defined by my verboselogs_ package: if you install both `coloredlogs` and `verboselogs` it will Just Work (`verboselogs` is of course not required to use `coloredlogs`). %package help Summary: Development documents and examples for coloredlogs Provides: python3-coloredlogs-doc %description help The `coloredlogs` package enables colored terminal output for Python's logging_ module. The ColoredFormatter_ class inherits from `logging.Formatter`_ and uses `ANSI escape sequences`_ to render your logging messages in color. It uses only standard colors so it should work on any UNIX terminal. It's currently tested on Python 2.7, 3.5+ and PyPy (2 and 3). On Windows `coloredlogs` automatically tries to enable native ANSI support (on up-to-date Windows 10 installations) and falls back on using colorama_ (if installed). Here is a screen shot of the demo that is printed when the command ``coloredlogs --demo`` is executed: Note that the screenshot above includes custom logging levels defined by my verboselogs_ package: if you install both `coloredlogs` and `verboselogs` it will Just Work (`verboselogs` is of course not required to use `coloredlogs`). %prep %autosetup -n coloredlogs-15.0.1 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-coloredlogs -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Apr 21 2023 Python_Bot - 15.0.1-1 - Package Spec generated