python/colored: Updated for version 2.2.2.

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dimitris Zlatanidis 2023-06-29 17:15:49 +03:00 committed by Willy Sudiarto Raharjo
parent c983fe1bc3
commit 227c320991
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
4 changed files with 25 additions and 17 deletions

View File

@ -1,4 +1,11 @@
Very simple Python library for color and formatting in terminal.
Collection of color codes and names for 256 color terminal setups.
The following is a list of 256 colors for Xterm, containing an
example of the displayed color, Xterm Name, Xterm Number and HEX.
Colored, it's a simple Python library for color and formatting in
terminal. Collection of color codes and names for 256 color terminal
setups. Colored now supports RGB color mode. As "true color" graphic
cards with 16 to 24 bits of color became common, applications began
to support 24-bit colors. Terminal emulators supporting setting 24-bit
foreground and background colors with escape sequences include Xterm,
KDE's Konsole, and iTerm, as well as all libvte based terminals,
including GNOME Terminal.
The colors work with most terminals and terminals emulators.
ANSI/VT100 escape sequences can be used in every programming languages.

View File

@ -2,7 +2,7 @@
# Slackware build script for colored
# Copyright 2014-2022 Dimitris Zlatanidis Orestiada, Greece
# Copyright 2014-2023 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=colored
VERSION=${VERSION:-1.4.4}
VERSION=${VERSION:-2.2.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -79,13 +79,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python3 setup.py install --root=$PKG
python3 -m build --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.rst CHANGES.md LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.md CHANGES.md LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View File

@ -1,10 +1,10 @@
PRGNAM="colored"
VERSION="1.4.4"
HOMEPAGE="https://gitlab.com/dslackw/colored"
DOWNLOAD="https://files.pythonhosted.org/packages/f3/d6/00203998f27ab30b2417998006ad0608f236740bb129494dd7c5621861e1/colored-1.4.4.tar.gz"
MD5SUM="b58fe460e0fa53a4d9e58266cbdeb86e"
VERSION="2.2.2"
HOMEPAGE="https://dslackw.gitlab.io/colored"
DOWNLOAD="https://gitlab.com/dslackw/colored/-/archive/2.2.2/colored-2.2.2.tar.gz"
MD5SUM="6e0af5e441430760b4bb827f89cf5421"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
REQUIRES="python3-build"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"

View File

@ -8,11 +8,11 @@
|-----handy-ruler------------------------------------------------------|
colored: colored (python color library)
colored:
colored: Very simple Python library for color and formatting in terminal.
colored:
colored: Homepage: https://gitlab.com/dslackw/colored
colored:
colored: Colored, it's a simple Python library for color and formatting in
colored: terminal. Collection of color codes and names for 256 color terminal
colored: setups. Colored now supports RGB color mode.
colored:
colored: Homepage: https://dslackw.gitlab.io/colored
colored:
colored:
colored: