while updating py-attrs I noticed that py-aiohttp isn't really compatible
with python 3.8. So let's update to the latest version to fix this.
Some other changes.
Update the TDEPs based on what's in tree, but leave NO_TEST on given the
missing two TDEPs.
Also this version seems to have left a .hash dir in the distfile, so just
clean it post-extract and mark it with XXX so it can be cleaned up in a
future release.
I've lightly tested the consumers of aiohttp on amd64.
ok?
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/py-aiohttp/Makefile,v
retrieving revision 1.12
diff -u -p -u -r1.12 Makefile
--- Makefile 4 Jan 2021 14:06:39 -0000 1.12
+++ Makefile 19 Feb 2021 02:15:10 -0000
@@ -2,13 +2,13 @@
COMMENT = http client/server for asyncio
-MODPY_EGG_VERSION = 3.5.4
+MODPY_EGG_VERSION = 3.7.3
DISTNAME = aiohttp-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
+
CATEGORIES = www
-REVISION = 4
-# Apache2
+# Apache 2.0
PERMIT_PACKAGE = Yes
WANTLIB += ${MODPY_WANTLIB} pthread
@@ -17,19 +17,28 @@ MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
+MODPY_PYTEST = Yes
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
-RUN_DEPENDS = devel/py-attrs${MODPY_FLAVOR} \
- textproc/py-chardet${MODPY_FLAVOR} \
-# these are py3 only
-RUN_DEPENDS += devel/py-async-timeout \
- www/py-multidict${MODPY_FLAVOR} \
- www/py-yarl
-TEST_DEPENDS = devel/py-test${MODPY_FLAVOR} \
+RUN_DEPENDS = devel/py-async-timeout \
+ devel/py-attrs${MODPY_FLAVOR}>=17.3.0 \
+ 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
+
+TEST_DEPENDS = devel/py-freezegun${MODPY_FLAVOR} \
+ devel/py-test${MODPY_FLAVOR} \
+ devel/py-test-timeout${MODPY_FLAVOR} \
+ devel/py-test-xdist${MODPY_FLAVOR} \
www/py-gunicorn${MODPY_FLAVOR}
-# we don't have any port for pytest-{xdist,timeout}
-NO_TEST = Yes
+# XXX: leftovers in version 3.7.3
+post-extract:
+ rm -rf ${WRKSRC}/aiohttp/.hash
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/py-aiohttp/distinfo,v
retrieving revision 1.3
diff -u -p -u -r1.3 distinfo
--- distinfo 24 Apr 2019 19:00:34 -0000 1.3
+++ distinfo 19 Feb 2021 02:15:10 -0000
@@ -1,2 +1,2 @@
-SHA256 (aiohttp-3.5.4.tar.gz) = nEyD9PoZODd9oyvC1ZN5Alzu7o4kuJ9y/LzNjKItyb8=
-SIZE (aiohttp-3.5.4.tar.gz) = 1097647
+SHA256 (aiohttp-3.7.3.tar.gz) = nBqBrwZ+ciYcnL4z6nkok+g7xqqYe/vW/cHl57Ind8Q=
+SIZE (aiohttp-3.7.3.tar.gz) = 1113127