Commit Graph

5 Commits

Author SHA1 Message Date
Robert Collins 33c4b02e76 Next version is 0.2
pbr pre-versioning causes current sdist to have versions leading up to 0.1, but
that is already released - we should be leading up to 0.2.

Change-Id: Ia7860bf4588daeb19fc0a75c7f914e6b11c4ccae
2014-08-20 13:57:47 +12:00
pran1990 3499d899c8 Make backends into drivers, loadable as entry points
Added base.py, which has classes for backends to derive from. This is
the stevedore suggested way of writing drivers.
stevedore.readthedocs.org/en/latest/tutorial/creating_plugins.html

Added entrypoints to setup.cfg

implements blueprint backend-abstraction
Change-Id: Ib53bd1ec930f15480e33b9105033e9999f96b842
2014-05-30 20:09:12 +00:00
pran1990 24983c6fc6 Make entropy suitable for pypi distribution, part 2
Correct logging: reset loggers in engine.py, and setup your own
Added functions to setup logging in engine.py and Audit class,
can be used by audit scripts. Added a reset_logger function in utils

Expose __main__.py as a CLI on packaging. So after installing
the entropy package, you can call commands like
entropy register-audit
entropy start-engine
from anywhere in your machine. Made changes to setup.cfg to make
the main function an entry point.

Moved the engine_cfg file to /tmp/engines.cfg. That way, even though
it is hardcoded, it's at least fairly uniform across machines.

Change-Id: I704bf5e4635ffc539d7a73c5f84ef4bf8b2e801e
2014-04-15 23:03:04 -07:00
pran1990 5fc67635ad Enable stevedore and dynamic loading
Load modules dynamically, allowing better control over audit/react scripts
Change code structure a bit (put audit scripts in audit/ dir, react scripts
in repair/ dir)
Enable stevedore, for audit/react scripts installed with the package
Remove all homedir references

Change-Id: I7351d6b7cd9ca5ba9cfa9526dfbefbfecacc3dc8
2014-02-03 00:01:15 -08:00
pran1990 d3ae477176 Add code to stackforge/entropy
Because upstream wasn't mentioned when project was created, merge
existing upstream code manually. Current upstream is
https://github.com/pran1990/entropy

Add first draft of script in entropy/entropy.py. Utils used by the package are in entropy/utils.py

Added licenses to py scripts and LICENCE file

Added tox.ini, requirements.txt, and test-requirements.txt to setup
environments for gerrit's jenkins tests

Added sphinx docs in docs/. Instructions to build docs are in docs/README.rst

Change-Id: Ifff7cff38989e8c5509d3ecf4b34485893bfcfdb
2013-12-13 11:51:43 -08:00