summaryrefslogtreecommitdiffstats
path: root/python/colored
diff options
context:
space:
mode:
author Dimitris Zlatanidis <d.zlatanidis@gmail.com>2023-06-29 17:15:49 +0300
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-02 23:21:24 +0700
commit227c320991e042479db8ac3612395388b209f52e (patch)
treefbba43f5b4a7ce866abf867f78cf4d3a36d670d7 /python/colored
parentc983fe1bc3e5dbe330e8c12fa48de1202f401a19 (diff)
downloadslackbuilds-227c320991e042479db8ac3612395388b209f52e.tar.gz
slackbuilds-227c320991e042479db8ac3612395388b209f52e.tar.xz
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>
Diffstat (limited to 'python/colored')
-rw-r--r--python/colored/README15
-rw-r--r--python/colored/colored.SlackBuild9
-rw-r--r--python/colored/colored.info10
-rw-r--r--python/colored/slack-desc8
4 files changed, 25 insertions, 17 deletions
diff --git a/python/colored/README b/python/colored/README
index d43d9adc18..9ebddf7ffb 100644
--- a/python/colored/README
+++ b/python/colored/README
@@ -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.
diff --git a/python/colored/colored.SlackBuild b/python/colored/colored.SlackBuild
index bb24ba73e6..34d681210e 100644
--- a/python/colored/colored.SlackBuild
+++ b/python/colored/colored.SlackBuild
@@ -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
diff --git a/python/colored/colored.info b/python/colored/colored.info
index 1b68be278a..b3ccd4aa12 100644
--- a/python/colored/colored.info
+++ b/python/colored/colored.info
@@ -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"
diff --git a/python/colored/slack-desc b/python/colored/slack-desc
index 4dec995452..49b9276fa2 100644
--- a/python/colored/slack-desc
+++ b/python/colored/slack-desc
@@ -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: