Release 1.1.0-beta4: Python bindings + TestKit.Core split + Trusted Publishing#11
Merged
Conversation
Split the assertion-agnostic simulation harness (run loop, probes, board presets) into a new Avr8Sharp.TestKit.Core project so it can be reused by both the FluentAssertions-based TestKit and a Native AOT C-ABI layer without dragging FluentAssertions into the AOT image. New components: - Avr8Sharp.TestKit.Core (MIT): shared harness, now the dependency of TestKit. Adds ATtinyX4 (24/44/84) and ATtiny13 board presets. - Avr8Sharp.Native: Native AOT shared library exporting a flat C-ABI (a8s_*, [UnmanagedCallersOnly]) over the harness, handle-based via GCHandle. - bindings/python (BUSL-1.1): self-contained `avr8sharp` PyPI package — ctypes loader + fluent API, packaged with hatchling (no .NET runtime for users). Release: - Bump Avr8Sharp, Avr8Sharp.TestKit and Avr8Sharp.TestKit.Core to 1.1.0-beta4 so the TestKit -> TestKit.Core -> Avr8Sharp dependency chain resolves to matching versions on NuGet.org. - publish.yml now packs TestKit.Core (before TestKit) and pushes to nuget.org via NuGet Trusted Publishing (OIDC) instead of a long-lived API key. Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Resumen
Corta la beta 1.1.0-beta4 y habilita la publicación de los testkits a NuGet.org.
Cambios C# / NuGet
Avr8Sharp.TestKit.Core(MIT, nuevo paquete): harness de simulación agnóstico de assertions (run loop, probes, board presets), extraído del TestKit para que tanto el TestKit (FluentAssertions) como la capa Native AOT lo reusen sin arrastrar FluentAssertions al AOT. Añade presets ATtinyX4 (24/44/84) y ATtiny13.Avr8Sharp.TestKitahora depende deTestKit.Corey solo añade los.Should().1.1.0-beta4en los tres paquetes → la cadenaTestKit → TestKit.Core → Avr8Sharpresuelve versiones coincidentes.Avr8Sharp.Native: librería Native AOT que exporta una C-ABI plana (a8s_*) sobre el harness (base de los bindings Python; no es un nupkg).Bindings Python (BUSL-1.1)
bindings/python/→ paqueteavr8sharpautocontenido (ctypes + API fluida, hatchling). Sin runtime .NET para el usuario.CI / Publicación
publish.ymlahora packeaTestKit.Core(antes que TestKit, por orden de dependencia) y publica vía NuGet Trusted Publishing (OIDC) conNuGet/loginen vez de la API key de larga vida (permissions: id-token: write).Verificación
dotnet test: 507/507 ✅1.1.0-beta4; nuspecs con deps correctas y licencia MIT.🤖 Generated with Claude Code