FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

deploy: 375c3a2d1e222c0cbf9afad6a6b4992d4d8e64ae · pythonnative/pythonnative@755d980 · GitHub

Commit 755d980

Browse files
committed
deploy: 375c3a2
1 parent 48ce30f commit 755d980

3 files changed

Lines changed: 46 additions & 4 deletions

File tree

‎api/cli/index.html‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3648,7 +3648,9 @@ <h2 id="subcommands">Subcommands<a class="headerlink" href="#subcommands" title=
36483648
<li><code>pn doctor [android|ios]</code>: diagnose the local toolchain and validate
36493649
<code>pythonnative.toml</code>, including that a <code>python3.X</code> matching
36503650
<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>
36523654
<li><code>pn deps [android|ios]</code>: resolve <code>[requirements].packages</code> for every
36533655
device target (iOS device, iOS Simulator, and each Android ABI)
36543656
without installing anything, and report the wheel each package would
@@ -3707,7 +3709,8 @@ <h2 id="subcommands">Subcommands<a class="headerlink" href="#subcommands" title=
37073709
<li><code>pn init [name]</code>: scaffold a new project (<code>pythonnative.toml</code> +
37083710
<code>app/</code>) into <code>./name/</code>, or into the current directory when no name
37093711
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>
37113714
<li><code>pn deps [platform]</code>: resolve <code>[requirements].packages</code> for every
37123715
device target and report which wheels would be used (or why a package
37133716
can't be installed), without building anything.</li>
@@ -4015,6 +4018,10 @@ <h2 id="pythonnative.cli.pn.doctor_command" class="doc doc-heading">
40154018
<div class="doc doc-contents ">
40164019

40174020
<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>
40184025

40194026

40204027
<p><span class="doc-section-title">Parameters:</span></p>
@@ -4037,7 +4044,7 @@ <h2 id="pythonnative.cli.pn.doctor_command" class="doc doc-heading">
40374044
</td>
40384045
<td>
40394046
<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>
40414048
</div>
40424049
</td>
40434050
<td>

‎guides/testing/index.html‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,6 +1620,23 @@
16201620
</span>
16211621
</a>
16221622

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+
16231640
</li>
16241641

16251642
<li class="md-nav__item">
@@ -3544,6 +3561,23 @@
35443561
</span>
35453562
</a>
35463563

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+
35473581
</li>
35483582

35493583
<li class="md-nav__item">
@@ -3819,6 +3853,7 @@ <h2 id="testing-async-code">Testing async code<a class="headerlink" href="#testi
38193853
<a class="autorefs autorefs-internal" title="&lt;code class=&quot;doc-symbol doc-symbol-heading doc-symbol-function&quot;&gt;&lt;/code&gt; &lt;span class=&quot;doc doc-object-name doc-function-name&quot;&gt;run_blocking&lt;/span&gt;" href="../../api/runtime/#pythonnative.runtime.run_blocking"><code>pn.run_blocking(coro)</code></a> directly.
38203854
See <a href="../async/#testing-async-code">Testing async code</a>.</p>
38213855
<h2 id="going-lower-level">Going lower level<a class="headerlink" href="#going-lower-level" title="Permanent link">&para;</a></h2>
3856+
<h3 id="a-minimal-fake-backend">A minimal fake backend<a class="headerlink" href="#a-minimal-fake-backend" title="Permanent link">&para;</a></h3>
38223857
<p><code>render</code> is a thin layer over
38233858
<a class="autorefs autorefs-internal" title="&lt;code class=&quot;doc-symbol doc-symbol-heading doc-symbol-class&quot;&gt;&lt;/code&gt; &lt;span class=&quot;doc doc-object-name doc-class-name&quot;&gt;Reconciler&lt;/span&gt;" href="../../api/reconciler/#pythonnative.reconciler.core.Reconciler"><code>Reconciler</code></a> and
38243859
<a class="autorefs autorefs-internal" title="&lt;code class=&quot;doc-symbol doc-symbol-heading doc-symbol-class&quot;&gt;&lt;/code&gt; &lt;span class=&quot;doc doc-object-name doc-class-name&quot;&gt;FakeBackend&lt;/span&gt;" href="../../api/testing/#pythonnative.testing.FakeBackend"><code>FakeBackend</code></a>. Tests that need to

‎search/search_index.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL