RETIRED, Sahara provides a scalable data processing stack and associated management interfaces.
Go to file
Sergey Lukjanov ae76602586 Tools has been improved.
openstack.nose_plugin is now used instead of test_lib
tox runs tools/run_XXX commands
commands unified to be used with tox or directly

Change-Id: I7549408937ca43f4731ebbe7c52419c2577335be
2013-03-27 12:22:55 +04:00
bin savanna-manage has been added; 2013-03-24 22:52:05 +04:00
doc/source savanna-manage has been added; 2013-03-24 22:52:05 +04:00
etc/savanna unused config item has been removed 2013-03-21 23:04:24 +04:00
resources renaming rollbacked to prevent problems with the old image 2013-03-21 19:32:12 +04:00
savanna Tools has been improved. 2013-03-27 12:22:55 +04:00
tools Tools has been improved. 2013-03-27 12:22:55 +04:00
.gitignore dev-conf is now supported 2013-03-23 23:36:08 +04:00
.gitreview Add .gitreview file. 2013-03-21 19:27:54 +04:00
.mailmap .mailmap fixed 2013-03-19 23:38:19 +04:00
.pylintrc eho -> savanna 2013-03-20 11:19:46 +04:00
LICENSE copyright has been added 2013-03-11 10:30:40 +04:00
README.rst small cleanup 2013-03-22 23:50:33 +04:00
openstack-common.conf eho -> savanna 2013-03-20 11:19:46 +04:00
setup.cfg Tools has been improved. 2013-03-27 12:22:55 +04:00
setup.py Author email has been fixed 2013-03-24 22:03:21 +04:00
tox.ini Tools has been improved. 2013-03-27 12:22:55 +04:00

README.rst

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

Pip speedup

Add the following lines to ~/.pip/pip.conf :: [global] download-cache = /home/<username>/.pip/cache index-url = <mirror url>

Note! The ~/.pip/cache folder should be created.

Git hook for fast checks

Just add the following lines to .git/hooks/pre-commit and do chmod +x for it. :: #!/bin/sh # Run fast checks (PEP8 style check and PyFlakes fast static analysis) tools/run_fast_checks

You can added the same check for pre-push, for example, run_tests and run_pylint.

Running static analysis (PyLint)

Just run the following command :: tools/run_pylint

License

Copyright (c) 2013 Mirantis Inc.

Apache License Version 2.0 http://www.apache.org/licenses/LICENSE-2.0