Skip to content

Commit

Permalink
devel/py-hatchling: 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 3911e01 commit c05aee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 69 deletions.
8 changes: 3 additions & 5 deletions devel/py-hatchling/Makefile
@@ -1,5 +1,6 @@
PORTNAME= hatchling
PORTVERSION= 1.12.2
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -11,13 +12,14 @@ WWW= https://github.com/pypa/hatch/tree/master/backend
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}editables>=0.3:devel/py-editables@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pathspec>=0.10.1:devel/py-pathspec@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pluggy>=1.0.0:devel/py-pluggy@${PY_FLAVOR}

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

NO_ARCH= yes

Expand All @@ -31,8 +33,4 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-me
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.2.2:textproc/py-tomli@${PY_FLAVOR}
.endif

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

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

This file was deleted.

0 comments on commit c05aee5

Please sign in to comment.