https://github.com/bbengfort/venv
Helpers for virtualenv and virtualenvwrapper
https://github.com/bbengfort/venv
Last synced: 11 months ago
JSON representation
Helpers for virtualenv and virtualenvwrapper
- Host: GitHub
- URL: https://github.com/bbengfort/venv
- Owner: bbengfort
- License: mit
- Created: 2014-02-22T21:05:18.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-22T21:14:19.000Z (over 12 years ago)
- Last Synced: 2025-03-30T05:26:51.158Z (over 1 year ago)
- Size: 116 KB
- Stars: 15
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# virtualenv cheatsheet #
**Helpers for virtualenv and virtualenvwrapper.**
## Setup ##
1. Install virtualenv and virtualenvwrapper with pip or your preferred method.
2. Copy the enviornment variables from `bash_environ` to your `.profile` or `.bashrc` or `.bash_profile`
3. Source your profile (or exit and reopen your terminal)
## Read ##
Check out the [cheatsheet](virtualenv_cheatsheet.md) for recommendations on how to use these helpers.
## Python Package setup ##
This is my normal method to setup a Python project:
1. Create a directy in `$PROJECT_HOME` for my project lets name it "project"
2. `cd $PROJECT_HOME/project
3. git init
4. touch .gitignore
5. venv.init -a $(pwd) project
6. mkdirs docs tests project bin
7. touch tests/__init__.py
8. touch project/__init__.py
9. touch setup.py
10. pip install (whatever you need)
11. pip freeze > requirements.txt
12. touch README.md
13. touch LICENSE
At this point you should have everything you need to get started (commit your initial structure and go!)