pkgsrc/devel/py-requests/Makefile

25 lines
748 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.26 2017/04/04 12:42:23 adam Exp $
DISTNAME= requests-2.13.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel www
2016-06-08 19:49:19 +02:00
MASTER_SITES= ${MASTER_SITE_PYPI:=r/requests/}
MAINTAINER= imil@NetBSD.org
HOMEPAGE= http://docs.python-requests.org/en/latest/
COMMENT= HTTP library, written in Python, for human beings
LICENSE= apache-2.0
USE_LANGUAGES= c
REPLACE_PYTHON= requests/certs.py requests/packages/chardet/chardetect.py
Update py-requests to 2.8.1. 2.8.1 (2015-10-13) ++++++++++++++++++ **Bugfixes** - Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate bundle. - Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of ``ConnectionError`` - When using the PreparedRequest flow, requests will now correctly respect the ``json`` parameter. Broken in 2.8.0. - When using the PreparedRequest flow, requests will now correctly handle a Unicode-string method name on Python 2. Broken in 2.8.0. 2.8.0 (2015-10-05) ++++++++++++++++++ **Minor Improvements** (Backwards Compatible) - Requests now supports per-host proxies. This allows the ``proxies`` dictionary to have entries of the form ``{'<scheme>://<hostname>': '<proxy>'}``. Host-specific proxies will be used in preference to the previously-supported scheme-specific ones, but the previous syntax will continue to work. - ``Response.raise_for_status`` now prints the URL that failed as part of the exception message. - ``requests.utils.get_netrc_auth`` now takes an ``raise_errors`` kwarg, defaulting to ``False``. When ``True``, errors parsing ``.netrc`` files cause exceptions to be thrown. - Change to bundled projects import logic to make it easier to unbundle requests downstream. - Changed the default User-Agent string to avoid leaking data on Linux: now contains only the requests version. **Bugfixes** - The ``json`` parameter to ``post()`` and friends will now only be used if neither ``data`` nor ``files`` are present, consistent with the documentation. - We now ignore empty fields in the ``NO_PROXY`` enviroment variable. - Fixed problem where ``httplib.BadStatusLine`` would get raised if combining ``stream=True`` with ``contextlib.closing``. - Prevented bugs where we would attempt to return the same connection back to the connection pool twice when sending a Chunked body. - Miscellaneous minor internal changes. - Digest Auth support is now thread safe. **Updates** - Updated urllib3 to 1.12.
2015-11-06 22:42:14 +01:00
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
#BUILD_DEPENDS+= ${PYPKGPREFIX}-test-httpbin-[0-9]*:../../www/py-test-httpbin
do-test:
cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
Update py-requests to 2.8.1. 2.8.1 (2015-10-13) ++++++++++++++++++ **Bugfixes** - Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate bundle. - Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of ``ConnectionError`` - When using the PreparedRequest flow, requests will now correctly respect the ``json`` parameter. Broken in 2.8.0. - When using the PreparedRequest flow, requests will now correctly handle a Unicode-string method name on Python 2. Broken in 2.8.0. 2.8.0 (2015-10-05) ++++++++++++++++++ **Minor Improvements** (Backwards Compatible) - Requests now supports per-host proxies. This allows the ``proxies`` dictionary to have entries of the form ``{'<scheme>://<hostname>': '<proxy>'}``. Host-specific proxies will be used in preference to the previously-supported scheme-specific ones, but the previous syntax will continue to work. - ``Response.raise_for_status`` now prints the URL that failed as part of the exception message. - ``requests.utils.get_netrc_auth`` now takes an ``raise_errors`` kwarg, defaulting to ``False``. When ``True``, errors parsing ``.netrc`` files cause exceptions to be thrown. - Change to bundled projects import logic to make it easier to unbundle requests downstream. - Changed the default User-Agent string to avoid leaking data on Linux: now contains only the requests version. **Bugfixes** - The ``json`` parameter to ``post()`` and friends will now only be used if neither ``data`` nor ``files`` are present, consistent with the documentation. - We now ignore empty fields in the ``NO_PROXY`` enviroment variable. - Fixed problem where ``httplib.BadStatusLine`` would get raised if combining ``stream=True`` with ``contextlib.closing``. - Prevented bugs where we would attempt to return the same connection back to the connection pool twice when sending a Chunked body. - Miscellaneous minor internal changes. - Digest Auth support is now thread safe. **Updates** - Updated urllib3 to 1.12.
2015-11-06 22:42:14 +01:00
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"