diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2022-12-10 21:38:11 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-12-12 16:39:16 +0700 |
commit | 9364413284b9e6ea900f496de1468400c313bd18 (patch) | |
tree | f51d35d4380883948a01c0157c71c745361a0794 | |
parent | 939fb3629bfc96c76b2ebdcbdbed3085c7a3a92d (diff) |
python/python3-httpx: Updated for version 0.23.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/python3-httpx/python3-httpx.SlackBuild | 12 | ||||
-rw-r--r-- | python/python3-httpx/python3-httpx.info | 8 |
2 files changed, 11 insertions, 9 deletions
diff --git a/python/python3-httpx/python3-httpx.SlackBuild b/python/python3-httpx/python3-httpx.SlackBuild index 6cb13328c148..d52671a71f47 100644 --- a/python/python3-httpx/python3-httpx.SlackBuild +++ b/python/python3-httpx/python3-httpx.SlackBuild @@ -23,12 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # 20220630 46and2: Updated version, updated DEP to add cli support. +# 20221210 46and2: Updated version, changed build process and add deps. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-httpx SRCNAM=$(echo $PRGNAM | sed 's/python3-//') -VERSION=${VERSION:-0.23.0} +VERSION=${VERSION:-0.23.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -82,11 +83,12 @@ 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 {} \; -#remove upper version requirement from setup.py and httpx.egg-info/requires.txt -/usr/bin/sed -i 's/,<[0-9].*\",$/\",/' setup.py -/usr/bin/sed -i 's/<[0-9].*,//' httpx.egg-info/requires.txt +#remove upper version requirement from pyproject.toml and PKG-INFO +/usr/bin/sed -i 's/,<[0-9].*\",$/\",/' pyproject.toml +/usr/bin/sed -i 's/<[0-9].*,//' PKG-INFO -python3 setup.py install --root=$PKG +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 diff --git a/python/python3-httpx/python3-httpx.info b/python/python3-httpx/python3-httpx.info index 6afc2cd17af6..97a0fc42ff8e 100644 --- a/python/python3-httpx/python3-httpx.info +++ b/python/python3-httpx/python3-httpx.info @@ -1,10 +1,10 @@ PRGNAM="python3-httpx" -VERSION="0.23.0" +VERSION="0.23.1" HOMEPAGE="https://github.com/encode/httpx" -DOWNLOAD="https://files.pythonhosted.org/packages/source/h/httpx/httpx-0.23.0.tar.gz" -MD5SUM="18d062af8373f7fdb965e81ff73a28d8" +DOWNLOAD="https://files.pythonhosted.org/packages/source/h/httpx/httpx-0.23.1.tar.gz" +MD5SUM="76bc821eccbacc59ca337f537d0f3b46" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-rfc3986 python3-sniffio python3-httpcore python3-rich click" +REQUIRES="python3-rfc3986 python3-sniffio python3-httpcore python3-rich click python3-hatch_fancy_pypi_readme" MAINTAINER="fourtysixandtwo" EMAIL="fourtysixandtwo@sliderr.net" |