From e0f49b5591835884f74943c1f382a63ba1a04f65 Mon Sep 17 00:00:00 2001 From: obdulia-losantos Date: Tue, 2 Apr 2024 09:41:05 +0200 Subject: [PATCH 1/4] build: add vscode to .gitignore file --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d953fbde..95ddb5af 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ django_rq.egg-info/ *.rdb # pycharm .idea +.vscode Pipfile.lock From 35c4d275c29e86dec76011bb552c75b3eb6b9e4d Mon Sep 17 00:00:00 2001 From: obdulia-losantos Date: Tue, 2 Apr 2024 09:41:37 +0200 Subject: [PATCH 2/4] build: remove mock and replace raven with sentry-sdk --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index fdf0f065..cf02edb0 100644 --- a/setup.py +++ b/setup.py @@ -16,8 +16,8 @@ package_data={'': ['README.rst']}, install_requires=['django>=3.2', 'rq>=1.14', 'redis>=3'], extras_require={ - 'Sentry': ['raven>=6.1.0'], - 'testing': ['mock>=2.0.0'], + 'Sentry': ['sentry-sdk>=1.0.0'], + 'testing': [], }, classifiers=[ 'Development Status :: 4 - Beta', From 8d39b063fd6a08b2776ee3cd0de79ef03f39a6bf Mon Sep 17 00:00:00 2001 From: obdulia-losantos Date: Tue, 2 Apr 2024 09:42:06 +0200 Subject: [PATCH 3/4] docs: fix typos --- django_rq/tests/tests.py | 2 +- django_rq/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django_rq/tests/tests.py b/django_rq/tests/tests.py index 50f2733d..c8f91ca1 100644 --- a/django_rq/tests/tests.py +++ b/django_rq/tests/tests.py @@ -110,7 +110,7 @@ def tearDown(self): def test_get_connection_default(self): """ Test that get_connection returns the right connection based for - `defaut` queue. + `default` queue. """ config = QUEUES['default'] connection = get_connection() diff --git a/django_rq/utils.py b/django_rq/utils.py index acc93a78..497d78f3 100644 --- a/django_rq/utils.py +++ b/django_rq/utils.py @@ -23,7 +23,7 @@ def get_scheduler_pid(queue): It Only works with RQ's Built-in RQScheduler. When RQ-Scheduler is available returns False If not, it checks the RQ's RQScheduler for a scheduler lock in the desired queue - Note: result might have some delay (1-15 minutes) but it helps visualizing whether the setup is working correcly + Note: result might have some delay (1-15 minutes) but it helps visualizing whether the setup is working correctly ''' try: # first try get the rq-scheduler From 41d3ddcffab95d717b6b78a9a63f85c3049fb4d2 Mon Sep 17 00:00:00 2001 From: obdulia-losantos Date: Tue, 2 Apr 2024 09:48:43 +0200 Subject: [PATCH 4/4] ci: remove travis config file --- .travis.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7655f359..00000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -language: python -dist: xenial - -python: - - "3.5" - - "3.6" - - "3.7" - - "3.8" - -env: - - DJANGO=2.0 - - DJANGO=2.1 - - DJANGO=2.2 - - DJANGO=3.0 - -matrix: - exclude: - - python: "3.5" - env: DJANGO=3.0 - -install: - - pip install Django==$DJANGO docutils pygments rq-scheduler - # django-redis fix not yet released, so pinning to master - - pip install git+https://github.com/niwinz/django-redis.git@13acf21d61ec95de6550c2df9fc65363676cf8a7#egg=django_redis - - python setup.py install - - pip install codecov - -script: make test -services: redis - -after_success: - - codecov