freebsd-ports/devel/py-path.py/Makefile
Jan Beich 240e158566 devel/py-path.py: update to 11.5.2
- Connect tests to the framework
- Define LICENSE_FILE as MIT has many styles
- Skip later versions due to lack of Python 2 support
- Take maintainership

Changes:	https://github.com/jaraco/path.py/compare/8.1.2...11.5.2
PR:		241112
Approved by:	wg (maintainer)
MFH:		2019Q4 (www/py-flexget stability fix)
2019-10-07 13:14:52 +00:00

33 lines
875 B
Makefile

# $FreeBSD$
PORTNAME= path.py
PORTVERSION= 11.5.2
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Module wrapper for os.path
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.5:devel/py-importlib-metadata@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-flake8>0:devel/py-pytest-flake8@${PY_FLAVOR}
NO_ARCH= yes
USES= python
USE_GITHUB= yes
USE_PYTHON= autoplist distutils
GH_ACCOUNT= jaraco
PORTSCOUT= limit:^11\. # ignore py3-only for now
post-patch:
@${REINPLACE_CMD} -e '/setuptools_scm/d' \
-e 's/use_scm_version=True/version="${PORTVERSION}"/' \
${WRKSRC}/setup.*
do-test:
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
.include <bsd.port.mk>