pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-httpie



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Apr  6 15:28:40 UTC 2021

Modified Files:
        pkgsrc/www/py-httpie: ALTERNATIVES Makefile PLIST distinfo

Log Message:
py-httpie: updated to 2.4.0

2.4.0 (2021-02-06)

Added support for --session cookie expiration based on Set-Cookie: max-age=<n>.
Show a --check-status warning with --quiet as well, not only when the output is redirected.
Fixed upload with --session
Fixed a missing blank line between request and response

2.3.0 (2020-10-25)

Added support for streamed uploads
Added support for multipart upload streaming
Added support for body-from-file upload streaming (http pie.dev/post @file).
Added --chunked to enable chunked transfer encoding
Added --multipart to allow multipart/form-data encoding for non-file --form requests as well.
Added support for preserving field order in multipart requests
Added --boundary to allow a custom boundary string for multipart/form-data requests.
Added support for combining cookies specified on the CLI and in a session file
Added out of the box SOCKS support with no extra installation
Added --quiet, -q flag to enforce silent behaviour.
Fixed the handling of invalid expires dates in Set-Cookie headers
Removed Tox testing entirely

2.2.0 (2020-06-18)

Added support for custom content types for uploaded files
Added support for $XDG_CONFIG_HOME
Added support for Set-Cookie-triggered cookie expiration
Added --format-options to allow disabling sorting, etc.
Added --sorted and --unsorted shortcuts for (un)setting all sorting-related --format-options.
Added --ciphers to allow configuring OpenSSL ciphers
Added netrc support for auth plugins. Enabled for --auth-type=basic and digest, 3rd parties may opt in
Fixed built-in plugins-related circular imports

2.1.0 (2020-04-18)

Added --path-as-is to bypass dot segment (/../ or /./) URL squashing
Changed the default Accept header value for JSON requests from application/json, */* to application/json, */*;q=0.5 to clearly indicate preference
Fixed --form file upload mixed with redirected stdin error handling

2.0.0 (2020-01-12)

Removed Python 2.7 support (EOL Jan 2020).
Added --offline to allow building an HTTP request and printing it but not actually sending it over the network.
Replaced the old collect-all-then-process handling of HTTP communication with one-by-one processing of each HTTP request or response as they become available. This means that you can see headers 
immediately, see what is being sent even if the request fails, etc.
Removed automatic config file creation to avoid concurrency issues.
Removed the default 30-second connection --timeout limit.
Removed Python’s default limit of 100 response headers.
Added --max-headers to allow setting the max header limit.
Added --compress to allow request body compression.
Added --ignore-netrc to allow bypassing credentials from .netrc.
Added https alias command with https:// as the default scheme.
Added $ALL_PROXY documentation.
Added type annotations throughout the codebase.
Added tests/ to the PyPi package for the convenience of downstream package maintainers.
Fixed an error when stdin was a closed fd.
Improved --debug output formatting.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/py-httpie/ALTERNATIVES
cvs rdiff -u -r1.8 -r1.9 pkgsrc/www/py-httpie/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/py-httpie/PLIST
cvs rdiff -u -r1.9 -r1.10 pkgsrc/www/py-httpie/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-httpie/ALTERNATIVES
diff -u pkgsrc/www/py-httpie/ALTERNATIVES:1.1 pkgsrc/www/py-httpie/ALTERNATIVES:1.2
--- pkgsrc/www/py-httpie/ALTERNATIVES:1.1       Wed Nov 21 17:18:04 2018
+++ pkgsrc/www/py-httpie/ALTERNATIVES   Tue Apr  6 15:28:40 2021
@@ -1 +1,2 @@
 bin/http @PREFIX@/bin/http-@PYVERSSUFFIX@
+bin/https @PREFIX@/bin/https-@PYVERSSUFFIX@

Index: pkgsrc/www/py-httpie/Makefile
diff -u pkgsrc/www/py-httpie/Makefile:1.8 pkgsrc/www/py-httpie/Makefile:1.9
--- pkgsrc/www/py-httpie/Makefile:1.8   Tue Aug 27 06:01:23 2019
+++ pkgsrc/www/py-httpie/Makefile       Tue Apr  6 15:28:40 2021
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2019/08/27 06:01:23 adam Exp $
+# $NetBSD: Makefile,v 1.9 2021/04/06 15:28:40 adam Exp $
 
-DISTNAME=      httpie-1.0.3
+DISTNAME=      httpie-2.4.0
 PKGNAME=       ${PYPKGPREFIX}-${EGG_NAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/httpie/}
@@ -13,14 +13,22 @@ LICENSE=    original-bsd
 DEPENDS+=      ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses
 DEPENDS+=      ${PYPKGPREFIX}-pygments>=2.1.3:../../textproc/py-pygments
 DEPENDS+=      ${PYPKGPREFIX}-requests>=2.18.4:../../devel/py-requests
-# Tests are not included as of 1.0.3
-#TEST_DEPENDS+=        ${PYPKGPREFIX}-test-httpbin-[0-9]*:../../www/py-test-httpbin
+DEPENDS+=      ${PYPKGPREFIX}-requests-toolbelt>=0.9.1:../../devel/py-requests-toolbelt
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-httpbin-[0-9]*:../../www/py-test-httpbin
 
 USE_LANGUAGES= # none
 
+PYSETUPTESTTARGET=     pytest
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 post-install:
+.for bin in http https
        cd ${DESTDIR}${PREFIX}/bin && \
-       ${MV} http http-${PYVERSSUFFIX} || ${TRUE}
+       ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
+.endfor
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/py-httpie/PLIST
diff -u pkgsrc/www/py-httpie/PLIST:1.4 pkgsrc/www/py-httpie/PLIST:1.5
--- pkgsrc/www/py-httpie/PLIST:1.4      Wed Nov 21 17:18:04 2018
+++ pkgsrc/www/py-httpie/PLIST  Tue Apr  6 15:28:40 2021
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.4 2018/11/21 17:18:04 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2021/04/06 15:28:40 adam Exp $
 bin/http-${PYVERSSUFFIX}
+bin/https-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -12,9 +13,30 @@ ${PYSITELIB}/httpie/__init__.pyo
 ${PYSITELIB}/httpie/__main__.py
 ${PYSITELIB}/httpie/__main__.pyc
 ${PYSITELIB}/httpie/__main__.pyo
-${PYSITELIB}/httpie/cli.py
-${PYSITELIB}/httpie/cli.pyc
-${PYSITELIB}/httpie/cli.pyo
+${PYSITELIB}/httpie/cli/__init__.py
+${PYSITELIB}/httpie/cli/__init__.pyc
+${PYSITELIB}/httpie/cli/__init__.pyo
+${PYSITELIB}/httpie/cli/argparser.py
+${PYSITELIB}/httpie/cli/argparser.pyc
+${PYSITELIB}/httpie/cli/argparser.pyo
+${PYSITELIB}/httpie/cli/argtypes.py
+${PYSITELIB}/httpie/cli/argtypes.pyc
+${PYSITELIB}/httpie/cli/argtypes.pyo
+${PYSITELIB}/httpie/cli/constants.py
+${PYSITELIB}/httpie/cli/constants.pyc
+${PYSITELIB}/httpie/cli/constants.pyo
+${PYSITELIB}/httpie/cli/definition.py
+${PYSITELIB}/httpie/cli/definition.pyc
+${PYSITELIB}/httpie/cli/definition.pyo
+${PYSITELIB}/httpie/cli/dicts.py
+${PYSITELIB}/httpie/cli/dicts.pyc
+${PYSITELIB}/httpie/cli/dicts.pyo
+${PYSITELIB}/httpie/cli/exceptions.py
+${PYSITELIB}/httpie/cli/exceptions.pyc
+${PYSITELIB}/httpie/cli/exceptions.pyo
+${PYSITELIB}/httpie/cli/requestitems.py
+${PYSITELIB}/httpie/cli/requestitems.pyc
+${PYSITELIB}/httpie/cli/requestitems.pyo
 ${PYSITELIB}/httpie/client.py
 ${PYSITELIB}/httpie/client.pyc
 ${PYSITELIB}/httpie/client.pyo
@@ -33,9 +55,6 @@ ${PYSITELIB}/httpie/core.pyo
 ${PYSITELIB}/httpie/downloads.py
 ${PYSITELIB}/httpie/downloads.pyc
 ${PYSITELIB}/httpie/downloads.pyo
-${PYSITELIB}/httpie/input.py
-${PYSITELIB}/httpie/input.pyc
-${PYSITELIB}/httpie/input.pyo
 ${PYSITELIB}/httpie/models.py
 ${PYSITELIB}/httpie/models.pyc
 ${PYSITELIB}/httpie/models.pyo
@@ -60,6 +79,9 @@ ${PYSITELIB}/httpie/output/processing.py
 ${PYSITELIB}/httpie/output/streams.py
 ${PYSITELIB}/httpie/output/streams.pyc
 ${PYSITELIB}/httpie/output/streams.pyo
+${PYSITELIB}/httpie/output/writer.py
+${PYSITELIB}/httpie/output/writer.pyc
+${PYSITELIB}/httpie/output/writer.pyo
 ${PYSITELIB}/httpie/plugins/__init__.py
 ${PYSITELIB}/httpie/plugins/__init__.pyc
 ${PYSITELIB}/httpie/plugins/__init__.pyo
@@ -72,9 +94,21 @@ ${PYSITELIB}/httpie/plugins/builtin.pyo
 ${PYSITELIB}/httpie/plugins/manager.py
 ${PYSITELIB}/httpie/plugins/manager.pyc
 ${PYSITELIB}/httpie/plugins/manager.pyo
+${PYSITELIB}/httpie/plugins/registry.py
+${PYSITELIB}/httpie/plugins/registry.pyc
+${PYSITELIB}/httpie/plugins/registry.pyo
 ${PYSITELIB}/httpie/sessions.py
 ${PYSITELIB}/httpie/sessions.pyc
 ${PYSITELIB}/httpie/sessions.pyo
+${PYSITELIB}/httpie/ssl.py
+${PYSITELIB}/httpie/ssl.pyc
+${PYSITELIB}/httpie/ssl.pyo
+${PYSITELIB}/httpie/status.py
+${PYSITELIB}/httpie/status.pyc
+${PYSITELIB}/httpie/status.pyo
+${PYSITELIB}/httpie/uploads.py
+${PYSITELIB}/httpie/uploads.pyc
+${PYSITELIB}/httpie/uploads.pyo
 ${PYSITELIB}/httpie/utils.py
 ${PYSITELIB}/httpie/utils.pyc
 ${PYSITELIB}/httpie/utils.pyo

Index: pkgsrc/www/py-httpie/distinfo
diff -u pkgsrc/www/py-httpie/distinfo:1.9 pkgsrc/www/py-httpie/distinfo:1.10
--- pkgsrc/www/py-httpie/distinfo:1.9   Tue Aug 27 06:01:23 2019
+++ pkgsrc/www/py-httpie/distinfo       Tue Apr  6 15:28:40 2021
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.9 2019/08/27 06:01:23 adam Exp $
+$NetBSD: distinfo,v 1.10 2021/04/06 15:28:40 adam Exp $
 
-SHA1 (httpie-1.0.3.tar.gz) = 476fde8aa1827f7dd65c3a114e80023450df0bff
-RMD160 (httpie-1.0.3.tar.gz) = ce5d7149dcca76a93c8f4d9a8d19c7560b8463ca
-SHA512 (httpie-1.0.3.tar.gz) = b51779e0ec8f24108ee3f4bf690dc9dfddafff42509d1aa3d13ac12d65a93e02aad9644dc10134ebdbebf949b250cb288650a4dad3d382143e9ad3b9b0ac8c16
-Size (httpie-1.0.3.tar.gz) = 86725 bytes
+SHA1 (httpie-2.4.0.tar.gz) = 7cf8ab6fce1923d65d00082abb0f5df79350ea73
+RMD160 (httpie-2.4.0.tar.gz) = d4a19862cd1d40ffe99d0dfef4858d5ec47ae9ed
+SHA512 (httpie-2.4.0.tar.gz) = ebe5754df7859479e5f10bb31b702a2b91c8efffbb7438564343ecb478b5e1c13d4643a3f087a693749e84d5830bb346ba2830847f00b8ee2c3e2467bdcb2e42
+Size (httpie-2.4.0.tar.gz) = 220601 bytes



Home | Main Index | Thread Index | Old Index