freebsd-ports/www/py-aiohttp/Makefile
Kubilay Kocak fd863091ec www/py-aiohttp: Update to 3.5.4
- Drop use of cython, only needed for 'from git' builds
  - Document necessary but not-yet-ported TEST_DEPENDS for our future selves
    and potential contributors to see.
  - Update port metadata to match upstream: pkg-desc, WWW URL, LICENSE, COMMENT
  - Patch setup.py: Add necessary but missing entries to tests_require. For the
    ones not yet ported, they're fetched from PyPI via setuptools when correctly
    declared. Move pytest min version requirement from pytest.ini to
    tests_require where it belongs, so it can be parsed and the right version
    can be fetched, instead of just failing if its not the required version.
  - Patch pytest.ini: Strip --cov from pytest args. We don't care about coverage
    downstream, and it shouldnt be a compulsory (tests_require) dependency, but
    instead an extras_require, so dont add it to TEST_DEPENDS even though it is
    a port.

Changelog:

  https://github.com/aio-libs/aiohttp/blob/v3.5.4/CHANGES.rst

PR:	228575
2019-03-26 13:38:59 +00:00

51 lines
2 KiB
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= aiohttp
PORTVERSION= 3.5.4
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Async http client/server framework (asyncio)
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=17.3.0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}chardet>=2.0:textproc/py-chardet@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}multidict>=4.0:www/py-multidict@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}async_timeout>=3.0:devel/py-async_timeout@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yarl>=1.0:www/py-yarl@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.8.2:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}async_generator>0:devel/py-async_generator@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}gunicorn>0:www/py-gunicorn@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}aiodns>0:dns/py-aiodns@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR}
# cryptography is only needed here until trustme is ported (which depends on it)
# to be ported ${PYTHON_PKGNAMEPREFIX}brotlypy>0:archivers/py-brotlipy@${PY_FLAVOR}
# to be ported ${PYTHON_PKGNAMEPREFIX}trustme>0:security/py-trustme@${PY_FLAVOR}
# Actually 3.5.3+
USES= python:3.5+
USE_PYTHON= autoplist distutils
.include <bsd.port.pre.mk>
.if ${PYTHON_VER} < 3.7
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}idna_ssl>=1.0:dns/py-idna_ssl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.6.5:devel/py-typing-extensions@${PY_FLAVOR}
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/aiohttp/*.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>