slurp

Slurper


License
Other
Install
pip install slurp==0.6

Documentation

Build Status

Installing

From PyPI:

$ sudo pip install slurp[watch,stats,elasticsearch]

which will drop all the code, but for system integration use a package:

$ sudo apt-get install slurp

or

$ sudo yum install slurp

Testing

Get the code:

$ git clone git@github.com:bninja/slurp.git ~/code/slurp

Setup environment:

$ mkvirtualenv slurp
(slurp)$ cd ~/code/slurp
(slurp)$ python setup.py develop

And run the tests:

(slurp)$ nosetests --with-coverage --cover-package=slurp

Packaging

You'll probably want to package off a particular tag, so:

$ cd ~/code/slurp
$ git checkout tags/v0.6.0

PyPI

Package and publish to PyPI like this:

$ cd src
$ sudo python setup.py sdist upload

Debian

Get these:

Make sure you are not in a virtualenv:

(slurp)$ deactivate
$ 

and then:

$ cd deb
$ mkdir build
$ cp -R ../src/* debian files Makefile build/
$ cd build
$ debuild -uc -us 

which, e.g. for 0.6.0, generates these:

deb/slurp_0.6.0_amd64.build
deb/slurp_0.6.0_amd64.changes
deb/slurp_0.6.0_amd64.deb
deb/slurp_0.6.0.dsc
deb/slurp_0.6.0.tar.gz

Install it like:

$ sudo dpkg -i deb/slurp_0.6.0_amd64.deb

and verify the install:

$ slurp -v
0.6