Add license change trigger for platform.* conan recipes - #279
Open
konard wants to merge 3 commits into
Open
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #175
This commit implements the functionality requested in issue #175: - Adds a new --new-license command-line parameter - Creates change_license_in_conanfile_py module to handle license updates - Applies license changes only to recipes matching pattern ^platform\..+ (case-insensitive) - Updates license field in conanfile.py with proper quote handling - Creates separate commit for license changes with descriptive message - Includes example documentation showing usage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
konard
marked this pull request as ready for review
September 11, 2025 10:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI-Powered Solution
This pull request implements the functionality requested in issue #175: Add a trigger to change license in
platform\..+conan recipes.📋 Issue Reference
Fixes #175
✅ Implementation Details
New Features Added:
--new-license(optional)^platform\..+(case-insensitive)licensefield inconanfile.pyfilesFiles Modified:
rust/update-conan-recipe-and-create-pull-request/src/main.rs- Added command-line argument and integration logicrust/update-conan-recipe-and-create-pull-request/src/change_license_in_conanfile_py.rs- New module for license change functionalityexamples/test-license-change.md- Documentation and usage examplesHow it Works:
--new-licenseparameter when running the tool^platform\..+(case-insensitive)license = "value"line in the conanfile.pyPattern Examples:
platform.collections→ Will change licensePlatform.Memory→ Will change license (case-insensitive)platform.data→ Will change licenseboost→ Won't change license (doesn't match pattern)openssl→ Won't change license (doesn't match pattern)🧪 Testing
examples/test-license-change.md📝 Usage Example
This PR was created automatically by the AI issue solver