pkgsrc-Changes archive

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

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu May 12 08:05:29 UTC 2022

Modified Files:
        pkgsrc/devel/py-babel: Makefile
        pkgsrc/devel/py-cached-property: Makefile
        pkgsrc/time/py-dateutil: Makefile
        pkgsrc/time/py-tempora: Makefile

Log Message:
*: do not use py-freezegun with python 2.7


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/devel/py-babel/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/py-cached-property/Makefile
cvs rdiff -u -r1.32 -r1.33 pkgsrc/time/py-dateutil/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/time/py-tempora/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-babel/Makefile
diff -u pkgsrc/devel/py-babel/Makefile:1.31 pkgsrc/devel/py-babel/Makefile:1.32
--- pkgsrc/devel/py-babel/Makefile:1.31 Wed Jan  5 15:41:01 2022
+++ pkgsrc/devel/py-babel/Makefile      Thu May 12 08:05:28 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2022/01/05 15:41:01 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2022/05/12 08:05:28 wiz Exp $
 
 DISTNAME=      Babel-2.9.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -12,10 +12,16 @@ COMMENT=    Collection of tools for interna
 LICENSE=       modified-bsd
 
 DEPENDS+=      ${PYPKGPREFIX}-pytz>=2015.7:../../time/py-pytz
-TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${_PYTHON_VERSION} == 27
+# freezegun is only available for python 3
+TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
+.endif
+
 USE_LANGUAGES= # none
 
 USE_PKG_RESOURCES=     yes

Index: pkgsrc/devel/py-cached-property/Makefile
diff -u pkgsrc/devel/py-cached-property/Makefile:1.12 pkgsrc/devel/py-cached-property/Makefile:1.13
--- pkgsrc/devel/py-cached-property/Makefile:1.12       Tue Jan  4 20:52:54 2022
+++ pkgsrc/devel/py-cached-property/Makefile    Thu May 12 08:05:28 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2022/01/04 20:52:54 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2022/05/12 08:05:28 wiz Exp $
 
 DISTNAME=      cached-property-1.5.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -11,7 +11,12 @@ HOMEPAGE=    https://github.com/pydanny/cac
 COMMENT=       Decorator for caching properties in classes
 LICENSE=       modified-bsd
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${_PYTHON_VERSION} == 27
+# freezegun is only available for python 3
 TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
+.endif
 
 USE_LANGUAGES= # none
 

Index: pkgsrc/time/py-dateutil/Makefile
diff -u pkgsrc/time/py-dateutil/Makefile:1.32 pkgsrc/time/py-dateutil/Makefile:1.33
--- pkgsrc/time/py-dateutil/Makefile:1.32       Thu Jan 13 19:31:24 2022
+++ pkgsrc/time/py-dateutil/Makefile    Thu May 12 08:05:28 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2022/01/13 19:31:24 wiz Exp $
+# $NetBSD: Makefile,v 1.33 2022/05/12 08:05:28 wiz Exp $
 
 DISTNAME=      python-dateutil-2.8.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/python-//}
@@ -12,7 +12,13 @@ COMMENT=     Extensions to the standard date
 LICENSE=       modified-bsd
 
 DEPENDS+=      ${PYPKGPREFIX}-six>=1.5:../../lang/py-six
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${_PYTHON_VERSION} == 27
+# freezegun is only available for python 3
 TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
+.endif
 
 PYTHON_VERSIONED_DEPENDENCIES= test:test
 PYTHON_VERSIONED_DEPENDENCIES+=        hypothesis:test

Index: pkgsrc/time/py-tempora/Makefile
diff -u pkgsrc/time/py-tempora/Makefile:1.15 pkgsrc/time/py-tempora/Makefile:1.16
--- pkgsrc/time/py-tempora/Makefile:1.15        Thu Jan 13 19:31:25 2022
+++ pkgsrc/time/py-tempora/Makefile     Thu May 12 08:05:28 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2022/01/13 19:31:25 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2022/05/12 08:05:28 wiz Exp $
 
 DISTNAME=      tempora-1.14.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -14,12 +14,18 @@ LICENSE=    mit
 DEPENDS+=      ${PYPKGPREFIX}-jaraco.functools-[0-9]*:../../devel/py-jaraco.functools
 DEPENDS+=      ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
-TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-sugar>=0.9.1:../../devel/py-test-sugar
 
-PYTHON_VERSIONED_DEPENDENCIES= test:test
-PYTHON_VERSIONED_DEPENDENCIES= setuptools_scm:build
+PYTHON_VERSIONED_DEPENDENCIES+=        test:test
+PYTHON_VERSIONED_DEPENDENCIES+=        setuptools_scm:build
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${_PYTHON_VERSION} == 27
+# freezegun is only available for python 3
+TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
+.endif
 
 USE_LANGUAGES= # none
 



Home | Main Index | Thread Index | Old Index