File: workflows.md

package info (click to toggle)
pipenv 2024.0.1%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,568 kB
  • sloc: python: 187,163; makefile: 191; javascript: 133; sh: 64
file content (43 lines) | stat: -rw-r--r-- 1,280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Pipenv Workflows

Clone / create project repository:

    $ cd myproject

Install from `Pipfile.lock`, if there is one:

    $ pipenv install

Add a package to your project, recalibrating subset of lock file using the Pipfile specifiers:

    $ pipenv install <package>

- Note: This will create a `Pipfile` if one doesn't exist. If one does exist, it will automatically be edited with the new package you provided, the lock file updated and the new dependencies installed.
- `pipenv install` is fully compatible with `pip install` [package specifiers](https://pip.pypa.io/en/stable/user_guide/#installing-packages).
- Additional arguments may be supplied to `pip` by supplying `pipenv` with `--extra-pip-args`.

Update everything (equivalent to `pipenv lock && pipenv sync`):

    $ pipenv update

Update and install just the relevant package and its sub-dependencies:

    $ pipenv update <package>

Update in the Pipfile/lockfile just the relevant package and its sub-dependencies:

    $ pipenv upgrade <package>

Find out what's changed upstream:

    $ pipenv update --outdated

Determine the virtualenv `PATH`:

    $ pipenv --venv

Activate the Pipenv shell:

    $ pipenv shell

- Note: This will spawn a new shell subprocess, which can be deactivated by using `exit`.