Skip to content

refactor: rename pymcu-rp2040 → pymcu-arm + CI/publish fixes#1

Merged
begeistert merged 5 commits into
mainfrom
development
Jun 8, 2026
Merged

refactor: rename pymcu-rp2040 → pymcu-arm + CI/publish fixes#1
begeistert merged 5 commits into
mainfrom
development

Conversation

@begeistert

Copy link
Copy Markdown
Contributor

Summary

  • Rename paquete pymcu-rp2040pymcu-arm: pyproject.toml, hatch_build.py, csproj, plugin.py, llvm.py, PymcuCompiler.cs y ambos workflows actualizados. El binario pasa a llamarse pymcuc-arm; las rutas internas de Python/HAL (pymcu/backend/rp2040/, pymcu/toolchain/rp2040/) se mantienen igual.
  • CI fix (fix(publish)): ambos repositorios se descargan como hermanos (pymcu-arm/ + pymcu/) para que la referencia relativa al csproj del SDK resuelva correctamente.
  • CI fix (ci(publish)): elimina el paso de publicación en el índice privado de Gitea.
  • CI fix (ci): apunta el checkout del monorepo a main (PR #34 ya fusionado).
  • Verbose guard en PymcuCompiler.cs: el log detallado sólo se activa con PYMCU_VERBOSE=1 o RUNNER_DEBUG=1.

Cambios que permanecen RP2040-específicos

  • Rutas Python: pymcu/backend/rp2040/, pymcu/toolchain/rp2040/
  • Entry-points: rp2040 = pymcu.backend.rp2040:Rp2040BackendPlugin
  • Clases C#: Rp2040BackendProvider, Rp2040LlvmCodeGen
  • Namespace C#: PyMCU.Backend.Targets.RP2040
  • Directorio HAL en el monorepo: lib/src/pymcu/hal/rp2040/

Test plan

  • CI verde en la rama development (build matrix linux/macos/windows)
  • dotnet test tests/integration/PyMCU.IntegrationTests.csproj pasa localmente
  • uv build --wheel produce pymcu_arm-*.whl (nombre correcto)
  • Eliminar paquetes pymcu-rp2040 y pymcu-rp2040-toolchain de PyPI manualmente (web UI)

🤖 Generated with Claude Code

begeistert and others added 5 commits June 7, 2026 15:01
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>
@begeistert begeistert merged commit 7ba4f99 into main Jun 8, 2026
10 of 12 checks passed
@begeistert begeistert deleted the development branch June 8, 2026 03:23
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