pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-selectors2



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Aug 14 12:57:05 UTC 2024

Modified Files:
        pkgsrc/devel/py-selectors2: Makefile

Log Message:
py-selectors2: allow Python 2

Disable test dependencies.

Needed for offlineimap.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-selectors2/Makefile

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

Modified files:

Index: pkgsrc/devel/py-selectors2/Makefile
diff -u pkgsrc/devel/py-selectors2/Makefile:1.4 pkgsrc/devel/py-selectors2/Makefile:1.5
--- pkgsrc/devel/py-selectors2/Makefile:1.4     Sun May  1 09:13:41 2022
+++ pkgsrc/devel/py-selectors2/Makefile Wed Aug 14 12:57:04 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2022/05/01 09:13:41 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2024/08/14 12:57:04 wiz Exp $
 
 DISTNAME=      selectors2-2.0.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -11,12 +11,17 @@ HOMEPAGE=   https://github.com/sethmlarson
 COMMENT=       Back-ported, durable, and portable selectors
 LICENSE=       mit
 
-TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock
-TEST_DEPENDS+= ${PYPKGPREFIX}-psutil>=5.2.2:../../sysutils/py-psutil
-
 USE_LANGUAGES= # none
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
+PYTHON_27_ACCEPTED=    yes
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYTHON_VERSION} > 300
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock
+# only supports Python 3
+TEST_DEPENDS+= ${PYPKGPREFIX}-psutil>=5.2.2:../../sysutils/py-psutil
+.endif
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index