Skip to content

Commit

Permalink
devel/py-pyproject-fmt: 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 c5241d3 commit 7d376ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 56 deletions.
9 changes: 4 additions & 5 deletions devel/py-pyproject-fmt/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORTNAME= pyproject-fmt
PORTVERSION= 0.5.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -12,11 +13,13 @@ WWW= https://github.com/tox-dev/pyproject-fmt
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0.2:devel/py-hatch-vcs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hatchling>=1.11.1:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tomlkit>=0.11.6:textproc/py-tomlkit@${PY_FLAVOR}

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

NO_ARCH= yes

Expand All @@ -26,8 +29,4 @@ NO_ARCH= yes
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.4:devel/py-typing-extensions@${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>
51 changes: 0 additions & 51 deletions devel/py-pyproject-fmt/files/setup.py

This file was deleted.

0 comments on commit 7d376ca

Please sign in to comment.