mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 19:59:24 +08:00
pip-lock, pip-search: add page (#18388)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# pip lock
|
||||
|
||||
> Lock Python packages and their dependencies into a reproducible file.
|
||||
> Experimental feature of `pip`.
|
||||
> More information: <https://pip.pypa.io/en/stable/cli/pip_lock/>.
|
||||
|
||||
- Generate a `pylock.toml` for the current project:
|
||||
|
||||
`pip lock {{[-e|--editable]}} .`
|
||||
|
||||
- Lock dependencies from a requirements file:
|
||||
|
||||
`pip lock {{[-r|--requirement]}} {{path/to/requirements.txt}}`
|
||||
|
||||
- Specify a custom output file for the lock:
|
||||
|
||||
`pip lock {{[-o|--output]}} {{path/to/lockfile.toml}}`
|
||||
|
||||
- Lock a specific package and its dependencies:
|
||||
|
||||
`pip lock {{package}}`
|
||||
@@ -0,0 +1,9 @@
|
||||
# pip search
|
||||
|
||||
> Search for Python packages by name or summary.
|
||||
> Doesn't work with PyPI; may work with other package indexes.
|
||||
> More information: <https://pip.pypa.io/en/stable/cli/pip_search/>.
|
||||
|
||||
- Search for packages using a custom package index:
|
||||
|
||||
`pip search {{[-i|--index]}} {{example.com}} {{query}}`
|
||||
Reference in New Issue
Block a user