Skip to content

Conversation

@thomas-roos
Copy link
Contributor

  • Created reusable python_dependency_test.py library that uses pkg_resources to validate Python package dependencies against setup.py requirements
  • Added ptests to python3-boto3, python3-botocore, and python3-s3transfer that automatically detect package name from PN and dependencies from DEPENDS
  • Tests will catch version conflicts like s3transfer 0.14.0 vs boto3 1.39.13 requirement of s3transfer<0.14.0 at test time instead of runtime failures
  • Uses FILESEXTRAPATHS to share common test library across recipes

This addresses the issue where Yocto's build system doesn't validate Python dependency constraints during bdist_wheel, allowing incompatible package versions to be built successfully but fail when used together.

Fixes: #13697

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@thomas-roos thomas-roos requested a review from a team as a code owner October 13, 2025 13:16
@thomas-roos thomas-roos force-pushed the 2025-10-13_scarthgap-next_add-ptest-pydeps branch 2 times, most recently from 6a98d22 to 0a3d4e5 Compare October 13, 2025 14:18
- Created reusable python_dependency_test.py library that uses pkg_resources
  to validate Python package dependencies against setup.py requirements
- Added ptests to python3-boto3, python3-botocore, and python3-s3transfer
  that automatically detect package name from PN and dependencies from DEPENDS
- Tests will catch version conflicts like s3transfer 0.14.0 vs boto3 1.39.13
  requirement of s3transfer<0.14.0 at test time instead of runtime failures
- Uses FILESEXTRAPATHS to share common test library across recipes

This addresses the issue where Yocto's build system doesn't validate Python
dependency constraints during bdist_wheel, allowing incompatible package
versions to be built successfully but fail when used together.

Fixes: aws4embeddedlinux#13697
@thomas-roos thomas-roos force-pushed the 2025-10-13_scarthgap-next_add-ptest-pydeps branch from 0a3d4e5 to 2620053 Compare October 13, 2025 16:55
@thomas-roos thomas-roos added this pull request to the merge queue Oct 13, 2025
Merged via the queue into aws4embeddedlinux:scarthgap-next with commit e786762 Oct 13, 2025
7 checks passed
@thomas-roos thomas-roos deleted the 2025-10-13_scarthgap-next_add-ptest-pydeps branch October 13, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant