Skip to content

Commit

Permalink
python/python3-json-logger: Update for 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaackwy committed Dec 18, 2024
1 parent 1db48d6 commit daf3030
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 23 deletions.
26 changes: 8 additions & 18 deletions python/python3-json-logger/python3-json-logger.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Slackware build script for python3-json-logger

# Copyright 2022-2023 Isaac Yu <[email protected]>
# Copyright 2022-2024 Isaac Yu <[email protected]>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
Expand All @@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=python3-json-logger
VERSION=${VERSION:-2.0.7}
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
Expand All @@ -49,20 +49,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
Expand All @@ -78,13 +64,17 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
-o -perm 400 \) -exec chmod 644 {} \;

python3 setup.py install --root=$PKG
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages

python3 -m build --no-isolation
python3 -m installer -d "$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 CHANGELOG.md LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cp -a docs/changelog.md docs/contributing.md README.md docs/security.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
Expand Down
10 changes: 5 additions & 5 deletions python/python3-json-logger/python3-json-logger.info
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PRGNAM="python3-json-logger"
VERSION="2.0.7"
HOMEPAGE="https://github.com/madzak/python-json-logger"
DOWNLOAD="https://github.com/madzak/python-json-logger/archive/v2.0.7/python-json-logger-2.0.7.tar.gz"
MD5SUM="280d601aa6fad91cc0f1bf67e44522ab"
VERSION="3.2.1"
HOMEPAGE="https://github.com/nhairs/python-json-logger"
DOWNLOAD="https://github.com/nhairs/python-json-logger/archive/v3.2.1/python-json-logger-3.2.1.tar.gz"
MD5SUM="dd57f9cfeb7af11394b9522875a166ee"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
REQUIRES="python3-setuptools-opt python3-typing-extensions"
MAINTAINER="Isaac Yu"
EMAIL="[email protected]"

0 comments on commit daf3030

Please sign in to comment.