Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 1 | DESCRIPTION = "A utility belt for advanced users of python-requests." |
| 2 | HOMEPAGE = "https://toolbelt.readthedocs.org" |
| 3 | AUTHOR = "Ian Cordasco, Cory Benfield" |
| 4 | |
| 5 | LICENSE = "Apache-2.0" |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6f14302a4b4099009ab38b4dde5f1075" |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 7 | |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 8 | SRC_URI = "file://run-ptest \ |
| 9 | " |
| 10 | |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 11 | SRC_URI[sha256sum] = "62e09f7ff5ccbda92772a29f394a49c3ad6cb181d568b1337626b2abb628a63d" |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 12 | |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 13 | inherit pypi setuptools3 ptest |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 14 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 15 | RDEPENDS:${PN} += " \ |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 16 | ${PYTHON_PN}-requests (>=2.0.1) \ |
| 17 | " |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 18 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 19 | RDEPENDS:${PN}-ptest += " \ |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 20 | ${PYTHON_PN}-pytest \ |
| 21 | ${PYTHON_PN}-betamax \ |
| 22 | ${PYTHON_PN}-mock \ |
| 23 | ${PYTHON_PN}-multiprocessing \ |
| 24 | " |
| 25 | |
| 26 | do_install_ptest() { |
| 27 | install -d ${D}${PTEST_PATH}/tests |
| 28 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ |
| 29 | cp -rf ${S}/setup.py ${D}${PTEST_PATH} |
| 30 | # remove test test_multipart_encoder.py as it fails, |
| 31 | # downloaded file is not supported |
| 32 | rm -f ${D}${PTEST_PATH}/tests/test_multipart_encoder.py |
| 33 | } |