From 084717cb31ace759922470079cf79f0ff27815d2 Mon Sep 17 00:00:00 2001 From: Guðni Már Gilbert Date: Thu, 18 Jul 2024 17:23:21 +0000 Subject: python3-incremental: improve packaging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary of changes: 1. Create a new package: python3-incremental-tests 2. Create a new package: python3-incremental-scripts. This is an optional package used to update Twisted locally on the command line. The package requires python3-click. Most, if not all, users don't need this package. 3. There is no longer a circular dependency between python3-twisted and python3-incremental at build time. 5. python3-incremental ipk package shrinks from 167 KiB to 32 KiB Signed-off-by: Guðni Már Gilbert Signed-off-by: Khem Raj --- .../python/python3-incremental_22.10.0.bb | 27 +++++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'meta-python/recipes-devtools/python/python3-incremental_22.10.0.bb') diff --git a/meta-python/recipes-devtools/python/python3-incremental_22.10.0.bb b/meta-python/recipes-devtools/python/python3-incremental_22.10.0.bb index 503ef35a9e..007be032f5 100644 --- a/meta-python/recipes-devtools/python/python3-incremental_22.10.0.bb +++ b/meta-python/recipes-devtools/python/python3-incremental_22.10.0.bb @@ -7,13 +7,28 @@ SRC_URI[sha256sum] = "912feeb5e0f7e0188e6f42241d2f450002e11bbc0937c65865045854c2 inherit pypi python_setuptools_build_meta -RDEPENDS:${PN} += " \ - python3-twisted-core \ +PACKAGE_BEFORE_PN = "\ + ${PN}-scripts \ + ${PN}-tests \ +" + +FILES:${PN}-scripts = "\ + ${PYTHON_SITEPACKAGES_DIR}/incremental/update.py \ + ${PYTHON_SITEPACKAGES_DIR}/incremental/__pycache__/update*.pyc \ +" + +RDEPENDS:${PN}-scripts = "\ python3-click \ + python3-twisted-core \ +" + +FILES:${PN}-tests = "${PYTHON_SITEPACKAGES_DIR}/incremental/tests" + +# The tests require unit testing tool 'trial' from the twisted package +RDEPENDS:${PN}-tests = "\ + ${PN}-scripts \ + python3-twisted \ " -# -native is needed to build python[3]-twisted, however, we need to take steps to -# prevent a circular dependency. The build apparently does not use the part of -# python-incremental which uses python-twisted, so this hack is OK. -RDEPENDS:python3-incremental-native:remove = "python3-twisted-core-native" BBCLASSEXTEND = "native" + -- cgit v1.2.3-54-g00ecf