Helpers for virtualenv and virtualenvwrapper.
- Install virtualenv and virtualenvwrapper with pip or your preferred method.
- Copy the enviornment variables from
bash_environ
to your.profile
or.bashrc
or.bash_profile
- Source your profile (or exit and reopen your terminal)
Check out the cheatsheet for recommendations on how to use these helpers.
This is my normal method to setup a Python project:
- Create a directy in
$PROJECT_HOME
for my project lets name it "project" - `cd $PROJECT_HOME/project
- git init
- touch .gitignore
- venv.init -a $(pwd) project
- mkdirs docs tests project bin
- touch tests/init.py
- touch project/init.py
- touch setup.py
- pip install (whatever you need)
- pip freeze > requirements.txt
- touch README.md
- touch LICENSE
At this point you should have everything you need to get started (commit your initial structure and go!)