Jinja2 Cheatsheet
Basic Jinja
Simple substitution of the value of |
|
Simple conditional |
|
Uninstall a python package + [source,bash] ---- |
|
See what versions are available (use illegal version string!) |
|
Upgrade a package |
|
Package Management
List installed packages |
|
List installed packages |
|
Upgrade installed package |
|
Capture installed packages |
|
Install a dependencies file |
|
Deleting secondary dependencies, not so easy, hacky solution? :(
-
Capture your dependencies
pip freeze > requirements.ym;
-
Edit
requirements.yml
removing unwanted dependencies -
Make a new virtualenv
-
Install your new dependencies list
pip install -r requirements.yml