aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/python/python-coloredlogs_10.0.bb
blob: b1f3411058daef96221a3b1cd502cf0c4cef23fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SUMMARY = "Colored terminal output for Python's logging module"
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.6, 2.7, 3.4, 3.5, 3.6 and PyPy. On \
Windows coloredlogs automatically pulls in Colorama as a dependency and \
enables ANSI escape sequence translation using Colorama."
HOMEPAGE = "https://coloredlogs.readthedocs.io"
SECTION = "devel/python"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=690da298a43805797a4fa7bbe180b3c6"

SRC_URI[md5sum] = "0a186966a1955fff8cf9489373e691d9"
SRC_URI[sha256sum] = "b869a2dda3fa88154b9dd850e27828d8755bfab5a838a1c97fbc850c6e377c36"

inherit pypi setuptools

do_compile_prepend() {
    sed -ie "s/find_pth_directory(),/'',/g" ${S}/setup.py
}

do_install_append() {
    rm -rf ${D}${datadir}
}

RDEPENDS_${PN} += "\
    ${PYTHON_PN}-humanfriendly \
"

BBCLASSEXTEND = "native"

PNBLACKLIST[python-coloredlogs] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"