diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-django.inc')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-django.inc | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-django.inc b/meta-python/recipes-devtools/python/python3-django.inc index c6475d2079..317793abba 100644 --- a/meta-python/recipes-devtools/python/python3-django.inc +++ b/meta-python/recipes-devtools/python/python3-django.inc | |||
| @@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa" | |||
| 6 | PYPI_PACKAGE = "django" | 6 | PYPI_PACKAGE = "django" |
| 7 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" | 7 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" |
| 8 | 8 | ||
| 9 | inherit pypi | 9 | inherit pypi ptest |
| 10 | |||
| 11 | SRC_URI += "file://run-ptest" | ||
| 10 | 12 | ||
| 11 | FILES:${PN} += "${datadir}/django" | 13 | FILES:${PN} += "${datadir}/django" |
| 12 | 14 | ||
| @@ -31,3 +33,31 @@ RDEPENDS:${PN} += "\ | |||
| 31 | " | 33 | " |
| 32 | 34 | ||
| 33 | CVE_PRODUCT = "django" | 35 | CVE_PRODUCT = "django" |
| 36 | |||
| 37 | do_install_ptest(){ | ||
| 38 | install -d ${D}${PTEST_PATH}//docs/_ext | ||
| 39 | install -m 0644 ${S}/docs/_ext/github_links.py ${D}${PTEST_PATH}/docs/_ext | ||
| 40 | |||
| 41 | cp -r ${S}/tests ${D}${PTEST_PATH} | ||
| 42 | sed -i 's,/usr/bin/env python,/usr/bin/env python3,' ${D}${PTEST_PATH}/tests/runtests.py | ||
| 43 | ln -sr ${D}${libdir}/python3.*/site-packages/django ${D}${PTEST_PATH}/django | ||
| 44 | } | ||
| 45 | |||
| 46 | RDEPENDS:${PN}-ptest += " \ | ||
| 47 | gettext \ | ||
| 48 | python3-asgiref \ | ||
| 49 | python3-bcrypt \ | ||
| 50 | python3-compile \ | ||
| 51 | python3-docutils \ | ||
| 52 | python3-fcntl \ | ||
| 53 | python3-jinja2 \ | ||
| 54 | python3-misc \ | ||
| 55 | python3-numpy \ | ||
| 56 | python3-pillow \ | ||
| 57 | python3-pyyaml \ | ||
| 58 | python3-sqlite3 \ | ||
| 59 | python3-statistics \ | ||
| 60 | python3-tblib \ | ||
| 61 | python3-zoneinfo \ | ||
| 62 | tzdata \ | ||
| 63 | " | ||
