blob: cb1bc607b35382bbea714aec83c4defaad114a23 [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
16RDEPENDS_${PN} += " \
17 ${PYTHON_PN}-requests (>=2.0.1) \
18"
Andrew Geissler748a4832020-07-24 16:24:21 -050019
20RDEPENDS_${PN}-ptest += " \
21 ${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}