You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bbca3ba
Browse filesBrowse the repository at this point in the historyBrowse files
**`[aliases]`** lends a module names from another mapped module, as data. Two forms, both under
290
292
`[aliases."<owner module>"]` keyed by the source module: a list of names lent under the **same**
@@ -305,6 +307,44 @@ notebook is git-ignored, so in a worktree or CI checkout it is absent, the expec
305
307
and **the test passes without checking anything.** It is only meaningful in the maintainer's main
306
308
checkout.
307
309
310
+
### S2.1 Layered rows and the fork's design systems: `implemented` (served once the binder walks them)
311
+
312
+
INTENT §5.12 (owner, 2026-11-13; the means are an agent proposal, #152). A row is one Kotlin package
313
+
or a list of them. A name is looked up in each listed package in order and the **first that declares
314
+
it wins**; a listed package the binder does not serve is skipped; if it serves none, reading a name
315
+
is an `AttributeError` that names every package. `dir()` lists every served layer. The stub generator
316
+
merges a listed row the same way: the first layer the `kotlin-stubs` artefact has converts as a
317
+
one-package row always did, and each later layer adds only the declarations the layers before it do
318
+
not define, with the imports they need.
319
+
320
+
`pythonx.compose.material3` is `["org.thisisthepy.compose.material3", "androidx.compose.material3"]`.
321
+
The design systems are `pythonx.compose.designsystem`, `.breeze`, `.cupertino`, `.deepin`, `.fluent`,
322
+
`.gnome` and `.liquidglass`. None of `extended/design-systems` is on Maven Central (checked
323
+
2026-11-13), so python-multiplatform serves none of them: today every `material3` name comes from
324
+
`androidx.compose.material3`, the design-system modules import but every name read raises
325
+
`AttributeError`, and their stubs are header-only.
326
+
327
+
**Regression guard.**`tests/fixtures/surfaces/<module>.txt` is the recorded public surface of each of
328
+
those eight modules, read from its committed stub by `scripts/surface.py`: one line per declaration
329
+
(functions and methods with parameter names, `=...` for a default, and return type, one line per
330
+
overload; classes; annotated names; re-exported names). Parameter types are left out, since the
331
+
binder's typing of a parameter improving is not a regression. A regenerated stub may add lines; one
332
+
that drops or changes a recorded line fails unless `tests/fixtures/surfaces/allowlist.toml` lists
333
+
that line with a reason. A module whose snapshot is empty fails as soon as its stub declares
334
+
anything, so its snapshot is recorded the first time the binder serves it.
335
+
336
+
| Behaviour | Test |
337
+
|---|---|
338
+
| The rows: `material3` lists the design system first; every design system has its row; a row is a package or a non-empty list |`tests/test_design_systems.py::TheRows`|
339
+
| Run time: first layer wins, later layers fill in, unserved layers are skipped, errors name every package, `dir()` lists all |`tests/test_design_systems.py::TheRuntimeSearchesTheLayersInOrder`|
340
+
| The generator merges layers the same way; a one-package list equals a string row |`tests/test_design_systems.py::TheGeneratorMergesTheLayers`|
341
+
| Surface snapshots exist, lose nothing unacknowledged, empty ones stay empty until recorded; the guard fails on a dropped line |`tests/test_design_systems.py::TheSurfaceGuard`|
342
+
| Each design system is a package on disk that imports without a binder |`tests/test_design_systems.py::ThePackagesOnDisk`|
343
+
344
+
Not done here: publishing `extended/design-systems` (the fork's side, darkpyonix team) and
345
+
python-multiplatform walking it; the design-system `material3` module also declares no
346
+
`macosArm64`/`linuxX64` target (S1.4).
347
+
308
348
## 3. `pythonx` is a real package: `implemented` (module level)
309
349
310
350
Required by INTENT §2.2: `import pythonx.compose.material3` (and every other mapped module) loads
<pdata-lang="en">A row may list several Kotlin packages. A name comes from the first one that declares it, and a package the binder does not serve is skipped: <code>material3</code> puts the fork's Material 3 design system in front of Material 3 itself. The fork's design systems (<code>cupertino</code>, <code>fluent</code>, <code>gnome</code>, <code>breeze</code>, <code>deepin</code>, <code>liquidglass</code>, and their contract <code>designsystem</code>) have rows too; they are not on Maven Central yet, so they resolve no names until python-multiplatform serves them.</p><pdata-lang="ko">한 줄에 Kotlin 패키지를 여러 개 적을 수 있습니다. 이름은 그것을 선언한 첫 패키지에서 오고, 바인더가 제공하지 않는 패키지는 건너뜁니다: <code>material3</code> 는 Material 3 앞에 포크의 Material 3 디자인 시스템을 둡니다. 포크의 디자인 시스템(<code>cupertino</code>, <code>fluent</code>, <code>gnome</code>, <code>breeze</code>, <code>deepin</code>, <code>liquidglass</code>, 그리고 공통 계약 <code>designsystem</code>)도 줄이 있습니다. 아직 Maven Central 에 없으므로 python-multiplatform 이 제공하기 전까지 이름을 해석하지 않습니다.</p>
43
45
<pdata-lang="en">The second row is why the mapping is written down rather than derived: it drops <code>foundation.</code> from the middle of the name, which no prefix rule can do.</p><pdata-lang="ko">두 번째 줄이 대응을 유도하지 않고 적어 두는 이유입니다: 이름 중간의 <code>foundation.</code> 을 빼는 것은 어떤 접두사 규칙으로도 할 수 없습니다.</p>
44
46
<pdata-lang="en">Every row is a real file on disk: a new <code>pythonx.compose.*</code> module gets a row here and an <code>__init__.py</code> that calls <code>reexport(__name__)</code>, in the same change.</p><pdata-lang="ko">모든 줄은 디스크에 있는 실제 파일입니다: 새 <code>pythonx.compose.*</code> 모듈은 같은 변경 안에서 여기 한 줄과, <code>reexport(__name__)</code> 를 부르는 <code>__init__.py</code> 를 함께 얻습니다.</p>
# GENERATED by scripts/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact ks, workflow run 42402779166, commit 9507e6dd, Compose 1.11.1-ext.2). Do not edit.
1
+
# GENERATED by scripts/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 42402779166, commit 9507e6dd, Compose 1.11.1-ext.2). Do not edit.
# GENERATED by scripts/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 42402779166, commit 9507e6dd, Compose 1.11.1-ext.2). Do not edit.
"""`pythonx.compose.cupertino`: the Pythonic view of `org.thisisthepy.compose.cupertino`, Apple's Cupertino (`CupertinoDesignSystem`, `CupertinoSurface`, and its `Modifier` extensions).
2
+
3
+
From the fork `compose-multiplatform-core-extended`, `extended/design-systems/cupertino`, exposed by the
4
+
owner's decision of 2026-11-13 (#54, #152). Served by the one rule in `pythonx/compose/_reexport.py`:
5
+
Kotlin's own declarations, upper-case names kept, keyword arguments in snake_case. Nothing is
6
+
written here by hand.
7
+
8
+
The design systems are not on Maven Central yet, so the binder serves no `org.thisisthepy.compose.cupertino` and every
9
+
name read here raises `AttributeError` until python-multiplatform walks the published artefact. Its
10
+
stub is empty until then, and `tests/test_design_systems.py` fails the day it is not, until its
11
+
surface snapshot is recorded (`scripts/surface.py`).
0 commit comments