| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3648,7 +3648,9 @@ <h2 id="subcommands">Subcommands<a class="headerlink" href="#subcommands" title= | |||
| 3648 | 3648 | <li><code>pn doctor [android|ios]</code>: diagnose the local toolchain and validate | |
| 3649 | 3649 | <code>pythonnative.toml</code>, including that a <code>python3.X</code> matching | |
| 3650 | 3650 | <code>[app].python_version</code> is available for package resolution. Exits | |
| 3651 | - non-zero when something will block a build.</li> | ||
| 3651 | + non-zero when something will block a build. Flag: <code>--json</code> to print a | ||
| 3652 | + JSON array of check results to stdout for scripting; the verdict line | ||
| 3653 | + goes to stderr instead, and the exit status is unchanged.</li> | ||
| 3652 | 3654 | <li><code>pn deps [android|ios]</code>: resolve <code>[requirements].packages</code> for every | |
| 3653 | 3655 | device target (iOS device, iOS Simulator, and each Android ABI) | |
| 3654 | 3656 | without installing anything, and report the wheel each package would | |
@@ -3707,7 +3709,8 @@ <h2 id="subcommands">Subcommands<a class="headerlink" href="#subcommands" title= | |||
| 3707 | 3709 | <li><code>pn init [name]</code>: scaffold a new project (<code>pythonnative.toml</code> + | |
| 3708 | 3710 | <code>app/</code>) into <code>./name/</code>, or into the current directory when no name | |
| 3709 | 3711 | is given.</li> | |
| 3710 | - <li><code>pn doctor [platform]</code>: diagnose the local toolchain and config.</li> | ||
| 3712 | + <li><code>pn doctor [platform]</code>: diagnose the local toolchain and config, as a | ||
| 3713 | + report or as JSON with <code>--json</code>.</li> | ||
| 3711 | 3714 | <li><code>pn deps [platform]</code>: resolve <code>[requirements].packages</code> for every | |
| 3712 | 3715 | device target and report which wheels would be used (or why a package | |
| 3713 | 3716 | can't be installed), without building anything.</li> | |
@@ -4015,6 +4018,10 @@ <h2 id="pythonnative.cli.pn.doctor_command" class="doc doc-heading"> | |||
| 4015 | 4018 | <div class="doc doc-contents "> | |
| 4016 | 4019 | ||
| 4017 | 4020 | <p>Run toolchain/config diagnostics and exit non-zero on errors.</p> | |
| 4021 | + <p>With <code>--json</code>, stdout carries a JSON array and nothing else, one | ||
| 4022 | + object per check (see <code>CheckResult.to_dict</code>), and the verdict line | ||
| 4023 | + goes to stderr. The exit status stays keyed to the worst check level | ||
| 4024 | + either way.</p> | ||
| 4018 | 4025 | ||
| 4019 | 4026 | ||
| 4020 | 4027 | <p><span class="doc-section-title">Parameters:</span></p> | |
@@ -4037,7 +4044,7 @@ <h2 id="pythonnative.cli.pn.doctor_command" class="doc doc-heading"> | |||
| 4037 | 4044 | </td> | |
| 4038 | 4045 | <td> | |
| 4039 | 4046 | <div class="doc-md-description"> | |
| 4040 | - <p>Parsed namespace with optional <code>platform</code>.</p> | ||
| 4047 | + <p>Parsed namespace with optional <code>platform</code> and <code>json</code>.</p> | ||
| 4041 | 4048 | </div> | |
| 4042 | 4049 | </td> | |
| 4043 | 4050 | <td> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1620,6 +1620,23 @@ | |||
| 1620 | 1620 | </span> | |
| 1621 | 1621 | </a> | |
| 1622 | 1622 | ||
| 1623 | + <nav class="md-nav" aria-label="Going lower level"> | ||
| 1624 | + <ul class="md-nav__list"> | ||
| 1625 | + | ||
| 1626 | + <li class="md-nav__item"> | ||
| 1627 | + <a href="#a-minimal-fake-backend" class="md-nav__link"> | ||
| 1628 | + <span class="md-ellipsis"> | ||
| 1629 | + | ||
| 1630 | + A minimal fake backend | ||
| 1631 | + | ||
| 1632 | + </span> | ||
| 1633 | + </a> | ||
| 1634 | + | ||
| 1635 | + </li> | ||
| 1636 | + | ||
| 1637 | + </ul> | ||
| 1638 | + </nav> | ||
| 1639 | + | ||
| 1623 | 1640 | </li> | |
| 1624 | 1641 | ||
| 1625 | 1642 | <li class="md-nav__item"> | |
@@ -3544,6 +3561,23 @@ | |||
| 3544 | 3561 | </span> | |
| 3545 | 3562 | </a> | |
| 3546 | 3563 | ||
| 3564 | + <nav class="md-nav" aria-label="Going lower level"> | ||
| 3565 | + <ul class="md-nav__list"> | ||
| 3566 | + | ||
| 3567 | + <li class="md-nav__item"> | ||
| 3568 | + <a href="#a-minimal-fake-backend" class="md-nav__link"> | ||
| 3569 | + <span class="md-ellipsis"> | ||
| 3570 | + | ||
| 3571 | + A minimal fake backend | ||
| 3572 | + | ||
| 3573 | + </span> | ||
| 3574 | + </a> | ||
| 3575 | + | ||
| 3576 | + </li> | ||
| 3577 | + | ||
| 3578 | + </ul> | ||
| 3579 | + </nav> | ||
| 3580 | + | ||
| 3547 | 3581 | </li> | |
| 3548 | 3582 | ||
| 3549 | 3583 | <li class="md-nav__item"> | |
@@ -3819,6 +3853,7 @@ <h2 id="testing-async-code">Testing async code<a class="headerlink" href="#testi | |||
| 3819 | 3853 | <a class="autorefs autorefs-internal" title="<code class="doc-symbol doc-symbol-heading doc-symbol-function"></code> <span class="doc doc-object-name doc-function-name">run_blocking</span>" href="../../api/runtime/#pythonnative.runtime.run_blocking"><code>pn.run_blocking(coro)</code></a> directly. | |
| 3820 | 3854 | See <a href="../async/#testing-async-code">Testing async code</a>.</p> | |
| 3821 | 3855 | <h2 id="going-lower-level">Going lower level<a class="headerlink" href="#going-lower-level" title="Permanent link">¶</a></h2> | |
| 3856 | + <h3 id="a-minimal-fake-backend">A minimal fake backend<a class="headerlink" href="#a-minimal-fake-backend" title="Permanent link">¶</a></h3> | ||
| 3822 | 3857 | <p><code>render</code> is a thin layer over | |
| 3823 | 3858 | <a class="autorefs autorefs-internal" title="<code class="doc-symbol doc-symbol-heading doc-symbol-class"></code> <span class="doc doc-object-name doc-class-name">Reconciler</span>" href="../../api/reconciler/#pythonnative.reconciler.core.Reconciler"><code>Reconciler</code></a> and | |
| 3824 | 3859 | <a class="autorefs autorefs-internal" title="<code class="doc-symbol doc-symbol-heading doc-symbol-class"></code> <span class="doc doc-object-name doc-class-name">FakeBackend</span>" href="../../api/testing/#pythonnative.testing.FakeBackend"><code>FakeBackend</code></a>. Tests that need to | |
| Back | FazBrowse Home | New Git URL |
0 commit comments