324bbdbdca
1.0.2 Switch from travis to github actions This will be the last release to support Python 2.6, 2.7 or 3.6
29 lines
1,023 B
Makefile
29 lines
1,023 B
Makefile
# $NetBSD: Makefile,v 1.10 2022/07/11 06:12:03 adam Exp $
|
|
|
|
DISTNAME= pytest-httpbin-1.0.2
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
|
|
CATEGORIES= www python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-httpbin/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/kevin1024/pytest-httpbin
|
|
COMMENT= Easily test your HTTP library against a local copy of httpbin
|
|
LICENSE= mit
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-httpbin-[0-9]*:../../www/py-httpbin
|
|
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
# py-requests uses py-test-httpbin for testing, avoid circular reference
|
|
#TEST_DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-httpbin
|
|
|
|
# This is not enough; package needs to be installed for testing
|
|
#TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
|
|
do-test:
|
|
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|