A projects database for projects at the intersection of CS and social change.
source ~/.bashrc
), or re-run your shell (bash
).cd ~/code-the-change-projects
if you cloned the
repo in your home directory).dev_appserver.py .
to run a local server. Note that this is in the
Cloud SDK, not this project's directory.easy_install
: sudo apt-get install python-setuptools
in
Ubuntu. pip or other Python package installers should work as well.nose
(a test runner for Python): sudo easy_install nose
in
Ubuntu.NoseGAE
(a nose plugin for Google App Engine that sets up the
app engine environment and runs tests):
sudo easy_install NoseGAE
in Ubuntu.webtest
(an integration testing framework for webapps):
sudo easy_install webtest
in Ubuntu.mock
(a mock framework that is standard in Python 3):
sudo easy_install mock
in Ubuntu.coverage
(a tool that lets you see what code you're actually
testing): sudo easy_install coverage
in Ubuntu.scripts/test.py
(which will run nosetests for you, looking up your app
engine directory from your PATH). You can also run the tests manually, but
that would require properly setting the PYTHONPATH (eg, using
scripts.common.fix_app_engine_path()
). Please make sure that you fix all
tests before submitting code (as well as testing new features you add).scripts/coverage.py
to make sure that your
tests actually exercise all of your code.sudo apt-get install pylint
in Ubuntu.scripts/lint.py
and fix all warnings or silence them in the
.pylintrc or locally in the file (depending on the issue) before submitting
code.