No description
Find a file
Dimitri Merejkowsky 04675e53f3
Some checks failed
Deploy documentation / deploy_documentation (push) Has been cancelled
Run linters / lint (push) Has been cancelled
Run tests / test (macos-latest) (push) Has been cancelled
Run tests / test (ubuntu-latest) (push) Has been cancelled
Run tests / test (windows-latest) (push) Has been cancelled
Update README.md
2024-02-09 18:54:29 +01:00
.github/workflows Add an action to deploy the doc 2019-10-29 13:25:26 +01:00
demo dmenv run can now be used to run scripts from the project 2019-06-26 17:35:30 +02:00
docs Typo fixes in documentation 2019-11-13 15:38:04 +01:00
src Fix error message when calling dmenv develop without virtual env 2020-01-13 22:30:45 +01:00
tests clippy fixes 2020-01-13 22:22:40 +01:00
.gitignore Document more workflows 2019-01-30 15:06:02 +01:00
Cargo.lock Bump to 0.20.0 2019-11-12 15:48:11 +01:00
Cargo.toml Bump to 0.20.0 2019-11-12 15:48:11 +01:00
CHANGELOG.md Next release is 0.20.0 and is out today! 2019-11-12 15:47:02 +01:00
README.md Update README.md 2024-02-09 18:54:29 +01:00
tbump.toml Bump to 0.20.0 2019-11-12 15:48:11 +01:00

Caveat: this project is no longer maintained. If you are looking for an alternative, take a look at rye.

dmenv: simple and practical virtualenv manager for Python

Docs crates.io image Test Results Lint Results Audit Dependencies

Overview

dmenv handles creation of virtualenv and lock files for you.

Here it is in action:

  • First, generate a 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
  • Then, anyone can use the 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

Interested?

Go read the fine documentation and learn how to use dmenv for your own Python project :)