You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,52 @@ Encapsulate common rest operations between business services propagating trace h
40
40
### pyms/tracer
41
41
Create an injector `flask_opentracing.FlaskTracer` to use in our projects
42
42
43
+
## Pipenv
44
+
45
+
### Advantages over plain pip and requirements.txt
46
+
[Pipenv](https://pipenv.readthedocs.io/en/latest/) generates two files: a `Pipfile`and a `Pipfile.lock`.
47
+
*`Pipfile`: Is a high level declaration of the dependencies of your project. It can contain "dev" dependencies (usually test related stuff) and "standard" dependencies which are the ones you'll need for your project to function
48
+
*`Pipfile.lock`: Is the "list" of all the dependencies your Pipfile has installed, along with their version and their hashes. This prevents two things: Conflicts between dependencies and installing a malicious module.
49
+
50
+
### How to...
51
+
52
+
Here the most 'common' `pipenv` commands, for a more in-depth explanation please refer to the [official documentation](https://pipenv.readthedocs.io/en/latest/).
53
+
54
+
#### Install pipenv
55
+
```bash
56
+
pip install pipenv
57
+
```
58
+
59
+
#### Install dependencies defined in a Pipfile
60
+
```bash
61
+
pipenv install
62
+
```
63
+
64
+
#### Install both dev and "standard" dependencies defined in a Pipfile
65
+
```bash
66
+
pipenv install --dev
67
+
```
68
+
69
+
#### Install a new module
70
+
```bash
71
+
pipenv install django
72
+
```
73
+
74
+
#### Install a new dev module (usually test related stuff)
0 commit comments