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
Get the code:
$ git clone [email protected]: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
You'll probably want to package off a particular tag, so:
$ cd ~/code/slurp
$ git checkout tags/v0.6.0
Package and publish to PyPI like this:
$ cd src
$ sudo python setup.py sdist upload
Get these:
- bdist-venv
- build-essential
- devsripts
- debhelper
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