summaryrefslogtreecommitdiff
path: root/python/typing-extensions
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2022-09-16 01:26:33 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-09-17 09:00:09 +0700
commitc59c36992778186201e71a227f775ed8b82c3963 (patch)
treee29e6535dee946426559adf00ab012484a2e8653 /python/typing-extensions
parentd01a0d36b09daf39eae2e4f7b64fec0fd00ded19 (diff)
downloadslackbuilds-c59c36992778186201e71a227f775ed8b82c3963.tar.gz
python/typing-extensions: Updated for version 4.3.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/typing-extensions')
-rw-r--r--python/typing-extensions/typing-extensions.SlackBuild29
-rw-r--r--python/typing-extensions/typing-extensions.info8
2 files changed, 9 insertions, 28 deletions
diff --git a/python/typing-extensions/typing-extensions.SlackBuild b/python/typing-extensions/typing-extensions.SlackBuild
index aa44e08973..836b64bc62 100644
--- a/python/typing-extensions/typing-extensions.SlackBuild
+++ b/python/typing-extensions/typing-extensions.SlackBuild
@@ -30,8 +30,8 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=typing-extensions
PKGNAM=typing_extensions
-VERSION=${VERSION:-3.10.0.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.3.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -69,30 +69,11 @@ 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 {} \+
-set -- ./*
-
-mkdir -p build-py2 build-py3
-cp -r -- "$@" build-py2
-cp -r -- "$@" build-py3
-
-(
- cd build-py2
- # Python 2.7 will be dropped in the future.
- if python2 -c 'import sys' 2>/dev/null; then
- python2 setup.py install --root=$PKG
- fi
-)
-
-(
- cd build-py3
- # Replacement of python-2.x Python3.x check presence and build if found.
- if python3 -c 'import sys' 2>/dev/null; then
- python3 setup.py install --root=$PKG
- fi
-)
+python3 -m build --no-isolation
+python3 -m installer -d "$PKG" dist/*.whl
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/typing-extensions/typing-extensions.info b/python/typing-extensions/typing-extensions.info
index fcfd35de61..018636098f 100644
--- a/python/typing-extensions/typing-extensions.info
+++ b/python/typing-extensions/typing-extensions.info
@@ -1,10 +1,10 @@
PRGNAM="typing-extensions"
-VERSION="3.10.0.2"
+VERSION="4.3.0"
HOMEPAGE="https://pypi.org/project/typing-extensions/"
-DOWNLOAD="https://files.pythonhosted.org/packages/ed/12/c5079a15cf5c01d7f4252b473b00f7e68ee711be605b9f001528f0298b98/typing_extensions-3.10.0.2.tar.gz"
-MD5SUM="ed80ecc8eac5cb15840535ca54eb43f3"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/t/typing_extensions/typing_extensions-4.3.0.tar.gz"
+MD5SUM="30ff8c89459dd93970a92a90b0386aba"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3-build python3-installer python3-flit_core"
MAINTAINER="Isaac Yu"
EMAIL="isaacyu1@isaacyu1.com"