python3-pykickstart_3.63.bb 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. DESCRIPTION = "A python library for manipulating kickstart files"
  2. HOMEPAGE = "https://fedoraproject.org/wiki/pykickstart"
  3. LICENSE = "GPL-2.0-or-later"
  4. LIC_FILES_CHKSUM = "file://COPYING;md5=81bcece21748c91ba9992349a91ec11d"
  5. inherit python_setuptools_build_meta ptest
  6. RDEPENDS:${PN} = "python3 \
  7. python3-requests \
  8. python3-six \
  9. "
  10. RDEPENDS:${PN}-ptest += " \
  11. python3-pytest \
  12. python3-unittest-automake-output \
  13. "
  14. do_install_ptest() {
  15. install -d ${D}${PTEST_PATH}/tests
  16. cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests
  17. for file in `grep -Rl unittest.main ${D}${PTEST_PATH}/tests/`; do
  18. dirname=`dirname $file`
  19. basename=`basename $file`
  20. [ $basename != "__init__.py" ] && mv $file ${dirname}/test_${basename}
  21. done
  22. }
  23. SRC_URI = "git://github.com/rhinstaller/pykickstart.git;protocol=https;branch=master;tag=r${PV} \
  24. file://0001-support-authentication-for-kickstart.patch \
  25. file://0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch \
  26. file://0003-comment-out-sections-shutdown-and-environment-in-gen.patch \
  27. file://0004-load.py-retry-to-invoke-request-with-timeout.patch \
  28. file://run-ptest \
  29. "
  30. SRCREV = "6e0d1238cb4696a9040072a5a28a706e5775c552"
  31. UPSTREAM_CHECK_GITTAGREGEX = "r(?P<pver>\d+(\.\d+)+(-\d+)*)"
  32. S = "${WORKDIR}/git"