52 Commits (48df759879198d9c69711d6af2731065e4f5fdef)

Author SHA1 Message Date
Selwin Ong ef4f0611a7 Added Python 3.9 to test matrix 4 years ago
Selwin Ong a31d37f1ea Exclude tests directory from wheel builds 4 years ago
Paul Spooren 8432a916bd
setup: Set min Python version to 3.5 (#1291)
As `redis-py` in version 3.5.0 is now required, whoch only support
Python 3.5+, we should remove Python 3.4 from the supported Python
versions as well.

Signed-off-by: Paul Spooren <mail@aparcar.org>
5 years ago
Paul Spooren 0b55981631
Improve requirements handling (#1287)
* setup: read requirements.txt for dependencies

This makes it easier to keep required packages in sync.

Signed-off-by: Paul Spooren <mail@aparcar.org>

* requirements: Update to click 5.0 and redis 3.5.0

Click 5.0 was already required by the `setup.py` and is not brought in
sync. Redis Python library 3.5.0 introduces the `HSET` command with
mapping support which replaces the previous `hmset`. By lifting the
minimal required version to 3.5.0 we can remove the combat function if
Redis server 4.0 is guaranteed.

Signed-off-by: Paul Spooren <mail@aparcar.org>

* ci: remove Python3.4 testing

`redis-py` 3.5.0 does no longer support Python 3.4, so drop it in CI.

Signed-off-by: Paul Spooren <mail@aparcar.org>
5 years ago
Selwin Ong 52e426f40f Remove Python 2.7 from setup.py 5 years ago
Selwin Ong 02eb983e90 Bump version to 1.4.0 5 years ago
Selwin Ong 927fb5a3ed Bump version to 1.2.0 5 years ago
Wolfgang Langner 7893168c87 Remove Python 3.3 support. (#1031)
* Remove Python 3.3 support.
Redis >= 3.X does only support Python >=3.4.
Python 3.7 is no longer dev.

* Use dev for Python 3.7 build again.
6 years ago
Darshan Rai ada2ad03ca modify zadd calls for redis-py 3.0 (#1016)
* modify zadd calls for redis-py 3.0

redis-py 3.0 changes the zadd interface that accepts a single
mapping argument that is expected to be a dict.
https://github.com/andymccurdy/redis-py#mset-msetnx-and-zadd

* change FailedQueue.push_job_id to always push a str

redis-py 3.0 does not attempt to cast values to str and is left
to the user.

* remove Redis connection patching

Since in redis-py 3.0, Redis == StrictRedis class, we no longer
need to patch _zadd and other methods.
Ref: https://github.com/rq/rq/pull/1016#issuecomment-441010847
6 years ago
chevell c2b939d2df Replace 'async' keyword with 'is_async' for Queue objects (#977)
* Replaced async keyword with is_async in the Queue class to fix reserved keyword syntax errors in Python 3.7

* Updated tests to use is_async keyword when instantiating Queue objects

* Updated docs to reference is_async keyword for Queue objects

* Updated tox.ini, setup.py and .travis.yml with references to Python 3.7
7 years ago
Theo 4447aa1a82 Merge latest master.
Code reviews.
# Conflicts:
#	setup.py
7 years ago
Theo a30129669f Fixed #867 Simplified code in setup.py 7 years ago
Selwin Ong 04258d9946 Update clicks requirement in setup.py 7 years ago
Selwin Ong 8244b898fe Update PyPI classifiers. 8 years ago
Selwin Ong efcdd15902 Update setup.py to ensure Python 2.6 dependencies are installed by pip. 10 years ago
zhangliyong 842f27294a Convert rqworker to 'rq worker' subcommand 10 years ago
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.
10 years ago
zhangliyong c796e3249d Fix click dependency version 10 years ago
zhangliyong 551483b477 Add rq info command 10 years ago
zhangliyong e948bde5d7 Add rq command when installing 11 years ago
Vincent Driessen 6ee28fae9c Redis 2.7.0 is required for lua scripting support 11 years ago
Vincent Driessen 3649ff863b Don't rely on external package `first`. 11 years ago
Vincent Driessen 3667e37ed3 Don't expose the envvar values through `rqinfo -h`. 11 years ago
Vincent Driessen dbcba85815 Properly declare Python 3 compatibility. 11 years ago
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.
11 years ago
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.
11 years ago
Alex Morega 998ff1a1ab fix reading of version in py3 12 years ago
Vincent Driessen c7e54d8c1a Promote to 'beta' stage.
This should've been done on 0.3.0 already, actually.
12 years ago
Vincent Driessen d1c2b3b78d Merge branch 'selwin-remove-logbook'
Conflicts:
	rq/utils.py
	rq/worker.py
	setup.cfg
	setup.py
12 years ago
Jon Parise e90efc254b Use `redis.from_url()` for greater compatibility.
This lets us keep the redis-py version requirement back at 2.4.13.
12 years ago
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.
12 years ago
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.
12 years ago
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.
12 years ago
Vincent Driessen 481369a88d Require at least redis-py version 2.4.
This fixes #106.
12 years ago
Donald Stufft f188d66354 Remove logbook from the install_requires and other dependency areas 13 years ago
Vincent Driessen 074d42fe54 Remove strict procname dependency.
This fixes #80.
13 years ago
Vincent Driessen 8aaa975fa9 Find all packages.
This fixes #67.
13 years ago
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.
13 years ago
Vincent Driessen 100d23b72e Tag the first public release. 13 years ago
Vincent Driessen a662180fd3 Make importlib dependency conditional on the Python version. 13 years ago
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.
13 years ago
Vincent Driessen 65105b44c3 CHECKPOINT: Initial part of the big refactor. 13 years ago
Vincent Driessen 27ddde2008 Make procname a hard dependency. 13 years ago
Vincent Driessen da228dd76c Fix casing. 13 years ago
Vincent Driessen 2300338893 Update dependencies accordingly 13 years ago
Vincent Driessen c820ba24fa Move to Alpha stage. 13 years ago
Vincent Driessen 66775b7012 Put the version number somewhere central. 13 years ago
Vincent Driessen e49e0135bc Update Trove classifiers. 13 years ago
Vincent Driessen 7841e23cc4 Add procname dependency.
Eventually, this will be optional, but for now, include it as there
actually *is* a dependency.
13 years ago
Vincent Driessen 213ac73e19 Remove blinker dependency. 13 years ago