Index: head/www/py-requests/Makefile =================================================================== --- head/www/py-requests/Makefile (revision 476583) +++ head/www/py-requests/Makefile (revision 476584) @@ -1,38 +1,39 @@ # Created by: Olivier Duchateau # $FreeBSD$ PORTNAME= requests PORTVERSION= 2.18.4 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= koobs@FreeBSD.org COMMENT= HTTP library written in Python for human beings LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=3.0.2:textproc/py-chardet@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}idna>=2.5:dns/py-idna@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}urllib3>=1.21.1:net/py-urllib3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}certifi>=2017.4.17:security/py-certifi@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.8.0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} # Actually 2.6-2.7,3.3+ USES= python USE_PYTHON= autoplist concurrent distutils CONFLICTS_INSTALL= py*-requests1-* NO_ARCH= yes # Automated tests failinng due to httpbin issue # https://github.com/kennethreitz/httpbin/issues/403 do-test: @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include Index: head/www/py-requests/files/patch-setup.py =================================================================== --- head/www/py-requests/files/patch-setup.py (revision 476583) +++ head/www/py-requests/files/patch-setup.py (revision 476584) @@ -1,13 +1,21 @@ -# pytest-cov and its dependencies are not compulsory +# 1: Backport bumping idna max version +# https://github.com/requests/requests/commit/991e8b76b7a9d21f698b24fa0058d3d5968721bc +# 2: pytest-cov and its dependencies are not compulsory ---- setup.py.orig 2018-02-24 01:49:05 UTC +--- setup.py.orig 2017-08-15 13:19:39 UTC +++ setup.py -@@ -48,7 +48,7 @@ requires = [ +@@ -43,12 +43,12 @@ packages = ['requests'] + + requires = [ + 'chardet>=3.0.2,<3.1.0', +- 'idna>=2.5,<2.7', ++ 'idna>=2.5,<2.8', + 'urllib3>=1.21.1,<1.23', 'certifi>=2017.4.17' ] -test_requirements = ['pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7', 'pytest>=2.8.0'] +test_requirements = ['pytest-httpbin==0.0.7', 'pytest-mock', 'pytest-xdist', 'PySocks>=1.5.6, !=1.5.7', 'pytest>=2.8.0'] about = {} with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f: