Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 chef
Octocat-spinner-32 deb
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 README.md
Octocat-spinner-32 tox.ini
README.md

Build Status

Installing

From PyPI:

$ sudo pip instal 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
Something went wrong with that request. Please try again.