summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-05-16 08:03:35 +0000
committeradam <adam@pkgsrc.org>2020-05-16 08:03:35 +0000
commit699fe80b890138c53caba713f193b0bf0223a136 (patch)
tree04a9ea4e662ac47735b9c0ff6ca7257bf4d52646 /lang
parentb2297dbb62e8c3294b932fd32828e39bdff65231 (diff)
downloadpkgsrc-699fe80b890138c53caba713f193b0bf0223a136.tar.gz
python: add pytest to versioned_dependencies.mk
Diffstat (limited to 'lang')
-rw-r--r--lang/python/versioned_dependencies.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/lang/python/versioned_dependencies.mk b/lang/python/versioned_dependencies.mk
index 458c7c87e8f..d06997e53d0 100644
--- a/lang/python/versioned_dependencies.mk
+++ b/lang/python/versioned_dependencies.mk
@@ -1,4 +1,4 @@
-# $NetBSD: versioned_dependencies.mk,v 1.38 2020/03/13 19:21:16 wiz Exp $
+# $NetBSD: versioned_dependencies.mk,v 1.39 2020/05/16 08:03:35 adam Exp $
#
# This file determines which separate distribution of a Python
# package is used as dependency, depending on the Python version
@@ -9,13 +9,13 @@
# PYTHON_VERSIONED_DEPENDENCIES
# The Python package which should be added as a dependency.
#
-# Possible values: Pmw X cherrypy dialog html2text ipython jsonlib more-itertools python-digest sphinx zipp
+# Possible values: Pmw X cherrypy dialog html2text ipython jsonlib more-itertools pytest python-digest sphinx zipp
# Default: (nothing)
#
.include "../../lang/python/pyversion.mk"
-# format: short name for PYTHON_VERSIONED_DEPENDENCIES<space>python-2.x path<space>python-3.x path
+# format: short name for PYTHON_VERSIONED_DEPENDENCIES<space>Python-2.x path<space>Python-3.x path
_SUPPORTED_PACKAGES= # empty
_SUPPORTED_PACKAGES+= Pmw x11/py-Pmw x11/py-Pmw2
_SUPPORTED_PACKAGES+= X textproc/py-X2 textproc/py-X
@@ -25,6 +25,7 @@ _SUPPORTED_PACKAGES+= html2text textproc/py-html2text-2019.8.11 textproc/py-html
_SUPPORTED_PACKAGES+= ipython devel/py-ipython5 devel/py-ipython
_SUPPORTED_PACKAGES+= jsonlib textproc/py-jsonlib textproc/py-jsonlib3
_SUPPORTED_PACKAGES+= more-itertools devel/py-more-itertools2 devel/py-more-itertools
+_SUPPORTED_PACKAGES+= pytest devel/py-test4 devel/py-test
_SUPPORTED_PACKAGES+= python-digest www/py-python-digest www/py-python3-digest
_SUPPORTED_PACKAGES+= sphinx textproc/py-sphinx1 textproc/py-sphinx
_SUPPORTED_PACKAGES+= zipp archivers/py-zipp1 archivers/py-zipp
@@ -36,7 +37,7 @@ type:= ${pattern:C/[^:]*//}
. for name py2dir py3dir in ${_SUPPORTED_PACKAGES}
. if "${pkg}" == "${name}"
_PKG_MATCHED= yes
-. if ${PYPKGPREFIX} == "py27"
+. if ${_PYTHON_VERSION} == 27
dir:= ${py2dir}
. else
dir:= ${py3dir}