diff options
| author | Guðni Már Gilbert <gudni.m.g@gmail.com> | 2024-07-18 17:23:21 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-07-18 12:38:31 -0700 |
| commit | 084717cb31ace759922470079cf79f0ff27815d2 (patch) | |
| tree | bc43e52e682bd0cae5dac9a180d158fb71bcfc0e /meta-python/recipes-devtools/python | |
| parent | 3dbac8240c093e0b127e544b7015b8b082ecc63e (diff) | |
| download | meta-openembedded-084717cb31ace759922470079cf79f0ff27815d2.tar.gz | |
python3-incremental: improve packaging
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 <gudni.m.g@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-incremental_22.10.0.bb | 27 |
1 files changed, 21 insertions, 6 deletions
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 | |||
| 7 | 7 | ||
| 8 | inherit pypi python_setuptools_build_meta | 8 | inherit pypi python_setuptools_build_meta |
| 9 | 9 | ||
| 10 | RDEPENDS:${PN} += " \ | 10 | PACKAGE_BEFORE_PN = "\ |
| 11 | python3-twisted-core \ | 11 | ${PN}-scripts \ |
| 12 | ${PN}-tests \ | ||
| 13 | " | ||
| 14 | |||
| 15 | FILES:${PN}-scripts = "\ | ||
| 16 | ${PYTHON_SITEPACKAGES_DIR}/incremental/update.py \ | ||
| 17 | ${PYTHON_SITEPACKAGES_DIR}/incremental/__pycache__/update*.pyc \ | ||
| 18 | " | ||
| 19 | |||
| 20 | RDEPENDS:${PN}-scripts = "\ | ||
| 12 | python3-click \ | 21 | python3-click \ |
| 22 | python3-twisted-core \ | ||
| 23 | " | ||
| 24 | |||
| 25 | FILES:${PN}-tests = "${PYTHON_SITEPACKAGES_DIR}/incremental/tests" | ||
| 26 | |||
| 27 | # The tests require unit testing tool 'trial' from the twisted package | ||
| 28 | RDEPENDS:${PN}-tests = "\ | ||
| 29 | ${PN}-scripts \ | ||
| 30 | python3-twisted \ | ||
| 13 | " | 31 | " |
| 14 | 32 | ||
| 15 | # -native is needed to build python[3]-twisted, however, we need to take steps to | ||
| 16 | # prevent a circular dependency. The build apparently does not use the part of | ||
| 17 | # python-incremental which uses python-twisted, so this hack is OK. | ||
| 18 | RDEPENDS:python3-incremental-native:remove = "python3-twisted-core-native" | ||
| 19 | BBCLASSEXTEND = "native" | 33 | BBCLASSEXTEND = "native" |
| 34 | |||
