aboutsummaryrefslogtreecommitdiff
path: root/python/python3-dotenv
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-dotenv')
-rw-r--r--python/python3-dotenv/README2
-rw-r--r--python/python3-dotenv/python3-dotenv.SlackBuild20
-rw-r--r--python/python3-dotenv/python3-dotenv.info8
3 files changed, 17 insertions, 13 deletions
diff --git a/python/python3-dotenv/README b/python/python3-dotenv/README
index 7536ac3174..03e7ce051b 100644
--- a/python/python3-dotenv/README
+++ b/python/python3-dotenv/README
@@ -3,3 +3,5 @@ python3-dotenv (Read key-value pairs from .env file and set env. vars)
python3-dotenv reads key-value pairs from a .env file and can set them
as environment variables. It helps in the development of applications
following the 12-factor principles.
+
+NOTE: If you want cli to work, have "click" installed before buildling.
diff --git a/python/python3-dotenv/python3-dotenv.SlackBuild b/python/python3-dotenv/python3-dotenv.SlackBuild
index 6eb4d13229..28db4f1611 100644
--- a/python/python3-dotenv/python3-dotenv.SlackBuild
+++ b/python/python3-dotenv/python3-dotenv.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python3-dotenv
-# Copyright 2022-2024 fourtysixandtwo <fourtysixandtwo@sliderr.net>
+# Copyright 2022-2025 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-dotenv
-SRCNAM=${PRGNAM/3/}
-VERSION=${VERSION:-1.0.1}
+SRCNAM=python_dotenv
+VERSION=${VERSION:-1.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -57,13 +57,15 @@ rm -rf $SRCNAM-$VERSION
tar xvf $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 \
- -o -perm 511 \) -exec chmod 755 {} \+ -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+find . ! -type l -a \
+ \( -perm /111 -a ! -perm 755 -a -exec chmod -f 755 {} + \) -o \
+ \( ! -perm /111 -a ! -perm 644 -a -exec chmod -f 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/python/python3-dotenv/python3-dotenv.info b/python/python3-dotenv/python3-dotenv.info
index 7d81d655a4..7cec8808a6 100644
--- a/python/python3-dotenv/python3-dotenv.info
+++ b/python/python3-dotenv/python3-dotenv.info
@@ -1,10 +1,10 @@
PRGNAM="python3-dotenv"
-VERSION="1.0.1"
+VERSION="1.2.1"
HOMEPAGE="https://github.com/theskumar/python-dotenv"
-DOWNLOAD="https://files.pythonhosted.org/packages/source/p/python-dotenv/python-dotenv-1.0.1.tar.gz"
-MD5SUM="68abb78e05460ce558ca255de550e1ea"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/p/python_dotenv/python_dotenv-1.2.1.tar.gz"
+MD5SUM="72b43685c14b492ced7ed6fb1e3f1d63"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3-setuptools-opt click"
MAINTAINER="fourtysixandtwo"
EMAIL="fourtysixandtwo@sliderr.net"