Several fixes in tools and docs.

run_pep8 is now works correctly with venvs;
docs updated to point to the stackforge repo.

Change-Id: Ieddc29d3020e09a52b0b8fc5a7ad68086aaa8cee
This commit is contained in:
Sergey Lukjanov 2013-03-29 13:14:22 +04:00
parent 4356068ed8
commit 416a414bec
5 changed files with 11 additions and 34 deletions

View File

@ -3,33 +3,8 @@ Savanna project
QuickStart (Ubuntu)
----------
1. Install Python with headers and virtualenv:
::
apt-get install python-dev python-virtualenv
2. Prepare virtual environment:
::
tools/install_venv
3. To run Python fro created environment just call:
::
tools/with_venv python
4. Run PEP8 (style) and PyFlakes (static analysis) checks:
::
tools/run_fast_checks
5. Build docs:
::
tools/build_docs
6. Run all tests:
::
tools/run_tests
7. Run Savanna REST API with stub data and cluster ops on port 8080
::
.venv/bin/python bin/savanna-api --reset-db --stub-data --allow-cluster-ops
Please, take a look at http://savanna.mirantis.com/quickstart.html
Pip speedup

View File

@ -14,7 +14,7 @@ Useful links
quickstart
how-to-participate
* `Sources repo <https://github.com/mirantis/savanna>`_
* `Sources repo <https://github.com/stackforge/savanna>`_
* `Launchpad project <https://launchpad.net/savanna>`_
* `Savanna REST API and custom Horizon screencast <http://www.youtube.com/watch?v=UUt2gqGHcPg>`_
@ -160,6 +160,6 @@ Useful links
horizon/index
quickstart
* `Sources repo <https://github.com/mirantis/savanna>`_
* `Sources repo <https://github.com/stackforge/savanna>`_
* `Launchpad project <https://launchpad.net/savanna>`_
* `Savanna REST API and custom Horizon screencast <http://www.youtube.com/watch?v=UUt2gqGHcPg>`_

View File

@ -15,12 +15,12 @@ echo "=============================="
# python tools/hacking.py --doctest
# Until all these issues get fixed, ignore.
PEP8='python tools/hacking.py --ignore=N301'
PEP8="$VIRTUAL_ENV/bin/python tools/hacking.py --ignore=N301"
EXCLUDE='--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*'
EXCLUDE+=',*egg,build,*hacking.py'
EXCLUDE="--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*"
EXCLUDE=$EXCLUDE:",*egg,build,*hacking.py"
${PEP8} ${EXCLUDE} .
${PEP8} --filename=savanna* bin
! pyflakes savanna/ | grep "imported but unused\|redefinition of function"
! $VIRTUAL_ENV/bin/pyflakes savanna/ | grep "imported but unused\|redefinition of function"

View File

@ -1,4 +1,4 @@
pep8>=1.0.1
pep8>=1.3.3
pylint
pyflakes
sphinx>=1.1.2

View File

@ -12,7 +12,9 @@ commands = bash tools/run_tests {posargs}
downloadcache = ~/cache/pip
[testenv:pep8]
deps = pep8>=1.3.3
deps =
pep8>=1.3.3
pyflakes
commands = bash tools/run_pep8
[testenv:cover]