Commit Graph

38 Commits

Author SHA1 Message Date
Selwin Ong efcdd15902 Update setup.py to ensure Python 2.6 dependencies are installed by pip. 2015-06-01 11:00:26 +07:00
zhangliyong 842f27294a Convert rqworker to 'rq worker' subcommand 2014-09-12 10:26:35 +07:00
Vincent Driessen b5fbc3992b Restructure new CLI modules.
A few things have changed.  First of all, there is no separate copy of
the argparse-based `rqinfo` anymore.  It now fully utilizes the new
Click subcommand.  In other words: `rqinfo` and `rq info` both invoke
the same function under the hood.

In order to support this, the main command group now does NOT take
a `url` option and initializes the connection.  Besides supporting this
alias pattern, this change was useful for two more reasons: (1) it
allows us to add subcommands that don't need the Redis server running in
the future, and (2) it makes the `--url` option an option underneath
each subcommand.  This avoids command invocations that look like this:

    $ rq --url <url> info --more --flags

And instead allows us to pass the URL to each subcommand where it's
deemed necessary:

    $ rq info --url <url> --more --flags

Which is much friendlier to use/remember.
2014-09-06 11:13:04 +02:00
zhangliyong c796e3249d Fix click dependency version 2014-09-02 10:04:02 +07:00
zhangliyong 551483b477 Add rq info command 2014-08-19 10:29:39 +08:00
zhangliyong e948bde5d7 Add rq command when installing 2014-08-15 16:25:14 +08:00
Vincent Driessen 6ee28fae9c Redis 2.7.0 is required for lua scripting support 2014-05-07 19:35:46 +02:00
Vincent Driessen 3649ff863b Don't rely on external package `first`. 2014-04-04 13:01:30 +02:00
Vincent Driessen 3667e37ed3 Don't expose the envvar values through `rqinfo -h`. 2014-04-04 09:10:07 +02:00
Vincent Driessen dbcba85815 Properly declare Python 3 compatibility. 2014-03-10 15:16:50 -07:00
Malthe Borch c5a381fbe9 Remove dependency on 'times' library (see issue #286).
Basically, for the functionality needed, a dependency on 'times' (which
in turn depends on 'python-dateutil') seem unnecessary.
2013-12-11 10:47:42 +01:00
Maxime Rouyrre a8b6596145 Exclude tests package from setup.py.
Pull request nvie/rq#192 solved the issue for `pip install rq` but not when
directly installing from a git repository as in
`pip install git+git://github.com/nvie/rq@master` that still creates a
possibly conflicting `tests` folder.
2013-10-29 11:10:39 +01:00
Alex Morega 998ff1a1ab fix reading of version in py3 2013-08-20 13:01:10 +03:00
Vincent Driessen c7e54d8c1a Promote to 'beta' stage.
This should've been done on 0.3.0 already, actually.
2013-01-23 20:49:42 +01:00
Vincent Driessen d1c2b3b78d Merge branch 'selwin-remove-logbook'
Conflicts:
	rq/utils.py
	rq/worker.py
	setup.cfg
	setup.py
2013-01-18 15:47:21 +01:00
Jon Parise e90efc254b Use `redis.from_url()` for greater compatibility.
This lets us keep the redis-py version requirement back at 2.4.13.
2012-10-05 11:33:46 -07:00
Jon Parise eb00f69ced Add a standard --url argument to all scripts.
redis-py now supports URL-based connection configuration.  When --url
is specified, we use it to construct the Redis object.  Otherwise, we
use the existing argument-based construction method.

`Redis.from_url()` is new in redis-py 2.6.2, so that prerequisite has
been adjusted accordingly.
2012-10-04 16:57:49 -07:00
Vincent Driessen 879a87d158 Remove logbook and replace it with logging.
This reverts commit 1ab8c19696 and
reintroduces all changes made by @dstufft.

Still, it needs more patches to reeanble the default log-to-console
behaviour.  See #121.
2012-09-02 11:26:31 +02:00
Vincent Driessen 1ab8c19696 Revert "Remove logbook and replace it with logging".
This reverts the commit range f367c38..978ba2d.

Issue #121 is currently blocking the 0.3.1 release.
2012-08-30 21:35:44 +02:00
Vincent Driessen 481369a88d Require at least redis-py version 2.4.
This fixes #106.
2012-08-29 13:06:15 +02:00
Donald Stufft f188d66354 Remove logbook from the install_requires and other dependency areas 2012-08-21 11:45:55 -04:00
Vincent Driessen 074d42fe54 Remove strict procname dependency.
This fixes #80.
2012-06-03 22:08:50 +02:00
Vincent Driessen 8aaa975fa9 Find all packages.
This fixes #67.
2012-05-15 08:37:11 +02:00
Wichert Akkerman 97d2e4d784 Use console_scripts instead of scripts.
Unfortunately zc.buildout does not support distribute/setuptools script
option (see https://bugs.launchpad.net/zc.buildout/+bug/422724), but it
does support console_scripts. This also makes the scripts importable,
allowing for unittest and code reuse.
2012-05-04 09:49:18 +02:00
Vincent Driessen 100d23b72e Tag the first public release. 2012-03-28 22:17:40 +02:00
Vincent Driessen a662180fd3 Make importlib dependency conditional on the Python version. 2012-03-22 14:51:27 +01:00
Vincent Driessen 15342f14d3 Store pickled function calls as strings.
This aids unpacking in the case of a function that isn't importable from
the worker's runtime. The unpickling will now (almost) always succeed,
and throw an ImportError later on, when the function is actually
accessed (thus imported implicitly).

The end result is a job on the failed queue, with exc_info describing
the import error, which is tremendously useful.
2012-03-21 13:09:52 +01:00
Vincent Driessen 65105b44c3 CHECKPOINT: Initial part of the big refactor. 2012-02-08 00:40:43 +01:00
Vincent Driessen 27ddde2008 Make procname a hard dependency. 2011-11-28 14:17:42 +01:00
Vincent Driessen da228dd76c Fix casing. 2011-11-28 14:07:12 +01:00
Vincent Driessen 2300338893 Update dependencies accordingly 2011-11-28 14:07:04 +01:00
Vincent Driessen c820ba24fa Move to Alpha stage. 2011-11-28 12:11:09 +01:00
Vincent Driessen 66775b7012 Put the version number somewhere central. 2011-11-28 12:10:15 +01:00
Vincent Driessen e49e0135bc Update Trove classifiers. 2011-11-28 12:09:36 +01:00
Vincent Driessen 7841e23cc4 Add procname dependency.
Eventually, this will be optional, but for now, include it as there
actually *is* a dependency.
2011-11-24 16:57:51 +01:00
Vincent Driessen 213ac73e19 Remove blinker dependency. 2011-11-24 16:57:01 +01:00
Vincent Driessen a905961f94 Add some sample scripts. 2011-11-18 01:44:28 +01:00
Vincent Driessen f21b2af2b6 Make it an actual PyPI-managable Python package. 2011-11-14 12:16:28 +01:00