diff --git a/devel/py-testpath/Makefile b/devel/py-testpath/Makefile index c0febb10324e..93ec44b1b3fd 100644 --- a/devel/py-testpath/Makefile +++ b/devel/py-testpath/Makefile @@ -1,5 +1,5 @@ PORTNAME= testpath -PORTVERSION= 0.5.0 +PORTVERSION= 0.6.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -10,14 +10,17 @@ COMMENT= Test utilities for Python code working with files and commands LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR} USES= python:3.6+ USE_PYTHON= autoplist distutils NO_ARCH= yes +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + do-test: - @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYTHON_VER}) + cd ${WRKSRC} && ${SETENV} ${PYTHON_CMD} -m pytest -rs -v .include diff --git a/devel/py-testpath/distinfo b/devel/py-testpath/distinfo index bbdb81b99dc5..7c866a622f41 100644 --- a/devel/py-testpath/distinfo +++ b/devel/py-testpath/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1624630220 -SHA256 (testpath-0.5.0.tar.gz) = 1acf7a0bcd3004ae8357409fc33751e16d37ccc650921da1094a86581ad1e417 -SIZE (testpath-0.5.0.tar.gz) = 94021 +TIMESTAMP = 1649423978 +SHA256 (testpath-0.6.0.tar.gz) = 2f1b97e6442c02681ebe01bd84f531028a7caea1af3825000f52345c30285e0f +SIZE (testpath-0.6.0.tar.gz) = 93348 diff --git a/devel/py-testpath/files/setup.py b/devel/py-testpath/files/setup.py new file mode 100644 index 000000000000..b7ed5d66b73c --- /dev/null +++ b/devel/py-testpath/files/setup.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# setup.py generated by flit for tools that don't yet use PEP 517 + +from distutils.core import setup + +packages = \ +['testpath'] + +package_data = \ +{'': ['*']} + +extras_require = \ +{'test': ['pytest']} + +setup(name='testpath', + version='%%PORTVERSION%%', + description='Test utilities for code working with files and commands', + author=None, + author_email='Jupyter Development Team ', + url=None, + packages=packages, + package_data=package_data, + extras_require=extras_require, + python_requires='>= 3.5', + )