update to py-aiohttp-3.7.4, patch to permit newer chardet,

add missing python3 FLAVOR/FLAVORS
This commit is contained in:
sthen 2021-03-01 16:45:48 +00:00
parent 181f27e34b
commit ed751f7661
4 changed files with 30 additions and 11 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.14 2021/02/23 19:39:47 sthen Exp $
# $OpenBSD: Makefile,v 1.15 2021/03/01 16:45:48 sthen Exp $
COMMENT = http client/server for asyncio
MODPY_EGG_VERSION = 3.7.3
MODPY_EGG_VERSION = 3.7.4
DISTNAME = aiohttp-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
@ -14,9 +14,12 @@ PERMIT_PACKAGE = Yes
WANTLIB += ${MODPY_WANTLIB} pthread
MODULES = lang/python
FLAVOR = python3
FLAVORS = python3
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
# XXX some tests fail as we don't have ports for re_assert and async_generator
MODPY_PYTEST = Yes
RUN_DEPENDS = devel/py-async-timeout \
@ -24,10 +27,7 @@ RUN_DEPENDS = devel/py-async-timeout \
devel/py-typing-extensions${MODPY_FLAVOR}>=3.6.5 \
textproc/py-chardet${MODPY_FLAVOR}>=2.0 \
www/py-multidict${MODPY_FLAVOR}>=4.5 \
www/py-yarl>=1.0
# XXX: needs ports for re_assert and async_generator
NO_TEST = Yes
www/py-yarl${MODPY_FLAVOR}
TEST_DEPENDS = devel/py-freezegun${MODPY_FLAVOR} \
devel/py-test${MODPY_FLAVOR} \
@ -35,7 +35,7 @@ TEST_DEPENDS = devel/py-freezegun${MODPY_FLAVOR} \
devel/py-test-xdist${MODPY_FLAVOR} \
www/py-gunicorn${MODPY_FLAVOR}
# XXX: leftovers in version 3.7.3
# junk piles seen in pypi distribution of 3.7.3, 3.7.4
post-extract:
rm -rf ${WRKSRC}/aiohttp/.hash

View File

@ -1,2 +1,2 @@
SHA256 (aiohttp-3.7.3.tar.gz) = nBqBrwZ+ciYcnL4z6nkok+g7xqqYe/vW/cHl57Ind8Q=
SIZE (aiohttp-3.7.3.tar.gz) = 1113127
SHA256 (aiohttp-3.7.4.tar.gz) = XYTsxzFB0KDWHs4HQrt/9XUbBlfauEBfiZ086xBMx94=
SIZE (aiohttp-3.7.4.tar.gz) = 1114533

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-setup_py,v 1.1 2021/03/01 16:45:48 sthen Exp $
From b0ed732d0a637e43c72bb1a777d02776cde37376 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 11 Dec 2020 10:24:17 +0200
Subject: [PATCH] Bump chardet from 3.0.4 to 4.0.0 (#5333)
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -66,7 +66,7 @@ except IndexError:
install_requires = [
"attrs>=17.3.0",
- "chardet>=2.0,<4.0",
+ "chardet>=2.0,<5.0",
"multidict>=4.5,<7.0",
"async_timeout>=3.0,<4.0",
"yarl>=1.0,<2.0",

View File

@ -1,5 +1,5 @@
@comment $OpenBSD: PLIST,v 1.4 2021/01/04 14:06:39 sthen Exp $
@pkgpath www/${MODPY_PY_PREFIX}aiohttp
@comment $OpenBSD: PLIST,v 1.5 2021/03/01 16:45:49 sthen Exp $
@pkgpath www/py-aiohttp
lib/python${MODPY_VERSION}/site-packages/aiohttp/
lib/python${MODPY_VERSION}/site-packages/aiohttp-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/aiohttp-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO