Skip to content

Commit

Permalink
docs: Add 'uv pip install' and 'uv pip sync' examples (#36)
Browse files Browse the repository at this point in the history
* Demonstrate how to install the lock file with either 'uv pip install'
  or 'uv pip sync'.
  • Loading branch information
matthewfeickert authored Oct 4, 2024
1 parent d2b63e4 commit 8308eb2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ <h2>Usage Examples</h2>
python -m pip install --upgrade --require-hashes --requirement https://iris-hep.org/analysis-systems-env-nightlies/iris-hep/3.12/requirements.lock
</p>

<b>Python 3.12 uv example:</b>

<p style="font-family:'Lucida Console', monospace">
uv pip install --require-hashes --requirement https://iris-hep.org/analysis-systems-env-nightlies/iris-hep/3.12/requirements.lock
</p>

or

<p style="font-family:'Lucida Console', monospace">
# note that uv pip sync removes any packages in the target virtual environment not in the lock file
<br>
uv pip sync --require-hashes https://iris-hep.org/analysis-systems-env-nightlies/iris-hep/3.12/requirements.lock
</p>

<b>Python 3.12 conda-lock example:</b>

Expand Down

0 comments on commit 8308eb2

Please sign in to comment.