python/python3-webencodings: Renamed to python3.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2021-05-21 08:55:48 +01:00 committed by Willy Sudiarto Raharjo
parent e997763fb6
commit 95a4deb7b4
No known key found for this signature in database
GPG key ID: 3F617144D7238786
6 changed files with 39 additions and 37 deletions

View file

@ -1,12 +0,0 @@
webencodings is a Python implementation of the WHATWG Encoding standard.
In order to be compatible with legacy web content when interpreting something
like Content-Type: text/html; charset=latin1, tools need to use a particular
set of aliases for encoding labels as well as some overriding rules. For
example, US-ASCII and iso-8859-1 on the web are actually aliases for
windows-1252, and an UTF-8 or UTF-16 BOM takes precedence over any other
encoding declaration. The Encoding standard defines all such details so that
implementations do not have to reverse-engineer each other.
This module has encoding labels and BOM detection, but the actual
implementation for encoders and decoders is Python's.

View file

@ -1,19 +0,0 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
python-webencodings: python-webencodings (Character encoding for the web)
python-webencodings:
python-webencodings: webencodings is a Python implementation of the WHATWG Encoding
python-webencodings: standard.
python-webencodings:
python-webencodings:
python-webencodings:
python-webencodings:
python-webencodings:
python-webencodings:
python-webencodings:

View file

@ -0,0 +1,13 @@
webencodings is a Python implementation of the WHATWG Encoding standard.
In order to be compatible with legacy web content when interpreting
something like Content-Type: text/html; charset=latin1, tools need to
use a particular set of aliases for encoding labels as well as some
overriding rules. For example, US-ASCII and iso-8859-1 on the web are
actually aliases for windows-1252, and an UTF-8 or UTF-16 BOM takes
precedence over any other encoding declaration. The Encoding standard
defines all such details so that implementations do not have to
reverse-engineer each other.
This module has encoding labels and BOM detection, but the actual
implementation for encoders and decoders is Python's.

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# SlackBuild for python-webencodings
# SlackBuild for python3-webencodings
#
# Copyright 2017-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
#
@ -21,7 +21,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=python-webencodings
PRGNAM=python3-webencodings
SRCNAM=python-webencodings
VERSION=${VERSION:-0.5.1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@ -58,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xzf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
rm -rf $SRCNAM-$VERSION
tar xzf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \

View file

@ -1,4 +1,4 @@
PRGNAM="python-webencodings"
PRGNAM="python3-webencodings"
VERSION="0.5.1"
HOMEPAGE="https://pythonhosted.org/webencodings/"
DOWNLOAD="https://github.com/gsnedders/python-webencodings/archive/v0.5.1/python-webencodings-0.5.1.tar.gz"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
python3-webencodings: python3-webencodings (Character encoding for the web)
python3-webencodings:
python3-webencodings: webencodings is a Python implementation of the WHATWG Encoding
python3-webencodings: standard.
python3-webencodings:
python3-webencodings:
python3-webencodings:
python3-webencodings:
python3-webencodings:
python3-webencodings:
python3-webencodings: