Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 953 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 953 Bytes

venvup

venvup is a bash script that creates a Python virtual environment (venv) in the current directory. It also installs requirements via pip if a requirements.txt and/or a requirements-dev.txt file is found.

The script was built to run on Linux and has only been used by the author on Ubuntu (and flavours thereof).

It assumes using venv to create a virtual environment with the name venv, not .venv.

If an argument is passed when running the script, it is used as a prefix in naming the prompt for the venv. Only the first argument is used. For example, if you run venvup test the prompt will be (test-venv) when the virtual environment is activated.

Links

venv - Creation of virtual environments - Python documentation

terminal - List of ANSI color escape sequences - Stack Overflow