now that py-packaging 22.0 has been released with its own hand-written parser,

py-parsing is no longer part of the requirements for MODPY_PYBUILD ports,
so change it to a standard MODPY_PYBUILD port and drop the BDEP on pip
This commit is contained in:
sthen 2022-12-08 10:47:39 +00:00
parent 019ca23a5e
commit aea776a81a
1 changed files with 14 additions and 26 deletions

View File

@ -1,36 +1,24 @@
COMMENT = Python parsing module
COMMENT= Python parsing module
MODPY_EGG_VERSION = 3.0.9
REVISION = 2
DISTNAME = pyparsing-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME:S/py/py-/}
CATEGORIES = devel
MODPY_EGG_VERSION= 3.0.9
REVISION= 2
DISTNAME= pyparsing-${MODPY_EGG_VERSION}
PKGNAME= ${DISTNAME:S/py/py-/}
CATEGORIES= devel
HOMEPAGE = https://github.com/pyparsing/pyparsing/
HOMEPAGE= https://github.com/pyparsing/pyparsing/
# MIT
PERMIT_PACKAGE = Yes
PERMIT_PACKAGE= Yes
MODULES = lang/python
MODPY_PI = Yes
MODULES= lang/python
MODPY_PI= Yes
MODPY_PYBUILD= flit_core
FLAVORS = python3
FLAVOR = python3
FLAVORS= python3
FLAVOR= python3
# test_diagram needs railroad
MODPY_PYTEST_ARGS = --ignore tests/test_diagram.py tests
# can't use MODPY_PYBUILD=flit_core because that pulls in py-build
# which depends on this.
BUILD_DEPENDS += devel/py-flit_core${MODPY_FLAVOR} \
devel/py-installer${MODPY_FLAVOR} \
devel/py-pip${MODPY_FLAVOR}
do-build:
cd ${WRKSRC} && pip wheel -v --no-index --no-cache --no-deps --no-build-isolation .
do-install:
${INSTALL_DATA_DIR} ${WRKINST}${MODPY_LIBDIR}; \
${MODPY_BIN} -m installer -d ${WRKINST} ${WRKSRC}/*.whl
MODPY_PYTEST_ARGS= --ignore tests/test_diagram.py tests
.include <bsd.port.mk>