deploy: 33bcef9dc7
This commit is contained in:
@@ -301,7 +301,7 @@ useful.</p>
|
||||
<h2 id="add-a-new-dependency"><a class="header" href="#add-a-new-dependency">...add a new dependency?</a></h2>
|
||||
<p>Either:</p>
|
||||
<ul>
|
||||
<li>manually update <code>pyproject.toml</code>; then <code>poetry lock --no-update</code>; or else</li>
|
||||
<li>manually update <code>pyproject.toml</code>; then <code>poetry lock</code>; or else</li>
|
||||
<li><code>poetry add packagename</code>. See <code>poetry add --help</code>; note the <code>--dev</code>,
|
||||
<code>--extras</code> and <code>--optional</code> flags in particular.</li>
|
||||
</ul>
|
||||
@@ -311,10 +311,10 @@ useful.</p>
|
||||
<pre><code class="language-shell">poetry remove packagename
|
||||
</code></pre>
|
||||
<p>ought to do the trick. Alternatively, manually update <code>pyproject.toml</code> and
|
||||
<code>poetry lock --no-update</code>. Include the updated <code>pyproject.toml</code> and <code>poetry.lock</code>
|
||||
<code>poetry lock</code>. Include the updated <code>pyproject.toml</code> and <code>poetry.lock</code>
|
||||
files in your commit.</p>
|
||||
<h2 id="update-the-version-range-for-an-existing-dependency"><a class="header" href="#update-the-version-range-for-an-existing-dependency">...update the version range for an existing dependency?</a></h2>
|
||||
<p>Best done by manually editing <code>pyproject.toml</code>, then <code>poetry lock --no-update</code>.
|
||||
<p>Best done by manually editing <code>pyproject.toml</code>, then <code>poetry lock</code>.
|
||||
Include the updated <code>pyproject.toml</code> and <code>poetry.lock</code> in your commit.</p>
|
||||
<h2 id="update-a-dependency-in-the-locked-environment"><a class="header" href="#update-a-dependency-in-the-locked-environment">...update a dependency in the locked environment?</a></h2>
|
||||
<p>Use</p>
|
||||
@@ -332,7 +332,7 @@ affecting the broad dependencies listed in the wheel.</p>
|
||||
|
||||
# Get poetry to recompute the content-hash of pyproject.toml without changing
|
||||
# the locked package versions.
|
||||
poetry lock --no-update
|
||||
poetry lock
|
||||
</code></pre>
|
||||
<p>Either way, include the updated <code>poetry.lock</code> file in your commit.</p>
|
||||
<h2 id="export-a-requirementstxt-file"><a class="header" href="#export-a-requirementstxt-file">...export a <code>requirements.txt</code> file?</a></h2>
|
||||
|
||||
Reference in New Issue
Block a user