python/python3-httpx: Updated for version 0.23.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
febf9b42c7
commit
436afe154a
|
@ -8,9 +8,4 @@ Optional installs:
|
||||||
|
|
||||||
h2 - HTTP/2 support. (no slackbuild)
|
h2 - HTTP/2 support. (no slackbuild)
|
||||||
socksio - SOCKS proxy support. (no slackbuild)
|
socksio - SOCKS proxy support. (no slackbuild)
|
||||||
rich - Rich terminal support. (no slackbuild)
|
|
||||||
click - Command line client support.
|
|
||||||
async_generator - Backport support for contextlib.asynccontextmanager.
|
async_generator - Backport support for contextlib.asynccontextmanager.
|
||||||
|
|
||||||
Note: httpx cli requires optional dependencies to work
|
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,13 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
# 20220630 46and2: Updated version, updated DEP to add cli support.
|
||||||
|
|
||||||
cd $(dirname $0) ; CWD=$(pwd)
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=python3-httpx
|
PRGNAM=python3-httpx
|
||||||
SRCNAM=$(echo $PRGNAM | sed 's/python3-//')
|
SRCNAM=$(echo $PRGNAM | sed 's/python3-//')
|
||||||
VERSION=${VERSION:-0.22.0}
|
VERSION=${VERSION:-0.23.0}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
@ -80,8 +82,9 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
#fix setup.py as it tries to import from wrong library
|
#remove upper version requirement from setup.py and httpx.egg-info/requires.txt
|
||||||
/usr/bin/sed -i 's/distutils.core/setuptools/' setup.py
|
/usr/bin/sed -i 's/,<[0-9].*\",$/\",/' setup.py
|
||||||
|
/usr/bin/sed -i 's/<[0-9].*,//' httpx.egg-info/requires.txt
|
||||||
|
|
||||||
python3 setup.py install --root=$PKG
|
python3 setup.py install --root=$PKG
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="python3-httpx"
|
PRGNAM="python3-httpx"
|
||||||
VERSION="0.22.0"
|
VERSION="0.23.0"
|
||||||
HOMEPAGE="https://github.com/encode/httpx"
|
HOMEPAGE="https://github.com/encode/httpx"
|
||||||
DOWNLOAD="https://files.pythonhosted.org/packages/source/h/httpx/httpx-0.22.0.tar.gz"
|
DOWNLOAD="https://files.pythonhosted.org/packages/source/h/httpx/httpx-0.23.0.tar.gz"
|
||||||
MD5SUM="7d383767dbbd584940189adbb2fe6b29"
|
MD5SUM="18d062af8373f7fdb965e81ff73a28d8"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="python3-rfc3986 python3-sniffio python3-httpcore"
|
REQUIRES="python3-rfc3986 python3-sniffio python3-httpcore python3-rich click"
|
||||||
MAINTAINER="fourtysixandtwo"
|
MAINTAINER="fourtysixandtwo"
|
||||||
EMAIL="fourtysixandtwo@sliderr.net"
|
EMAIL="fourtysixandtwo@sliderr.net"
|
||||||
|
|
Loading…
Reference in New Issue