Summary
Tested depyler v3.20.2 (latest from ../depyler) against all 6 examples. The compatibility status remains unchanged from the documented state in README.md.
Test Results
✅ Working Examples (3/6 - 50%)
-
example_simple ✅
- Status: Compiles and runs correctly
- Command:
depyler compile trivial_cli.py -o trivial_cli_test
- Validation:
./trivial_cli_test --name "Test" produces Hello, Test!
-
example_flags ✅
- Status: Compiles and runs correctly
- Command:
depyler compile flag_parser.py -o flag_parser_test
- Validation:
./flag_parser_test --verbose --debug produces correct output
-
example_positional ✅
- Status: Compiles and runs correctly
- Command:
depyler compile positional_args.py -o positional_args_test
- Validation:
./positional_args_test start target1 target2 produces correct output
❌ Failing Examples (3/6 - 50%)
-
example_subcommands ❌
- Status: Build fails
- Error:
cannot find type 'Args' in this scope
- Issue: The generated Rust code references an Args type that isn't defined
- Root cause: Subcommand enum handling not generating proper types
-
example_complex ❌
- Status: Build fails with 26 compilation errors
- Key errors:
- Invalid casts:
serde_json::Value as i32
- Option type mismatches (bool vs Option)
- Missing argparse module references
- Display trait not implemented for Option types
- Root cause: Complex type inference and Option handling issues
-
example_stdlib ❌
- Status: Transpile fails immediately
- Error:
Expression type not yet supported
- Root cause: Unsupported expression types in stdlib code
Conclusion
No improvements detected in depyler v3.20.2. The same 3 examples that previously failed continue to fail with identical error patterns.
Version Information
- Depyler: v3.20.2 (installed from
../depyler via cargo install --path ../depyler/crates/depyler)
- Test Date: 2025-11-13
- System: Linux 6.8.0-87-generic
Outstanding Issues
The following issues need to be addressed in depyler for 100% compatibility:
- Subcommand enum generation - Need proper Args type definitions
- Complex type handling - Better type inference for Option types and custom validators
- Expression type support - Expand supported expression types for stdlib integration
Reproduction
# Install depyler v3.20.2
cargo install --path ../depyler/crates/depyler
# Verify version
depyler --version
# Test working examples
depyler compile examples/example_simple/trivial_cli.py -o examples/example_simple/trivial_cli_test
depyler compile examples/example_flags/flag_parser.py -o examples/example_flags/flag_parser_test
depyler compile examples/example_positional/positional_args.py -o examples/example_positional/positional_args_test
# Test failing examples
depyler compile examples/example_subcommands/git_clone.py -o examples/example_subcommands/git_clone_test 2>&1
depyler compile examples/example_complex/complex_cli.py -o examples/example_complex/complex_cli_test 2>&1
depyler compile examples/example_stdlib/stdlib_integration.py -o examples/example_stdlib/stdlib_integration_test 2>&1
Related
- README.md compatibility table (lines 67-80)
- Previous compatibility testing documentation
Summary
Tested depyler v3.20.2 (latest from ../depyler) against all 6 examples. The compatibility status remains unchanged from the documented state in README.md.
Test Results
✅ Working Examples (3/6 - 50%)
example_simple ✅
depyler compile trivial_cli.py -o trivial_cli_test./trivial_cli_test --name "Test"producesHello, Test!example_flags ✅
depyler compile flag_parser.py -o flag_parser_test./flag_parser_test --verbose --debugproduces correct outputexample_positional ✅
depyler compile positional_args.py -o positional_args_test./positional_args_test start target1 target2produces correct output❌ Failing Examples (3/6 - 50%)
example_subcommands ❌
cannot find type 'Args' in this scopeexample_complex ❌
serde_json::Value as i32example_stdlib ❌
Expression type not yet supportedConclusion
No improvements detected in depyler v3.20.2. The same 3 examples that previously failed continue to fail with identical error patterns.
Version Information
../depylerviacargo install --path ../depyler/crates/depyler)Outstanding Issues
The following issues need to be addressed in depyler for 100% compatibility:
Reproduction
Related