Skip to content

Procedure

DinCahill edited this page Apr 3, 2012 · 29 revisions
  1. Fork this repository to create your own copy.
  2. Follow GitHub Flow to branch for new features and issue pull requests when done.
  3. Follow PEP 8 Style Guide for all Python code. Highlights:
  • 4 spaces for indentation
  • 'lower_case' for modules, functions, variables
  • 'CamelCase' for classes and exceptions
  • 'CAPITAL_LETTERS' for constants

Example commands for setting up a virtualenv (assuming that the the branch you forked off has pip_requirements.txt):

  • virtualenv -p $(which python2) ~/path/csbot ; cd ~/path/csbot ; git clone [email protected]:YOURUSERNAME/csbot.git src ; pip install -r src/pip_requirements.txt

Or with virtualenvwrapper:

  • export WORKON_HOME=~/PYTHONENVS ; mkvirtualenv -p $(which python2) csbot ; cd $WORKON_HOME/csbot ; git clone [email protected]:YOURUSERNAME/csbot.git src ; pip install -r src/pip_requirements.txt
  • Then add WORKON_HOME=~/PYTHONENVS to .bashrc
Clone this wiki locally