Skip to content

Commit 0975d54

Browse files
committed
rendering docs for tests and installation. More to come
1 parent 7902c87 commit 0975d54

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+3215
-1078
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pyc

_sources/class.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. module:: pyres
2+
3+
ResQ Classes
4+
==========================================
5+
6+
.. autoclass:: pyres.ResQ

_sources/example.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ In the **scripts** folder there is an executable::
4242
$ ./pyres_worker Spam
4343

4444

45-
Just pass a comma seperated list of queues the worker should poll.
45+
Just pass a comma separated list of queues the worker should poll.
4646

4747

_sources/index.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Contents:
1212
:maxdepth: 2
1313

1414
intro
15+
install
16+
example
17+
class
18+
tests
1519

1620
Indices and tables
1721
==================

_sources/install.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Installation
2+
===============
3+
4+
Requirements:
5+
--------------
6+
simplejson>=2.0.9
7+
itty>=0.6.2
8+
redis>=0.6.0
9+
pystache>=0.1.0
10+
11+
Make sure you install these requirements before proceeding.
12+
13+
.. todo:: Need to point to notes on redis installation and get python-redis.
14+
15+
16+
To install pyres.::
17+
18+
$ git clone git://github.com/binarydud/pyres.git
19+
$ cd pyres
20+
$ python setup.py build
21+
$ python setup.py install
22+
23+
Might need to run as sudo to install.
24+
25+
26+

_sources/tests.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Tests
2+
=======
3+
4+
PyRes comes with a test suite which connects to a local redis server and
5+
creates a couple of *Queues* and *jobs*.
6+
7+
To run tests make sure you have nose_ installed.::
8+
9+
$ easy_install nose
10+
$ redis-server [PATH_TO_YOUR_REDIS_CONFIG]
11+
$ nosetests
12+
13+
Add **-v** flag if you want verbose output.
14+
15+
.. _nose: http://somethingaboutorange.com/mrl/projects/nose/0.11.1/

0 commit comments

Comments
 (0)