1
0

Compare commits

32 Commits

Author SHA256 Message Date
8829b4290c Accepting request 1323667 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/1323667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=15
2025-12-19 15:46:01 +00:00
8e06d67d03 - Add upstream patch django5.patch to fix Django 5 support
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=31
2025-12-19 12:36:31 +00:00
b933399d5d Accepting request 1282132 from devel:languages:python:django
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1282132
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=14
2025-06-03 15:53:12 +00:00
3ecd355ba9 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=29
2025-06-03 07:12:15 +00:00
e57279ab23 Accepting request 1228390 from devel:languages:python:django
Forwarded request #1228379 from Andreas_Schwab

- Increase timeout not to kill the redis server in the middle of the
    testsuite run

OBS-URL: https://build.opensuse.org/request/show/1228390
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=13
2024-12-05 16:09:17 +00:00
9088b8edea - Increase timeout not to kill the redis server in the middle of the
testsuite run

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=27
2024-12-04 22:14:01 +00:00
5618fc53b9 Accepting request 1188343 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/1188343
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=12
2024-07-19 13:28:59 +00:00
3d6b8f5501 Accepting request 1159301 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/1159301
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=11
2024-03-19 16:32:31 +00:00
346170bf0d Accepting request 1159299 from home:mcalabkova:branches:devel:languages:python:django
- Fix the libary name in gh-pr-737_importlib.patch

OBS-URL: https://build.opensuse.org/request/show/1159299
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=23
2024-03-19 08:49:55 +00:00
063951f980 Accepting request 1158939 from home:bmwiedemann:branches:devel:languages:python:django
Avoid stuck build on failing tests

OBS-URL: https://build.opensuse.org/request/show/1158939
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=22
2024-03-18 16:13:11 +00:00
b79bbd3260 Accepting request 1138410 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/1138410
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=10
2024-01-14 18:02:35 +00:00
John Vandenberg
7bc6819886 Accepting request 1138409 from home:jayvdb:branches:devel:languages:python:django
- Activate test suite
- Fix permissions of install .py files

OBS-URL: https://build.opensuse.org/request/show/1138409
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=20
2024-01-13 03:53:40 +00:00
John Vandenberg
23da99bdcf Accepting request 1138402 from home:crameleon:Mailman
Add gh-pr-737_importlib.patch

OBS-URL: https://build.opensuse.org/request/show/1138402
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=19
2024-01-13 03:14:36 +00:00
04a79a0271 Accepting request 1095405 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/1095405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=9
2023-06-26 16:16:45 +00:00
cafde25827 Accepting request 1095336 from devel:languages:python:mailman:backports
- Use sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1095336
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=17
2023-06-26 10:52:36 +00:00
5e804e5aac Accepting request 993403 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/993403
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=8
2022-08-06 20:08:08 +00:00
John Vandenberg
092c088f6b Accepting request 993337 from devel:languages:python:mailman:backports
Add missing Requires for python-redis

redis is the default broker of dango q clusters, see
https://django-q.readthedocs.io/en/latest/brokers.html

OBS-URL: https://build.opensuse.org/request/show/993337
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=15
2022-08-06 00:34:23 +00:00
7ebe746331 Accepting request 986628 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/986628
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=7
2022-07-05 10:09:12 +00:00
John Vandenberg
5c15d2f06e Accepting request 986627 from home:bnavigator:branches:devel:languages:python:mailman
- Enable multiflavor so that we can pin mailmain to Python 3.9

OBS-URL: https://build.opensuse.org/request/show/986627
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=13
2022-07-04 11:34:27 +00:00
56a4a0ae4d Accepting request 932353 from devel:languages:python:django
- Update to version 1.3.9
  * Sets Autofield
  * Fix RemovedInDjango41Warning
  * Create codeql-analysis.yml
  * Codecov_fixes. Got coverage again
  * Feature/improves multiple databases support
  * Fix for SSL errors in #422
  * Fixes #314 - Convert func to its import path str so that
    resubmitting failed task works
  * Add "qmemory" command
  * Allow tasks to be scheduled on a specific cluster
  * Fixes #225 - Successful tasks grow beyond SAVE_LIMIT
  * Update documentation for new retry time default
  * Fixes deprecated count method
  * Adds long polling support
  * Use 'timezone.localtime()' when calculating the next run time
  * Add a warning for misconfiguration.
  * Add broker name in Schedule and enhanced Queued Tasks list
    display admin
  * Add example of http health check
  * Added german translation
  * Try to get SQS queue before creating it
  * Empty dictionary as configuration value for SQS
  * Model.unicode() has no effect in Python 3.X
  * Fix deprecation warning RemovedInDjango40Warning
  * Fix for #424 TypeError: can't pickle _thread.lock objects
  * [WIP]Change Django documentation links and URLs to a
    supported version (v1.8 -> v2.2)
  * Add attempt_count to limit the number of times a filed task
    will be re-attempted
  * Updates to Django 3.1
  * Resource limits: max rss memory limit for workers

OBS-URL: https://build.opensuse.org/request/show/932353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=6
2021-11-20 01:39:03 +00:00
e564c9a9bc * Sets Autofield
* Fix RemovedInDjango41Warning
  * Create codeql-analysis.yml
  * Codecov_fixes. Got coverage again
  * Feature/improves multiple databases support
  * Fix for SSL errors in #422
  * Fixes #314 - Convert func to its import path str so that
    resubmitting failed task works
  * Add "qmemory" command
  * Allow tasks to be scheduled on a specific cluster
  * Fixes #225 - Successful tasks grow beyond SAVE_LIMIT
  * Update documentation for new retry time default
  * Fixes deprecated count method
  * Adds long polling support
  * Use 'timezone.localtime()' when calculating the next run time
  * Add a warning for misconfiguration.
  * Add broker name in Schedule and enhanced Queued Tasks list
    display admin
  * Add example of http health check
  * Added german translation
  * Try to get SQS queue before creating it
  * Empty dictionary as configuration value for SQS
  * Model.unicode() has no effect in Python 3.X
  * Fix deprecation warning RemovedInDjango40Warning
  * Fix for #424 TypeError: can't pickle _thread.lock objects
  * [WIP]Change Django documentation links and URLs to a
    supported version (v1.8 -> v2.2)
  * Add attempt_count to limit the number of times a filed task
    will be re-attempted
  * Updates to Django 3.1

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=12
2021-11-18 21:14:33 +00:00
79620b0c95 Accepting request 932341 from home:gladiac:mailman3
- Update to version 1.3.9
  * https://github.com/Koed00/django-q/releases/tag/v1.3.9

OBS-URL: https://build.opensuse.org/request/show/932341
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=11
2021-11-18 20:43:46 +00:00
8061610700 Accepting request 819187 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/819187
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=5
2020-07-08 17:14:25 +00:00
Tomáš Chvátal
88aa6338d7 Accepting request 819178 from home:mcalabkova:branches:devel:languages:python:django
- Update to 1.3.1
  - Ability to customize schedule creation
  - django-picklefield 3.0.1 has requirement Django>=2.2
  - select_for_update could not be used outside of a transaction
  - Support for Cron expressions
  - Updates packages
  - Adds hint, some linting and a release drafter
  - Use 'force_str' instead of deprecated 'force_text'
  - Add missing migration

OBS-URL: https://build.opensuse.org/request/show/819178
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=9
2020-07-07 10:19:41 +00:00
bcde2f42ca Accepting request 814135 from devel:languages:python:django
- Update to 1.2.4
 * When sync=True, re-raise exceptions from the worker
 * Fix issue when using USE_TZ=False with MySQL
 * Fix issues when using multiple databases with a database router
 * Expose list of workers and their states via API
 * Add missing migration

OBS-URL: https://build.opensuse.org/request/show/814135
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=4
2020-06-12 19:45:03 +00:00
382bfd1f36 - Update to 1.2.4
* When sync=True, re-raise exceptions from the worker
 * Fix issue when using USE_TZ=False with MySQL
 * Fix issues when using multiple databases with a database router
 * Expose list of workers and their states via API
 * Add missing migration

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=7
2020-06-12 11:06:10 +00:00
d14409c633 Accepting request 777597 from devel:languages:python:django
- Update to 1.2.1:
  * Convert to f-strings #415 (Koed00)
  * Run task at a specific time #407
  * Question about Multiple Clusters #401
  * Ability to use a Redis URI #402
  * Latest versions of Arrow will break django-q #377
  * Timeout override is lost when sent to broker #332
  * "InterfaceError: connection already closed" being raised when a test is run #326
  * scheduler creating duplicate tasks in multiple cluster environment #231

OBS-URL: https://build.opensuse.org/request/show/777597
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=3
2020-02-20 13:59:22 +00:00
Tomáš Chvátal
108648d98f - Update to 1.2.1:
* Convert to f-strings #415 (Koed00)
  * Run task at a specific time #407
  * Question about Multiple Clusters #401
  * Ability to use a Redis URI #402
  * Latest versions of Arrow will break django-q #377
  * Timeout override is lost when sent to broker #332
  * "InterfaceError: connection already closed" being raised when a test is run #326
  * scheduler creating duplicate tasks in multiple cluster environment #231

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=5
2020-02-20 08:47:45 +00:00
99e4fa22da Accepting request 766813 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/766813
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=2
2020-01-24 12:13:31 +00:00
Tomáš Chvátal
3e403abe1c Accepting request 766809 from devel:languages:python:mailman:backports
- be able to test also for 15

OBS-URL: https://build.opensuse.org/request/show/766809
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=3
2020-01-24 11:06:47 +00:00
b924eb0f94 Accepting request 752912 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/752912
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-q?expand=0&rev=1
2019-12-03 14:21:08 +00:00
Tomáš Chvátal
cced3ade0b Accepting request 752896 from devel:languages:python:mailman
SLE-7686

OBS-URL: https://build.opensuse.org/request/show/752896
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-q?expand=0&rev=1
2019-12-02 12:00:30 +00:00
3 changed files with 102 additions and 8 deletions

71
django5.patch Normal file
View File

@@ -0,0 +1,71 @@
From 1d2a6059db4cd44f14f9f3008098ca04a1a2bc96 Mon Sep 17 00:00:00 2001
From: Stan Triepels <1939656+GDay@users.noreply.github.com>
Date: Thu, 12 Oct 2023 22:44:19 +0200
Subject: [PATCH] Add support for Django 5 (#120)
---
.github/workflows/test.yml | 27 +-
README.rst | 4 +-
django_q/core_signing.py | 12 +-
django_q/utils.py | 2 +-
docs/index.rst | 2 +-
docs/install.rst | 10 +-
poetry.lock | 1751 +++++++++++++++++++-----------------
pyproject.toml | 10 +-
8 files changed, 962 insertions(+), 856 deletions(-)
Index: django-q-1.3.9/django_q/core_signing.py
===================================================================
--- django-q-1.3.9.orig/django_q/core_signing.py
+++ django-q-1.3.9/django_q/core_signing.py
@@ -2,11 +2,18 @@ import datetime
import time
import zlib
+import django
from django.core.signing import BadSignature, JSONSerializer, SignatureExpired
from django.core.signing import Signer as Sgnr
from django.core.signing import TimestampSigner as TsS
from django.core.signing import b64_decode, dumps
-from django.utils import baseconv
+
+if django.VERSION < (5, 0):
+ from django.utils.baseconv import base62
+ b62_decode = base62.decode
+else:
+ from django.core.signing import b62_decode
+
from django.utils.crypto import constant_time_compare
from django.utils.encoding import force_bytes, force_str
@@ -32,7 +39,7 @@ def loads(
"""
# TimestampSigner.unsign() returns str but base64 and zlib compression
# operate on bytes.
- base64d = force_bytes(TimestampSigner(key, salt=salt).unsign(s, max_age=max_age))
+ base64d = force_bytes(TimestampSigner(key=key, salt=salt).unsign(s, max_age=max_age))
decompress = False
if base64d[:1] == b".":
# It's compressed; uncompress it first
@@ -69,7 +76,7 @@ class TimestampSigner(Signer, TsS):
"""
result = super(TimestampSigner, self).unsign(value)
value, timestamp = result.rsplit(self.sep, 1)
- timestamp = baseconv.base62.decode(timestamp)
+ timestamp = b62_decode(timestamp)
if max_age is not None:
if isinstance(max_age, datetime.timedelta):
max_age = max_age.total_seconds()
Index: django-q-1.3.9/django_q/models.py
===================================================================
--- django-q-1.3.9.orig/django_q/models.py
+++ django-q-1.3.9/django_q/models.py
@@ -213,7 +213,7 @@ class Schedule(models.Model):
url = reverse("admin:django_q_success_change", args=(task.id,))
else:
url = reverse("admin:django_q_failure_change", args=(task.id,))
- return format_html(f'<a href="{url}">[{task.name}]</a>')
+ return format_html('<a href="{}">[{}]</a>', url, task.name)
return None
def __str__(self):

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Wed Dec 17 13:12:39 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add upstream patch django5.patch to fix Django 5 support
-------------------------------------------------------------------
Tue Jun 3 06:48:29 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Wed Dec 4 20:11:19 UTC 2024 - Andreas Schwab <schwab@suse.de>
- Increase timeout not to kill the redis server in the middle of the
testsuite run
-------------------------------------------------------------------
Thu Jul 18 07:52:24 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-django-q
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,21 +25,28 @@ License: MIT
URL: https://django-q.readthedocs.org
Source: https://files.pythonhosted.org/packages/source/d/django-q/django-q-%{version}.tar.gz
# pkg_resources is broken since the flufl.lock update in Factory
Patch: gh-pr-737_importlib.patch
Patch0: gh-pr-737_importlib.patch
# PATCH-FIX-UPSTREAM combined bits of:
# https://github.com/django-q2/django-q2/commit/1f31725f43e3b6f0f793ed00f482d994ae50a503 Added Django 4.2 to the test matrix, fixed deprecation warning
# https://github.com/django-q2/django-q2/commit/1d2a6059db4cd44f14f9f3008098ca04a1a2bc96 Add support for Django 5
# https://github.com/django-q2/django-q2/commit/0090a6f4111c95aa4d405a10fcc06cc14c907a4d Update tested versions, add python 3.13 support and django 5.2 support. Drop python 3.8 support
Patch1: django5.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Django >= 2.2
Requires: python-arrow
Requires: python-blessed
Requires: python-django-picklefield
Requires: python-redis
Requires: (python-Django >= 2.2 with python-Django < 5)
Suggests: python-croniter
Suggests: python-django-q-rollbar >= 0.1
Suggests: python-django-q-sentry >= 0.1
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Django >= 2.2 with %python-Django < 5}
BuildRequires: %{python_module Django >= 2.2}
BuildRequires: %{python_module arrow}
BuildRequires: %{python_module blessed}
BuildRequires: %{python_module croniter}
@@ -61,7 +68,7 @@ This package provides a multiprocessing distributed task queue for Django.
%prep
%setup -n django-q-%{version}
# wrong line endings prevent patching
dos2unix django_q/conf.py
dos2unix django_q/*.py
%autopatch -p1
# Fix permissions
@@ -76,10 +83,10 @@ dos2unix README.rst
sed -i '/HiredisParser/d' django_q/tests/settings.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/django_q/tests/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -92,7 +99,7 @@ export DJANGO_SETTINGS_MODULE=tests.settings
export PYTHONPATH=${PWD}
timeout 5m %{_sbindir}/redis-server &
timeout 20m %{_sbindir}/redis-server &
# Mongo & Disque servers not installed
# test_max_rss assertions fail
%pytest -k 'not (mongo or disque or test_max_rss)'