Repository navigation
Restructure CI with matrix approach and multi-feature support #7376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,9 +67,9 @@ def parse_args(): | |
| ) | ||
| parser.add_argument( | ||
| "--features", | ||
| action="store", | ||
| help="which features to enable when building RustPython (default: ssl)", | ||
| default="ssl", | ||
| action="append", | ||
| help="which features to enable when building RustPython (default: [ssl])", | ||
| default=["ssl"], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Using
Per the context snippet from 🐛 Proposed fix: Use `default=None` and set default after parsing parser.add_argument(
"--features",
action="append",
- help="which features to enable when building RustPython (default: [ssl])",
- default=["ssl"],
+ help="which features to enable when building RustPython (default: ssl)",
+ default=None,
)
args = parser.parse_args()
+ if args.features is None:
+ args.features = ["ssl"]
return argsAlternatively, if the intent is to accept comma-separated features in a single 🔧 Alternative: Split comma-separated values+ # Flatten comma-separated features into individual items
+ if args.features:
+ args.features = [f for feat in args.features for f in feat.split(",")]
+ else:
+ args.features = ["ssl"]
return args🤖 Prompt for AI Agents |
||
| ) | ||
|
|
||
| args = parser.parse_args() | ||
|
|
@@ -449,16 +449,20 @@ def remove_one_indent(s): | |
| cargo_build_command = ["cargo", "build", "--release"] | ||
| if args.no_default_features: | ||
| cargo_build_command.append("--no-default-features") | ||
|
|
||
| joined_features = ",".join(args.features) | ||
| if args.features: | ||
| cargo_build_command.extend(["--features", args.features]) | ||
| cargo_build_command.extend(["--features", joined_features]) | ||
|
|
||
| subprocess.run(cargo_build_command, check=True) | ||
|
|
||
| cargo_run_command = ["cargo", "run", "--release"] | ||
| if args.no_default_features: | ||
| cargo_run_command.append("--no-default-features") | ||
|
|
||
| if args.features: | ||
| cargo_run_command.extend(["--features", args.features]) | ||
| cargo_run_command.extend(["--features", joined_features]) | ||
|
|
||
| cargo_run_command.extend(["-q", "--", GENERATED_FILE]) | ||
|
|
||
| result = subprocess.run( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jit seems to be fixed on macos now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try