mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-22 23:10:18 +00:00
Python 2 was end-of-lifed six years ago now, so move the python3-six recipe from oe-core to meta-python. Plenty of recipes still claim to depend on it, but reviewing these is both a good way to review the dependencies and potentially identify unmaintained packages. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
24 lines
958 B
BlitzBasic
24 lines
958 B
BlitzBasic
inherit setuptools3 ptest-python-pytest
|
|
require python-six.inc
|
|
|
|
SRC_URI[sha256sum] = "ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"
|
|
|
|
PTEST_PYTEST_DIR = "."
|
|
|
|
# test_six.py exercises the six.moves mappings, which import these stdlib
|
|
# modules that are packaged separately in oe-core.
|
|
RDEPENDS:${PN}-ptest += " \
|
|
python3-html \
|
|
python3-netclient \
|
|
python3-xmlrpc \
|
|
"
|
|
|
|
do_install_ptest:append() {
|
|
# six ships its test at the sdist root; keep only test_six.py plus the
|
|
# generated run-ptest, and drop the packaged library sources / bytecode.
|
|
rm -f ${D}${PTEST_PATH}/six.py
|
|
rm -f ${D}${PTEST_PATH}/setup.py ${D}${PTEST_PATH}/setup.cfg ${D}${PTEST_PATH}/MANIFEST.in
|
|
rm -f ${D}${PTEST_PATH}/CHANGES ${D}${PTEST_PATH}/README.rst ${D}${PTEST_PATH}/PKG-INFO ${D}${PTEST_PATH}/LICENSE
|
|
rm -rf ${D}${PTEST_PATH}/build ${D}${PTEST_PATH}/documentation ${D}${PTEST_PATH}/six.egg-info ${D}${PTEST_PATH}/__pycache__
|
|
}
|