summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-09 02:15:51 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-09 02:15:51 +0000
commit57e659648ac5f7b7e67a2a001bb7c17cfaa5a089 (patch)
treedcee1d9f3396a34a32dcdea2e729d62635be77ed
parent848f9bdf1155f472af8671a13e1576e6c4f3c4b5 (diff)
automatic import of python-coloredlogs
-rw-r--r--.gitignore1
-rw-r--r--python-coloredlogs.spec107
-rw-r--r--sources1
3 files changed, 109 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f02754b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/coloredlogs-15.0.1.tar.gz
diff --git a/python-coloredlogs.spec b/python-coloredlogs.spec
new file mode 100644
index 0000000..b00ff67
--- /dev/null
+++ b/python-coloredlogs.spec
@@ -0,0 +1,107 @@
+%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
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 15.0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9279cdd
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6f68f57a8a1fa0359b4957896fda4cf7 coloredlogs-15.0.1.tar.gz