2014-06-20 12:54:09 +02:00
|
|
|
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= aiohttp
|
2020-10-22 19:56:17 +02:00
|
|
|
PORTVERSION= 3.6.2
|
2014-06-20 12:54:09 +02:00
|
|
|
CATEGORIES= www python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
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 14:38:59 +01:00
|
|
|
COMMENT= Async http client/server framework (asyncio)
|
2014-06-20 12:54:09 +02:00
|
|
|
|
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 14:38:59 +01:00
|
|
|
LICENSE= APACHE20
|
2014-07-29 10:43:49 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
|
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 14:38:59 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=17.3.0:devel/py-attrs@${PY_FLAVOR} \
|
2020-10-22 19:56:17 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}chardet>=2.0<4.0:textproc/py-chardet@${PY_FLAVOR} \
|
2020-10-22 20:03:18 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}multidict>=4.5:www/py-multidict@${PY_FLAVOR} \
|
2020-10-22 19:56:17 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}async_timeout>=3.0<4.0:devel/py-async_timeout@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}yarl>=1.0<2.0:www/py-yarl@${PY_FLAVOR}
|
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 14:38:59 +01:00
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.8.2:devel/py-pytest@${PY_FLAVOR} \
|
2018-06-20 19:05:41 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \
|
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 14:38:59 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \
|
2018-06-20 19:05:41 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}async_generator>0:devel/py-async_generator@${PY_FLAVOR} \
|
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 14:38:59 +01:00
|
|
|
${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+
|
2020-10-19 18:30:28 +02:00
|
|
|
USE_PYTHON= autoplist distutils cython
|
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 14:38:59 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2014-06-20 13:21:45 +02:00
|
|
|
|
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 14:38:59 +01:00
|
|
|
.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
|
2014-06-20 12:54:09 +02:00
|
|
|
|
2020-10-19 18:30:28 +02:00
|
|
|
pre-configure:
|
|
|
|
@${TOUCH} ${WRKSRC}/aiohttp/*.pyx
|
|
|
|
|
2016-03-05 12:00:28 +01:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/aiohttp/*.so
|
2014-06-20 12:54:09 +02:00
|
|
|
|
2016-03-05 12:00:28 +01:00
|
|
|
do-test:
|
2015-02-25 06:37:41 +01:00
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
2014-06-20 12:54:09 +02:00
|
|
|
|
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 14:38:59 +01:00
|
|
|
.include <bsd.port.post.mk>
|