pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-httpie py-httpie: updated to 3.2.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/956989da0089
branches:  trunk
changeset: 387211:956989da0089
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Oct 25 07:59:07 2022 +0000

description:
py-httpie: updated to 3.2.1

3.2.1
- Improved support for determining auto-streaming when the `Content-Type` header includes encoding information.
- Fixed the display of the crash happening in the secondary process for update checks.

3.2.0
- Added a warning for notifying the user about the new updates.
- Added support for single binary executables.
- Added support for man pages (and auto generation of them from the parser declaration).
- Added `http --manual` for man pages & regular manual with pager.
- Added support for session persistence of repeated headers with the same name.
- Added support for sending `Secure` cookies to the `localhost` (and `.local` suffixed domains).
- Improved UI for the progress bars.
- Fixed redundant creation of `Content-Length` header on `OPTIONS` requests.
- Fixed blocking of warning thread on some use cases.
- Changed `httpie plugins` to the new `httpie cli` namespace as `httpie cli plugins` (`httpie plugins` continues to work as a hidden alias).
- Soft deprecated the `--history-print`.

diffstat:

 www/py-httpie/Makefile |  23 +++++++++++----
 www/py-httpie/PLIST    |  73 ++++++++++++++++++++++++++++++++++++++++++-------
 www/py-httpie/distinfo |   8 ++--
 3 files changed, 83 insertions(+), 21 deletions(-)

diffs (193 lines):

diff -r 4dec511ca33c -r 956989da0089 www/py-httpie/Makefile
--- a/www/py-httpie/Makefile    Tue Oct 25 07:58:13 2022 +0000
+++ b/www/py-httpie/Makefile    Tue Oct 25 07:59:07 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2022/03/09 16:06:52 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2022/10/25 07:59:07 adam Exp $
 
-DISTNAME=      httpie-3.1.0
+DISTNAME=      httpie-3.2.1
 PKGNAME=       ${PYPKGPREFIX}-${EGG_NAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/httpie/}
@@ -14,30 +14,41 @@
 DEPENDS+=      ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses
 DEPENDS+=      ${PYPKGPREFIX}-defusedxml>=0.6.0:../../textproc/py-defusedxml
 DEPENDS+=      ${PYPKGPREFIX}-multidict>=4.7.0:../../databases/py-multidict
+DEPENDS+=      ${PYPKGPREFIX}-pip-[0-9]*:../../devel/py-pip
 DEPENDS+=      ${PYPKGPREFIX}-pygments>=2.5.2:../../textproc/py-pygments
 DEPENDS+=      ${PYPKGPREFIX}-requests>=2.22.0:../../devel/py-requests
 DEPENDS+=      ${PYPKGPREFIX}-requests-toolbelt>=0.9.1:../../devel/py-requests-toolbelt
+DEPENDS+=      ${PYPKGPREFIX}-rich>=9.10.0:../../comms/py-rich
 TEST_DEPENDS+= ${PYPKGPREFIX}-responses-[0-9]*:../../net/py-responses
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-httpbin-[0-9]*:../../www/py-test-httpbin
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-httpbin>=0.0.6:../../www/py-test-httpbin
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-lazy-fixture>=0.0.6:../../devel/py-test-lazy-fixture
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
 
 USE_LANGUAGES= # none
 
+USE_PKG_RESOURCES=     yes
+
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/pyversion.mk"
 
-.if ${PYPKGPREFIX} == "py37"
+.if ${_PYTHON_VERSION} == 37
 DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata>=1.4.0:../../devel/py-importlib-metadata
 .endif
 
-USE_PKG_RESOURCES=     yes
+SUBST_CLASSES+=                man
+SUBST_STAGE.man=       pre-configure
+SUBST_MESSAGE.man=     Fixing mandir paths.
+SUBST_FILES.man=       setup.py
+SUBST_SED.man+=                -e 's,share/man,${PKGMANDIR},g'
 
 post-install:
-.for bin in http https
+.for bin in http httpie https
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
+       cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && \
+       ${MV} ${bin}.1 ${bin}-${PYVERSSUFFIX}.1 || ${TRUE}
 .endfor
 
 # test status as of 3.1.0
diff -r 4dec511ca33c -r 956989da0089 www/py-httpie/PLIST
--- a/www/py-httpie/PLIST       Tue Oct 25 07:58:13 2022 +0000
+++ b/www/py-httpie/PLIST       Tue Oct 25 07:59:07 2022 +0000
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.7 2022/03/09 16:06:52 wiz Exp $
+@comment $NetBSD: PLIST,v 1.8 2022/10/25 07:59:07 adam Exp $
 bin/http-${PYVERSSUFFIX}
-bin/httpie
+bin/httpie-${PYVERSSUFFIX}
 bin/https-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -62,6 +62,9 @@
 ${PYSITELIB}/httpie/context.py
 ${PYSITELIB}/httpie/context.pyc
 ${PYSITELIB}/httpie/context.pyo
+${PYSITELIB}/httpie/cookies.py
+${PYSITELIB}/httpie/cookies.pyc
+${PYSITELIB}/httpie/cookies.pyo
 ${PYSITELIB}/httpie/core.py
 ${PYSITELIB}/httpie/core.pyc
 ${PYSITELIB}/httpie/core.pyo
@@ -71,12 +74,30 @@
 ${PYSITELIB}/httpie/encoding.py
 ${PYSITELIB}/httpie/encoding.pyc
 ${PYSITELIB}/httpie/encoding.pyo
+${PYSITELIB}/httpie/internal/__build_channel__.py
+${PYSITELIB}/httpie/internal/__build_channel__.pyc
+${PYSITELIB}/httpie/internal/__build_channel__.pyo
+${PYSITELIB}/httpie/internal/__init__.py
+${PYSITELIB}/httpie/internal/__init__.pyc
+${PYSITELIB}/httpie/internal/__init__.pyo
+${PYSITELIB}/httpie/internal/daemon_runner.py
+${PYSITELIB}/httpie/internal/daemon_runner.pyc
+${PYSITELIB}/httpie/internal/daemon_runner.pyo
+${PYSITELIB}/httpie/internal/daemons.py
+${PYSITELIB}/httpie/internal/daemons.pyc
+${PYSITELIB}/httpie/internal/daemons.pyo
+${PYSITELIB}/httpie/internal/update_warnings.py
+${PYSITELIB}/httpie/internal/update_warnings.pyc
+${PYSITELIB}/httpie/internal/update_warnings.pyo
 ${PYSITELIB}/httpie/legacy/__init__.py
 ${PYSITELIB}/httpie/legacy/__init__.pyc
 ${PYSITELIB}/httpie/legacy/__init__.pyo
-${PYSITELIB}/httpie/legacy/cookie_format.py
-${PYSITELIB}/httpie/legacy/cookie_format.pyc
-${PYSITELIB}/httpie/legacy/cookie_format.pyo
+${PYSITELIB}/httpie/legacy/v3_1_0_session_cookie_format.py
+${PYSITELIB}/httpie/legacy/v3_1_0_session_cookie_format.pyc
+${PYSITELIB}/httpie/legacy/v3_1_0_session_cookie_format.pyo
+${PYSITELIB}/httpie/legacy/v3_2_0_session_header_format.py
+${PYSITELIB}/httpie/legacy/v3_2_0_session_header_format.pyc
+${PYSITELIB}/httpie/legacy/v3_2_0_session_header_format.pyo
 ${PYSITELIB}/httpie/manager/__init__.py
 ${PYSITELIB}/httpie/manager/__init__.pyc
 ${PYSITELIB}/httpie/manager/__init__.pyo
@@ -86,15 +107,27 @@
 ${PYSITELIB}/httpie/manager/cli.py
 ${PYSITELIB}/httpie/manager/cli.pyc
 ${PYSITELIB}/httpie/manager/cli.pyo
+${PYSITELIB}/httpie/manager/compat.py
+${PYSITELIB}/httpie/manager/compat.pyc
+${PYSITELIB}/httpie/manager/compat.pyo
 ${PYSITELIB}/httpie/manager/core.py
 ${PYSITELIB}/httpie/manager/core.pyc
 ${PYSITELIB}/httpie/manager/core.pyo
-${PYSITELIB}/httpie/manager/plugins.py
-${PYSITELIB}/httpie/manager/plugins.pyc
-${PYSITELIB}/httpie/manager/plugins.pyo
-${PYSITELIB}/httpie/manager/tasks.py
-${PYSITELIB}/httpie/manager/tasks.pyc
-${PYSITELIB}/httpie/manager/tasks.pyo
+${PYSITELIB}/httpie/manager/tasks/__init__.py
+${PYSITELIB}/httpie/manager/tasks/__init__.pyc
+${PYSITELIB}/httpie/manager/tasks/__init__.pyo
+${PYSITELIB}/httpie/manager/tasks/check_updates.py
+${PYSITELIB}/httpie/manager/tasks/check_updates.pyc
+${PYSITELIB}/httpie/manager/tasks/check_updates.pyo
+${PYSITELIB}/httpie/manager/tasks/export_args.py
+${PYSITELIB}/httpie/manager/tasks/export_args.pyc
+${PYSITELIB}/httpie/manager/tasks/export_args.pyo
+${PYSITELIB}/httpie/manager/tasks/plugins.py
+${PYSITELIB}/httpie/manager/tasks/plugins.pyc
+${PYSITELIB}/httpie/manager/tasks/plugins.pyo
+${PYSITELIB}/httpie/manager/tasks/sessions.py
+${PYSITELIB}/httpie/manager/tasks/sessions.pyc
+${PYSITELIB}/httpie/manager/tasks/sessions.pyo
 ${PYSITELIB}/httpie/models.py
 ${PYSITELIB}/httpie/models.pyc
 ${PYSITELIB}/httpie/models.pyo
@@ -143,9 +176,24 @@
 ${PYSITELIB}/httpie/output/ui/__init__.py
 ${PYSITELIB}/httpie/output/ui/__init__.pyc
 ${PYSITELIB}/httpie/output/ui/__init__.pyo
+${PYSITELIB}/httpie/output/ui/man_pages.py
+${PYSITELIB}/httpie/output/ui/man_pages.pyc
+${PYSITELIB}/httpie/output/ui/man_pages.pyo
 ${PYSITELIB}/httpie/output/ui/palette.py
 ${PYSITELIB}/httpie/output/ui/palette.pyc
 ${PYSITELIB}/httpie/output/ui/palette.pyo
+${PYSITELIB}/httpie/output/ui/rich_help.py
+${PYSITELIB}/httpie/output/ui/rich_help.pyc
+${PYSITELIB}/httpie/output/ui/rich_help.pyo
+${PYSITELIB}/httpie/output/ui/rich_palette.py
+${PYSITELIB}/httpie/output/ui/rich_palette.pyc
+${PYSITELIB}/httpie/output/ui/rich_palette.pyo
+${PYSITELIB}/httpie/output/ui/rich_progress.py
+${PYSITELIB}/httpie/output/ui/rich_progress.pyc
+${PYSITELIB}/httpie/output/ui/rich_progress.pyo
+${PYSITELIB}/httpie/output/ui/rich_utils.py
+${PYSITELIB}/httpie/output/ui/rich_utils.pyc
+${PYSITELIB}/httpie/output/ui/rich_utils.pyo
 ${PYSITELIB}/httpie/output/utils.py
 ${PYSITELIB}/httpie/output/utils.pyc
 ${PYSITELIB}/httpie/output/utils.pyo
@@ -182,3 +230,6 @@
 ${PYSITELIB}/httpie/utils.py
 ${PYSITELIB}/httpie/utils.pyc
 ${PYSITELIB}/httpie/utils.pyo
+man/man1/http-${PYVERSSUFFIX}.1
+man/man1/httpie-${PYVERSSUFFIX}.1
+man/man1/https-${PYVERSSUFFIX}.1
diff -r 4dec511ca33c -r 956989da0089 www/py-httpie/distinfo
--- a/www/py-httpie/distinfo    Tue Oct 25 07:58:13 2022 +0000
+++ b/www/py-httpie/distinfo    Tue Oct 25 07:59:07 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2022/03/09 16:06:52 wiz Exp $
+$NetBSD: distinfo,v 1.15 2022/10/25 07:59:07 adam Exp $
 
-BLAKE2s (httpie-3.1.0.tar.gz) = f5e4cf093f4e397d22ac884cba0d94e8886ae88682d5b561d0d508b5126f0d70
-SHA512 (httpie-3.1.0.tar.gz) = d72937a0306ce64874310872852bfabbdde36ab19400368db6ce9743ba59449d0cf0d8f95b21f7b32bd27cd905d2dc9b722dc91b3fc6090015eb51a519f54df4
-Size (httpie-3.1.0.tar.gz) = 174758 bytes
+BLAKE2s (httpie-3.2.1.tar.gz) = 1698239ebbd3a7a9a0c77ccb9f80e024b8a892bad12d7adf00c5e57d9f72725a
+SHA512 (httpie-3.2.1.tar.gz) = eb61d60dd3a8e5bff3f84a51ec02521f06a0dc918a42e24d055294daf1a26abba55406d40d154380e91605d47754207b8678b52e63b855d5480de10b35944dda
+Size (httpie-3.2.1.tar.gz) = 200296 bytes



Home | Main Index | Thread Index | Old Index