pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-virtualenv20: add test dependencies



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Fri Mar 4 23:42:04 2022 +0100
Changeset:	fac271fd0bd025cda7690f877b99112fa9250322

Modified Files:
	py-virtualenv20/Makefile
	py-virtualenv20/distinfo

Log Message:
py-virtualenv20: add test dependencies

disable python 2.7 support, dependencies do not support it

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fac271fd0bd025cda7690f877b99112fa9250322

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-virtualenv20/Makefile | 41 +++++++++++++++++++++++++++--------------
 py-virtualenv20/distinfo |  2 +-
 2 files changed, 28 insertions(+), 15 deletions(-)

diffs:
diff --git a/py-virtualenv20/Makefile b/py-virtualenv20/Makefile
index cf659cde2d..4104417939 100644
--- a/py-virtualenv20/Makefile
+++ b/py-virtualenv20/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD$
+# $NetBSD: Makefile,v 1.53 2022/01/05 15:41:09 wiz Exp $
 
 DISTNAME=	virtualenv-20.13.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
@@ -10,31 +10,44 @@ HOMEPAGE=	https://virtualenv.pypa.io/
 COMMENT=	Virtual Python Environment builder
 LICENSE=	mit
 
-CONFLICTS+=	${PYPKGPREFIX}-virtualenv-[0-9]*
+BUILD_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools
+DEPENDS+=	${PYPKGPREFIX}-distlib>=0.3.1:../../devel/py-distlib
+DEPENDS+=	${PYPKGPREFIX}-filelock>=3.2:../../devel/py-filelock
+DEPENDS+=	${PYPKGPREFIX}-platformdirs>=2:../../misc/py-platformdirs
+DEPENDS+=	${PYPKGPREFIX}-six>=1.9:../../lang/py-six
+TEST_DEPENDS+=	${PYPKGPREFIX}-coverage>=4:../../devel/py-coverage
+#TEST_DEPENDS+=	${PYPKGPREFIX}-coverage-enable-subprocess>=1:../../devel/py-coverage-enable-subprocess
+TEST_DEPENDS+=	${PYPKGPREFIX}-flaky>=3:../../devel/py-flaky
+TEST_DEPENDS+=	${PYPKGPREFIX}-packaging>=20.0:../../devel/py-packaging
+TEST_DEPENDS+=	${PYPKGPREFIX}-test>=4:../../devel/py-test
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-env>=0.6.2:../../devel/py-test-env
+#TEST_DEPENDS+=	${PYPKGPREFIX}-test-freezegun>=0.4.1:../../devel/py-test-freezegun
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-mock>=2:../../devel/py-test-mock
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-randomly>=1:../../devel/py-test-randomly
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-timeout>=1:../../devel/py-test-timeout
+
+PYTHON_VERSIONS_INCOMPATIBLE=	27 # py-filelock, py-platformdirs, py-packaging
 
-DEPENDS+=	${PYPKGPREFIX}-distlib>=0.3.1<1:../../devel/py-distlib
-DEPENDS+=	${PYPKGPREFIX}-filelock>=3.2.0<4:../../wip/py-filelock
-DEPENDS+=	${PYPKGPREFIX}-platformdirs>=2<3:../../misc/py-platformdirs
-DEPENDS+=	${PYPKGPREFIX}-six>=1.9.0<2:../../lang/py-six
 .include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} < 38
-DEPENDS+=	${PYPKGPREFIX}-importlib-metadata>=0.12:../../devel/py-importlib-metadata
-.endif
-.if ${_PYTHON_VERSION} == 27
-DEPENDS+=	${PYPKGPREFIX}-pathlib2>=2.3.3<3:../../devel/py-pathlib2
-DEPENDS+=	${PYPKGPREFIX}-importlib-resources>=1.0:../../devel/py-importlib-resources
+
+.if ${_PYTHON_VERSION} == 37
+DEPENDS+=	${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
 .endif
 
+USE_PKG_RESOURCES=	yes
+
 USE_LANGUAGES=	# none
 
 REPLACE_PYTHON=	virtualenv.py
 
-PYTHON_VERSIONED_DEPENDENCIES+=	setuptools_scm:build
-
 post-install:
 	cd ${DESTDIR}${PREFIX}/bin && \
 	${MV} virtualenv virtualenv-${PYVERSSUFFIX} || ${TRUE}
 
+TEST_ENV+=	PYTHONPATH=${WRKSRC}/build/lib
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
 .include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
 .include "../../lang/python/versioned_dependencies.mk"
diff --git a/py-virtualenv20/distinfo b/py-virtualenv20/distinfo
index 7b694000e2..bc0eff3158 100644
--- a/py-virtualenv20/distinfo
+++ b/py-virtualenv20/distinfo
@@ -1,4 +1,4 @@
-$NetBSD$
+$NetBSD: distinfo,v 1.43 2021/10/26 10:19:15 nia Exp $
 
 BLAKE2s (virtualenv-20.13.2.tar.gz) = cc68c5a97139d73457fc403c84a86cc5ced470b106a6ddff112a5a584d6f89c5
 SHA512 (virtualenv-20.13.2.tar.gz) = 7e5ef7927637ab1d029c8831889846acb13948c8cfafc17d56ca815f23f682207da0f3b3291936585a9b059c10ec35813fb53511f19462f867edaf5f197c0135


Home | Main Index | Thread Index | Old Index