Crates.io | dmenv |
lib.rs | dmenv |
version | 0.20.1 |
source | src |
created_at | 2018-10-31 20:32:25.845347 |
updated_at | 2022-02-02 09:52:01.592876 |
description | Simple and practical virtualenv manager for Python |
homepage | |
repository | https://github.com/TankerHQ/dmenv |
max_upload_size | |
id | 93875 |
size | 176,687 |
Caveat: this project is no longer maintained. If you are looking for an alternative, take a look at poetry.
dmenv
handles creation of virtualenv and lock files for you.
Here it is in action:
requirements.lock
to "freeze" all your dependencies$ dmenv lock
Creating virtualenv in: /path/to/.venv/3.6.7
-> running /usr/bin/python3 -m /path/to/.venv venv/3.6.7
-> running /path/to/.venv/3.6.7/bin/python -m pip install pip --upgrade
...
-> running /path/to/.venv/3.6.7/bin/pip freeze --exclude-editable
:: Requirements written to /path/to/requirements.lock
requirements.lock
to install all the dependencies
at their frozen version:$ dmenv install
:: Creating virtualenv in: /path/to/.venv/3.6.7
-> running /usr/bin/python3 -m venv /path/to/.venv/3.6.7
-> running /path/to/.venv/3.6.7/bin/python -m pip install pip --upgrade
...
-> running /path/to/.venv/3.6.7/bin/python setup.py develop --no-deps
...
Installing demo script to /path/to/.venv/3.6.7/bin
Go read the fine documentation and learn how to use dmenv for your own Python project :)