Skip to content

mohzah/spectrometer2

Repository files navigation

spectrometer2

Project moved to https://git.opendaylight.org/gerrit/#/admin/projects/spectrometer

Installation

$ cd spectrometer2/
$ pip install -r requirements.txt
$ python run.py

open a browswer http://127.0.0.1:5000/git/test must show commits log from local directory of spectrometer2.

Usage

Add a repository address to etc/repositories.yaml with the following format

modulename:
  repo: path/to/bare_repo/directory

Now the flask application must be up and serve requests:

$ python dashboard/webapp.py

Now http://127.0.0.1:5000/git/modulename will return repository log of added repository address in yaml file.

Contribuition

Style guide:
PEP8
https://code.google.com/p/soc/wiki/PythonStyleGuide
http://www.pocoo.org/internal/styleguide/#styleguide

Add new files to list of files checked for PEP8 conformance in test/test_pep8.py in the list variable 'files_to_check'

Test

$ cd spectrometer2/
$ pip install -r test-requirements.txt
$ py.test tests