1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/www/py-requests/Makefile
Kubilay Kocak aaaa0f6abf devel/py-requests: Bump pinned idna dependency version
py-idna was updated to 2.7 in ports r476560. py-requests had its idna dependency
pinned to <2.7.

That broke all py-requests dependents.

This change backports part of an upstream commit [1] that bumped the dependency.

Whisper of a dream: It would be really cool if *_DEPENDS could declare multiple
versions in its scheme. We'd pick up these issues much earlier, and be able to
declare dependencies more accurately.</pony>

[1] 991e8b76b7

PR:		230430
Reported by:	<Trond Endrestol ximalas info>
2018-08-07 09:11:28 +00:00

40 lines
1.2 KiB
Makefile

# Created by: Olivier Duchateau <duchateau.olivier@gmail.com>
# $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 <bsd.port.mk>