Skip to content

Commit

Permalink
devel/py-poetry: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for dependency and package change
  • Loading branch information
sunpoet committed Mar 21, 2023
1 parent 14b707d commit 5de54b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 104 deletions.
9 changes: 5 additions & 4 deletions devel/py-poetry/Makefile
@@ -1,5 +1,6 @@
PORTNAME= poetry
PORTVERSION= 1.3.2
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -12,6 +13,7 @@ WWW= https://python-poetry.org/ \
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.1.0:devel/py-poetry-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}CacheControl>=0.12.9<0.13.0:www/py-cachecontrol@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cleo>=2.0.0<3.0.0:devel/py-cleo@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}crashtest>=0.4.1<0.5.0:devel/py-crashtest@${PY_FLAVOR} \
Expand All @@ -36,10 +38,12 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}CacheControl>=0.12.9<0.13.0:www/py-cachecont
${PYTHON_PKGNAMEPREFIX}virtualenv>=20.4.3<21.0.0:devel/py-virtualenv@${PY_FLAVOR}

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

NO_ARCH= yes

BINARY_ALIAS= git=false

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 30800
Expand All @@ -54,7 +58,4 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4.4:devel/py-importlib-
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=2.0.1<3.0.0:textproc/py-tomli@${PY_FLAVOR}
.endif

post-patch:
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py

.include <bsd.port.post.mk>
100 changes: 0 additions & 100 deletions devel/py-poetry/files/setup.py

This file was deleted.

0 comments on commit 5de54b1

Please sign in to comment.