Skip to content

Commit

Permalink
devel/py-pyproject_hooks: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Add build for all Python flavors/versions (USE_PYTHON=allflavors)
- Bump PORTREVISION for dependency and package change
  • Loading branch information
sunpoet committed Feb 12, 2023
1 parent 4a8c75a commit f2e8fb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 34 deletions.
11 changes: 6 additions & 5 deletions devel/py-pyproject_hooks/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pyproject_hooks
PORTVERSION= 1.0.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -11,18 +12,18 @@ WWW= https://github.com/pypa/pyproject-hooks
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

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

NO_ARCH= yes

PEP517_BUILD_CMD= ${PYTHON_CMD} -m flit_core.wheel
PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR}

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 31100
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.1.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>
29 changes: 0 additions & 29 deletions devel/py-pyproject_hooks/files/setup.py

This file was deleted.

0 comments on commit f2e8fb6

Please sign in to comment.