| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: versioned_dependencies.mk,v 1.86 2022/09/11 18:10:43 wiz Exp $ | | 1 | # $NetBSD: versioned_dependencies.mk,v 1.87 2022/10/19 13:37:21 nia Exp $ |
2 | # | | 2 | # |
3 | # This file determines which separate distribution of a Python | | 3 | # This file determines which separate distribution of a Python |
4 | # package is used as dependency, depending on the Python version | | 4 | # package is used as dependency, depending on the Python version |
5 | # used. | | 5 | # used. |
6 | # | | 6 | # |
7 | # === User-settable variables === | | 7 | # === User-settable variables === |
8 | # | | 8 | # |
9 | # PYTHON_VERSIONED_DEPENDENCIES | | 9 | # PYTHON_VERSIONED_DEPENDENCIES |
10 | # The Python package which should be added as a dependency. | | 10 | # The Python package which should be added as a dependency. |
11 | # | | 11 | # |
12 | # Possible values: Pillow X cairo chardet click coverage cryptography dns flake8 hypothesis importlib-metadata jinja2 lama markdown mccabe more-itertools pip packaging pygments pyphen rsa setuptools setuptools_scm test test-cov | | 12 | # Possible values: Pillow X cairo chardet click coverage cryptography dns flake8 hypothesis importlib-metadata jinja2 lama markdown mccabe more-itertools pip packaging pygments pyphen rsa setuptools setuptools_scm test test-cov |
13 | # Default: (nothing) | | 13 | # Default: (nothing) |
14 | # | | 14 | # |
| @@ -39,27 +39,31 @@ _SUPPORTED_PACKAGES+= pip devel/py-pip20 | | | @@ -39,27 +39,31 @@ _SUPPORTED_PACKAGES+= pip devel/py-pip20 |
39 | _SUPPORTED_PACKAGES+= pygments textproc/py-pygments25 textproc/py-pygments | | 39 | _SUPPORTED_PACKAGES+= pygments textproc/py-pygments25 textproc/py-pygments |
40 | _SUPPORTED_PACKAGES+= pyphen textproc/py27-pyphen textproc/py-pyphen | | 40 | _SUPPORTED_PACKAGES+= pyphen textproc/py27-pyphen textproc/py-pyphen |
41 | _SUPPORTED_PACKAGES+= rsa security/py-rsa40 security/py-rsa | | 41 | _SUPPORTED_PACKAGES+= rsa security/py-rsa40 security/py-rsa |
42 | _SUPPORTED_PACKAGES+= setuptools devel/py-setuptools44 devel/py-setuptools | | 42 | _SUPPORTED_PACKAGES+= setuptools devel/py-setuptools44 devel/py-setuptools |
43 | _SUPPORTED_PACKAGES+= setuptools_scm devel/py-setuptools_scm5 devel/py-setuptools_scm | | 43 | _SUPPORTED_PACKAGES+= setuptools_scm devel/py-setuptools_scm5 devel/py-setuptools_scm |
44 | _SUPPORTED_PACKAGES+= test devel/py-test4 devel/py-test | | 44 | _SUPPORTED_PACKAGES+= test devel/py-test4 devel/py-test |
45 | _SUPPORTED_PACKAGES+= test-cov devel/py27-test-cov devel/py-test-cov | | 45 | _SUPPORTED_PACKAGES+= test-cov devel/py27-test-cov devel/py-test-cov |
46 | | | 46 | |
47 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} | | 47 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} |
48 | _PKG_MATCHED= no | | 48 | _PKG_MATCHED= no |
49 | pkg:= ${pattern:C/:.*//} | | 49 | pkg:= ${pattern:C/:.*//} |
50 | type:= ${pattern:C/[^:]*//} | | 50 | type:= ${pattern:C/[^:]*//} |
51 | . for name py2dir py3dir in ${_SUPPORTED_PACKAGES} | | 51 | . for name py2dir py3dir in ${_SUPPORTED_PACKAGES} |
52 | . if "${pkg}" == "${name}" | | 52 | . if "${pkg}" == "cryptography" |
| | | 53 | # Special due to Rust handling. |
| | | 54 | _PKG_MATCHED= yes |
| | | 55 | . include "../../security/py-cryptography/dependency.mk" |
| | | 56 | . elif "${pkg}" == "${name}" |
53 | _PKG_MATCHED= yes | | 57 | _PKG_MATCHED= yes |
54 | . if ${_PYTHON_VERSION} == 27 | | 58 | . if ${_PYTHON_VERSION} == 27 |
55 | dir:= ${py2dir} | | 59 | dir:= ${py2dir} |
56 | . else | | 60 | . else |
57 | dir:= ${py3dir} | | 61 | dir:= ${py3dir} |
58 | . endif | | 62 | . endif |
59 | . if "${type}" == ":link" | | 63 | . if "${type}" == ":link" |
60 | .include "../../${dir}/buildlink3.mk" | | 64 | .include "../../${dir}/buildlink3.mk" |
61 | . elif "${type}" == ":build" | | 65 | . elif "${type}" == ":build" |
62 | BUILD_DEPENDS:= ${BUILD_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} | | 66 | BUILD_DEPENDS:= ${BUILD_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} |
63 | . elif "${type}" == ":test" | | 67 | . elif "${type}" == ":test" |
64 | TEST_DEPENDS:= ${TEST_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} | | 68 | TEST_DEPENDS:= ${TEST_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} |
65 | . elif "${type}" == ":tool" | | 69 | . elif "${type}" == ":tool" |