Skip to content

Commit 4271862

Browse files
Sadeeeddmmqzacuteenvy
authored
pip-lock, pip-search: add page (#18388)
Co-authored-by: Dylan <[email protected]> Co-authored-by: Lena Pastwa <[email protected]>
1 parent bb148e2 commit 4271862

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

pages/common/pip-lock.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# pip lock
2+
3+
> Lock Python packages and their dependencies into a reproducible file.
4+
> Experimental feature of `pip`.
5+
> More information: <https://pip.pypa.io/en/stable/cli/pip_lock/>.
6+
7+
- Generate a `pylock.toml` for the current project:
8+
9+
`pip lock {{[-e|--editable]}} .`
10+
11+
- Lock dependencies from a requirements file:
12+
13+
`pip lock {{[-r|--requirement]}} {{path/to/requirements.txt}}`
14+
15+
- Specify a custom output file for the lock:
16+
17+
`pip lock {{[-o|--output]}} {{path/to/lockfile.toml}}`
18+
19+
- Lock a specific package and its dependencies:
20+
21+
`pip lock {{package}}`

pages/common/pip-search.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# pip search
2+
3+
> Search for Python packages by name or summary.
4+
> Doesn't work with PyPI; may work with other package indexes.
5+
> More information: <https://pip.pypa.io/en/stable/cli/pip_search/>.
6+
7+
- Search for packages using a custom package index:
8+
9+
`pip search {{[-i|--index]}} {{example.com}} {{query}}`

0 commit comments

Comments
 (0)