2011-01-30 21:30:39 +03:00
|
|
|
# To install django-rest-framework in a virtualenv environment...
|
2010-12-30 04:02:11 +03:00
|
|
|
|
|
|
|
hg clone https://tomchristie@bitbucket.org/tomchristie/django-rest-framework
|
|
|
|
cd django-rest-framework/
|
|
|
|
virtualenv --no-site-packages --distribute --python=python2.6 env
|
|
|
|
source ./env/bin/activate
|
2011-03-17 11:51:53 +03:00
|
|
|
pip install -r requirements.txt # django, coverage
|
2010-12-30 04:02:11 +03:00
|
|
|
|
2011-02-19 13:26:27 +03:00
|
|
|
# To run the tests...
|
2011-01-17 20:34:58 +03:00
|
|
|
|
2011-03-13 20:08:46 +03:00
|
|
|
export PYTHONPATH=. # Ensure djangorestframework is on the PYTHONPATH
|
|
|
|
python djangorestframework/runtests/runtests.py
|
|
|
|
|
|
|
|
|
|
|
|
# To run the test coverage report...
|
|
|
|
|
|
|
|
export PYTHONPATH=. # Ensure djangorestframework is on the PYTHONPATH
|
|
|
|
python djangorestframework/runtests/runcoverage.py
|
2011-01-30 21:30:39 +03:00
|
|
|
|
|
|
|
# To run the examples...
|
|
|
|
|
2011-02-19 13:26:27 +03:00
|
|
|
pip install -r examples/requirements.txt # pygments, httplib2, markdown
|
2011-01-30 21:30:39 +03:00
|
|
|
cd examples
|
|
|
|
export PYTHONPATH=..
|
|
|
|
python manage.py syncdb
|
|
|
|
python manage.py runserver
|
2011-01-17 20:34:58 +03:00
|
|
|
|
2011-02-19 13:26:27 +03:00
|
|
|
# To build the documentation...
|
|
|
|
|
|
|
|
pip install -r docs/requirements.txt # sphinx
|
|
|
|
sphinx-build -c docs -b html -d docs/build docs html
|
2011-03-13 20:08:46 +03:00
|
|
|
|
|
|
|
# To run the tests against the full set of supported configurations
|
|
|
|
|
|
|
|
deactivate # Ensure we are not currently running in a virtualenv
|
|
|
|
tox
|
2011-06-02 15:21:22 +04:00
|
|
|
|
|
|
|
# To create sdist packages
|
|
|
|
|
|
|
|
python setup.py sdist --formats=gztar,zip
|