refactor: rename pymcu-rp2040 → pymcu-arm + CI/publish fixes#1
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Same fix as pymcu-avr: add path: pymcu-rp2040 so both repos are siblings under $GITHUB_WORKSPACE, matching the relative csproj SDK reference. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- pyproject.toml: name, description, artifact glob, URLs
- hatch_build.py: binary name pymcuc-arm, csproj path
- csproj: PyMCU.Backend.RP2040.{,Cli.}csproj -> PyMCU.Backend.ARM.*
AssemblyName: pymcuc-rp2040 -> pymcuc-arm
- Program.cs: binary name in comments and RootCommand description
- backend plugin / toolchain: pymcuc-arm binary, pymcu_arm_toolchain import
- ci.yml / publish.yml: checkout path pymcu-arm, build step names
- PymcuCompiler.cs: error message, add Verbose guard (PYMCU_VERBOSE/RUNNER_DEBUG)
Internal RP2040-specific code (namespaces, classes, HAL dirs, entry-points)
unchanged — they represent the chip target, not the package boundary.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
pymcu-rp2040→pymcu-arm: pyproject.toml, hatch_build.py, csproj, plugin.py, llvm.py, PymcuCompiler.cs y ambos workflows actualizados. El binario pasa a llamarsepymcuc-arm; las rutas internas de Python/HAL (pymcu/backend/rp2040/,pymcu/toolchain/rp2040/) se mantienen igual.fix(publish)): ambos repositorios se descargan como hermanos (pymcu-arm/+pymcu/) para que la referencia relativa al csproj del SDK resuelva correctamente.ci(publish)): elimina el paso de publicación en el índice privado de Gitea.ci): apunta el checkout del monorepo amain(PR #34 ya fusionado).PymcuCompiler.cs: el log detallado sólo se activa conPYMCU_VERBOSE=1oRUNNER_DEBUG=1.Cambios que permanecen RP2040-específicos
pymcu/backend/rp2040/,pymcu/toolchain/rp2040/rp2040 = pymcu.backend.rp2040:Rp2040BackendPluginRp2040BackendProvider,Rp2040LlvmCodeGenPyMCU.Backend.Targets.RP2040lib/src/pymcu/hal/rp2040/Test plan
development(build matrix linux/macos/windows)dotnet test tests/integration/PyMCU.IntegrationTests.csprojpasa localmenteuv build --wheelproducepymcu_arm-*.whl(nombre correcto)pymcu-rp2040ypymcu-rp2040-toolchainde PyPI manualmente (web UI)🤖 Generated with Claude Code