Skip to content

Gradle plugin: feed stubs to typedpythonStubs - #50

Merged
b-re-w merged 2 commits into
developfrom
work/typedpython-stubs-wire
Oct 3, 2026
Merged

b-re-w merged 2 commits into
developfrom
work/typedpython-stubs-wire

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 3, 2026

Copy link
Copy Markdown
Member

Closes #27

Feature added

When a configuration named typedpythonStubs exists (toolchain's plugin creates it, toolchain#23 and PR toolchain#34), each PythonStubsTask output directory is added to it, and the task dependency travels with the files. This works whichever plugin is applied first. There is no compile-time dependency on toolchain, and if the configuration never appears, nothing is created.

Test added

TypedPythonStubsWiringTest, 4 tests (ProjectBuilder, two source sets):

  • configuration created before the wiring;
  • configuration created after the wiring;
  • the build dependencies include generatePythonStubs*;
  • without the configuration nothing happens and nothing is created.

Results:

  • Red: 3 of 4 failed. The absence test passes either way.
  • Green: 4 of 4. The full :python-multiplatform-gradle-plugin:test gave 151 tests, 0 failures, 0 errors, 0 skipped. The coordinating session re-ran the class and got 4 of 4.
  • Mutation: with the wiring call removed, 3 tests fail.

Documentation corrected

SPEC B-8 is marked implemented.

Not run

ksp-fixtures and the library module were not run; the machine is overloaded. The toolchain side that consumes the configuration is not exercised here.

b-re-w added 2 commits October 3, 2026 09:01
…figuration

When a configuration named typedpythonStubs exists (toolchain's plugin creates
it), every stubs task's output directory is added to it with the task
dependency attached, in either plugin application order. No compile-time
dependency on toolchain; nothing is created when the configuration is absent.

Red: 3 of 4 failed. Green: 4/4, full plugin suite 151/0. Mutation (wiring
call removed): 3 fail again.

Closes #27
@b-re-w
b-re-w merged commit bbd4cfc into develop Oct 3, 2026
7 checks passed
@b-re-w
b-re-w deleted the work/typedpython-stubs-wire branch October 3, 2026 10:13
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