blob: 366f41ca812301bdecb2f2c555063bf5e45461ac [file] [log] [blame]
Andrew Geisslerc87764f2020-06-27 00:16:32 -05001DESCRIPTION = "A utility belt for advanced users of python-requests."
2HOMEPAGE = "https://toolbelt.readthedocs.org"
3AUTHOR = "Ian Cordasco, Cory Benfield"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=71760e0f1dda8cff91b0bc9246caf571"
7
Andrew Geissler748a4832020-07-24 16:24:21 -05008SRC_URI = "file://run-ptest \
9 "
10
Andrew Geisslerc87764f2020-06-27 00:16:32 -050011SRC_URI[md5sum] = "b1509735c4b4cf95df2619facbc3672e"
12SRC_URI[sha256sum] = "968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0"
13
Andrew Geissler748a4832020-07-24 16:24:21 -050014inherit pypi setuptools3 ptest
Andrew Geisslerc87764f2020-06-27 00:16:32 -050015
Patrick Williams213cb262021-08-07 19:21:33 -050016RDEPENDS:${PN} += " \
Andrew Geisslerc87764f2020-06-27 00:16:32 -050017 ${PYTHON_PN}-requests (>=2.0.1) \
18"
Andrew Geissler748a4832020-07-24 16:24:21 -050019
Patrick Williams213cb262021-08-07 19:21:33 -050020RDEPENDS:${PN}-ptest += " \
Andrew Geissler748a4832020-07-24 16:24:21 -050021 ${PYTHON_PN}-pytest \
22 ${PYTHON_PN}-betamax \
23 ${PYTHON_PN}-mock \
24 ${PYTHON_PN}-multiprocessing \
25"
26
27do_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}