Skip to content

Commit

Permalink
textproc/py-tomli: 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 626d176 commit 9bb250c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
9 changes: 5 additions & 4 deletions textproc/py-tomli/Makefile
@@ -1,5 +1,6 @@
PORTNAME= tomli
PORTVERSION= 2.0.1
PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -11,12 +12,12 @@ WWW= https://github.com/hukkin/tomli
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

post-patch:
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
PEP517_BUILD_CMD= ${PYTHON_CMD} -m flit_core.wheel
PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2.0<4:devel/py-flit-core@${PY_FLAVOR}

.include <bsd.port.mk>
25 changes: 0 additions & 25 deletions textproc/py-tomli/files/setup.py

This file was deleted.

0 comments on commit 9bb250c

Please sign in to comment.