Skip to content

Commit 435b76a

Browse files
committed
chore: upgrade tpp dependencies
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent a46645e commit 435b76a

16 files changed

Lines changed: 78 additions & 65 deletions

‎dejacode/settings.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,11 @@ def gettext_noop(s):
473473
"SSL": env.bool("DEJACODE_RQ_REDIS_SSL", default=False),
474474
},
475475
}
476+
# COMMIT_MODE "on_db_commit" enqueues jobs through transaction.on_commit(),
477+
# so a job is only picked up by a worker once its transaction is committed.
478+
RQ = {
479+
"COMMIT_MODE": "on_db_commit",
480+
}
476481

477482
# Cron jobs (scheduler)
478483
daily_at_3am = "0 3 * * *"
@@ -503,6 +508,11 @@ def get_fake_redis_connection(config, use_strict_redis):
503508

504509
connection_utils.get_redis_connection = get_fake_redis_connection
505510

511+
# Default COMMIT_MODE is "on_db_commit": jobs are enqueued through
512+
# transaction.on_commit(), which never fires inside a TestCase since its
513+
# wrapping transaction is always rolled back. "auto" enqueues immediately.
514+
RQ["COMMIT_MODE"] = "auto"
515+
506516

507517
DEJACODE_ASYNC = env.bool("DEJACODE_ASYNC", default=False)
508518
if not DEJACODE_ASYNC or IS_TESTS:

‎pyproject.toml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies = [
3838
# Django
3939
"django==6.1.1",
4040
"asgiref==3.12.1",
41-
"typing_extensions==4.15.0",
41+
"typing-extensions==4.16.0",
4242
"sqlparse==0.6.0",
4343
# Django apps
4444
"django-crispy-forms==2.7",
@@ -69,18 +69,18 @@ dependencies = [
6969
"qrcode==8.2",
7070
"pypng==0.20220715.0",
7171
# Database
72-
"psycopg==3.3.4",
72+
"psycopg==3.3.5",
7373
# Cache
7474
"redis==8.1.0",
7575
# Antivirus
7676
"clamd==1.0.2",
7777
# Testing
7878
"model_bakery==1.23.3",
7979
# Task queue
80-
"rq==2.9.0",
80+
"rq==2.12.0",
8181
"croniter==6.2.4",
82-
"django-rq==3.2.2",
83-
"fakeredis==2.36.2",
82+
"django-rq==4.2.0",
83+
"fakeredis==2.38.0",
8484
# Libs
8585
"certifi==2026.7.22",
8686
"urllib3==2.7.0",
@@ -100,7 +100,7 @@ dependencies = [
100100
"markdown==3.10.2",
101101
"bleach==6.4.0",
102102
"bleach_allowlist==1.0.3",
103-
"webencodings==0.5.1",
103+
"webencodings==0.6.1",
104104
# Authentication
105105
"oauthlib==3.3.1",
106106
"python3-openid==3.2.0",
@@ -138,22 +138,22 @@ dependencies = [
138138
"rpds-py==0.30.0",
139139
"attrs==25.4.0",
140140
# CycloneDX
141-
"cyclonedx-python-lib==11.6.0",
141+
"cyclonedx-python-lib==11.12.0",
142142
"sortedcontainers==2.4.0",
143143
"py-serializable==2.1.0",
144144
# CSAF
145145
"pydantic==2.12.5",
146146
"pydantic-core==2.41.5",
147-
"typing-inspection==0.4.2",
147+
"typing-inspection==0.4.4",
148148
"maturin==1.11.5",
149149
"setuptools-rust==1.12.0",
150150
"annotated-types==0.7.0",
151151
"semantic-version==2.10.0",
152152
# OpenVEX
153-
"msgspec==0.20.0",
153+
"msgspec==0.21.1",
154154
# OpenDocument Format
155155
"odfdo==3.22.0",
156-
"lxml==6.1.1",
156+
"lxml==6.1.3",
157157
]
158158

159159
[project.optional-dependencies]
122 KB
Binary file not shown.
517 KB
Binary file not shown.
77.7 KB
Binary file not shown.
163 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)