pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc *: do not use py-freezegun with python 2.7
details: https://anonhg.NetBSD.org/pkgsrc/rev/e68e90b09666
branches: trunk
changeset: 379147:e68e90b09666
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu May 12 08:05:28 2022 +0000
description:
*: do not use py-freezegun with python 2.7
diffstat:
devel/py-babel/Makefile | 10 ++++++++--
devel/py-cached-property/Makefile | 7 ++++++-
time/py-dateutil/Makefile | 8 +++++++-
time/py-tempora/Makefile | 14 ++++++++++----
4 files changed, 31 insertions(+), 8 deletions(-)
diffs (103 lines):
diff -r 7aaf329b2699 -r e68e90b09666 devel/py-babel/Makefile
--- a/devel/py-babel/Makefile Thu May 12 07:57:33 2022 +0000
+++ b/devel/py-babel/Makefile Thu May 12 08:05:28 2022 +0000
@@ -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 @@
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
diff -r 7aaf329b2699 -r e68e90b09666 devel/py-cached-property/Makefile
--- a/devel/py-cached-property/Makefile Thu May 12 07:57:33 2022 +0000
+++ b/devel/py-cached-property/Makefile Thu May 12 08:05:28 2022 +0000
@@ -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 @@
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
diff -r 7aaf329b2699 -r e68e90b09666 time/py-dateutil/Makefile
--- a/time/py-dateutil/Makefile Thu May 12 07:57:33 2022 +0000
+++ b/time/py-dateutil/Makefile Thu May 12 08:05:28 2022 +0000
@@ -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 @@
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
diff -r 7aaf329b2699 -r e68e90b09666 time/py-tempora/Makefile
--- a/time/py-tempora/Makefile Thu May 12 07:57:33 2022 +0000
+++ b/time/py-tempora/Makefile Thu May 12 08:05:28 2022 +0000
@@ -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 @@
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