summaryrefslogtreecommitdiffstats
path: root/python/python3-httpcore
diff options
context:
space:
mode:
author fourtysixandtwo2023-09-18 01:38:24 +0200
committer Willy Sudiarto Raharjo2023-09-23 06:33:50 +0200
commit177983969bbdf74bd193b57e254e02da00cf16af (patch)
treefb8e033eb7bea5dee66373f9ffafeca38c3d6ea8 /python/python3-httpcore
parentcf8ce466b548a96979443e5b6f09557f6eee6b1f (diff)
downloadslackbuilds-177983969bbdf74bd193b57e254e02da00cf16af.tar.gz
python/python3-httpcore: Updated for version 0.18.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-httpcore')
-rw-r--r--python/python3-httpcore/README1
-rw-r--r--python/python3-httpcore/python3-httpcore.SlackBuild12
-rw-r--r--python/python3-httpcore/python3-httpcore.info8
3 files changed, 9 insertions, 12 deletions
diff --git a/python/python3-httpcore/README b/python/python3-httpcore/README
index 5b8ea5e486..9799f6e880 100644
--- a/python/python3-httpcore/README
+++ b/python/python3-httpcore/README
@@ -8,4 +8,3 @@ does not handle redirects, multipart uploads, building authentication
headers, transparent HTTP caching, URL parsing, session cookie
handling, content or charset decoding, handling JSON, environment
based configuration defaults, or any of that Jazz
-
diff --git a/python/python3-httpcore/python3-httpcore.SlackBuild b/python/python3-httpcore/python3-httpcore.SlackBuild
index 5f918bb835..c3b4445ed0 100644
--- a/python/python3-httpcore/python3-httpcore.SlackBuild
+++ b/python/python3-httpcore/python3-httpcore.SlackBuild
@@ -23,12 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220630 46and2: Updated version.
+# 20230917 46and2: Updated version, change build process
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-httpcore
SRCNAM=${PRGNAM#python3-*}
-VERSION=${VERSION:-0.17.3}
+VERSION=${VERSION:-0.18.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -82,17 +83,14 @@ 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 httpcore.egg-info/requires.txt
-/usr/bin/sed -i 's/,<[0-9].*\",$/\",/' setup.py
-/usr/bin/sed -i 's/<[0-9].*,//' httpcore.egg-info/requires.txt
-
-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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE.md README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG.md LICENSE.md 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/python3-httpcore/python3-httpcore.info b/python/python3-httpcore/python3-httpcore.info
index b831665589..5f2314e125 100644
--- a/python/python3-httpcore/python3-httpcore.info
+++ b/python/python3-httpcore/python3-httpcore.info
@@ -1,10 +1,10 @@
PRGNAM="python3-httpcore"
-VERSION="0.17.3"
+VERSION="0.18.0"
HOMEPAGE="https://github.com/encode/httpcore"
-DOWNLOAD="https://files.pythonhosted.org/packages/source/h/httpcore/httpcore-0.17.3.tar.gz"
-MD5SUM="1485d26994074d33b8ee753e2864f908"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/h/httpcore/httpcore-0.18.0.tar.gz"
+MD5SUM="12766d3538a87e46007becd1e51ca373"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-anyio python3-h11"
+REQUIRES="python3-hatch_fancy_pypi_readme python3-anyio python3-h11"
MAINTAINER="fourtysixandtwo"
EMAIL="fourtysixandtwo@sliderr.net"