Skip to content

Commit

Permalink
www/py-requests-cache: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Clean up RUN_DEPENDS: py-exceptiongroup is not needed anymore after py-cattrs 22.2.0 update
- Bump PORTREVISION for dependency and package change
  • Loading branch information
sunpoet committed May 7, 2023
1 parent 64ffca0 commit 4865fd0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions www/py-requests-cache/Makefile
@@ -1,5 +1,6 @@
PORTNAME= requests-cache
PORTVERSION= 0.9.6
PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -11,6 +12,7 @@ WWW= https://github.com/requests-cache/requests-cache
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.4:devel/py-appdirs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}attrs>=21.2:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cattrs>=1.8:devel/py-cattrs@${PY_FLAVOR} \
Expand All @@ -19,17 +21,11 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.4:devel/py-appdirs@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}urllib3>=1.25.5,1:net/py-urllib3@${PY_FLAVOR}

USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 31100
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}exceptiongroup>=1.0.0rc3:devel/py-exceptiongroup@${PY_FLAVOR}
.endif

do-test:
cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v

.include <bsd.port.post.mk>
.include <bsd.port.mk>

0 comments on commit 4865fd0

Please sign in to comment.