blob: b2678952cd8a27554b700237b4bedca25e27865c [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"
Patrick Williams2194f502022-10-16 14:26:09 -05006LIC_FILES_CHKSUM = "file://LICENSE;md5=6f14302a4b4099009ab38b4dde5f1075"
Andrew Geisslerc87764f2020-06-27 00:16:32 -05007
Andrew Geissler748a4832020-07-24 16:24:21 -05008SRC_URI = "file://run-ptest \
9 "
10
Patrick Williams7784c422022-11-17 07:29:11 -060011SRC_URI[sha256sum] = "62e09f7ff5ccbda92772a29f394a49c3ad6cb181d568b1337626b2abb628a63d"
Andrew Geisslerc87764f2020-06-27 00:16:32 -050012
Andrew Geissler748a4832020-07-24 16:24:21 -050013inherit pypi setuptools3 ptest
Andrew Geisslerc87764f2020-06-27 00:16:32 -050014
Patrick Williams213cb262021-08-07 19:21:33 -050015RDEPENDS:${PN} += " \
Andrew Geisslerc87764f2020-06-27 00:16:32 -050016 ${PYTHON_PN}-requests (>=2.0.1) \
17"
Andrew Geissler748a4832020-07-24 16:24:21 -050018
Patrick Williams213cb262021-08-07 19:21:33 -050019RDEPENDS:${PN}-ptest += " \
Andrew Geissler748a4832020-07-24 16:24:21 -050020 ${PYTHON_PN}-pytest \
21 ${PYTHON_PN}-betamax \
22 ${PYTHON_PN}-mock \
23 ${PYTHON_PN}-multiprocessing \
24"
25
26do_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}