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" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=71760e0f1dda8cff91b0bc9246caf571" |
| 7 | |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame^] | 8 | SRC_URI = "file://run-ptest \ |
| 9 | " |
| 10 | |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 11 | SRC_URI[md5sum] = "b1509735c4b4cf95df2619facbc3672e" |
| 12 | SRC_URI[sha256sum] = "968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0" |
| 13 | |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame^] | 14 | inherit pypi setuptools3 ptest |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 15 | |
| 16 | RDEPENDS_${PN} += " \ |
| 17 | ${PYTHON_PN}-requests (>=2.0.1) \ |
| 18 | " |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame^] | 19 | |
| 20 | RDEPENDS_${PN}-ptest += " \ |
| 21 | ${PYTHON_PN}-pytest \ |
| 22 | ${PYTHON_PN}-betamax \ |
| 23 | ${PYTHON_PN}-mock \ |
| 24 | ${PYTHON_PN}-multiprocessing \ |
| 25 | " |
| 26 | |
| 27 | do_install_ptest() { |
| 28 | install -d ${D}${PTEST_PATH}/tests |
| 29 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ |
| 30 | cp -rf ${S}/setup.py ${D}${PTEST_PATH} |
| 31 | # remove test test_multipart_encoder.py as it fails, |
| 32 | # downloaded file is not supported |
| 33 | rm -f ${D}${PTEST_PATH}/tests/test_multipart_encoder.py |
| 34 | } |