Skip to content

Commit 28ff37e

Browse files
committed
upgrade
1 parent 953ff85 commit 28ff37e

File tree

9 files changed

+287
-228
lines changed

9 files changed

+287
-228
lines changed

pyproject.toml

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -19,104 +19,104 @@ classifiers = [
1919
"Programming Language :: Python :: 3.13",
2020
]
2121
dependencies = [
22-
"black>=23",
22+
"black>=23,<26",
2323
"celery[redis]>=5.2.7,<6",
2424
"coreapi>=2.3.3,<3",
25-
"defusedxml==0.7.0rc1",
26-
"django>=5.2",
25+
"defusedxml==0.7.0rc1", # to update
26+
"django>=5.2,<5.2.9",
2727
"django-admin-cursor-paginator>=0.1.3,<1",
28-
"django-admin-extra-buttons>=1.5.4,<2",
28+
"django-admin-extra-buttons>=1.5.4,<2", # to update
2929
"django-admin-sync>=0.7,<1",
3030
"django-adminactions>=2.1,<3",
31-
"django-adminfilters>=2.4.2",
31+
"django-adminfilters>=2.4.2,<3",
3232
"django-advanced-filters>=2,<3",
3333
"django-auditlog>=2.1.1,<3",
3434
"django-celery-beat>=2.3,<3",
3535
"django-celery-results>=2.3.1,<3",
36-
"django-compressor>=4.5",
36+
"django-compressor>=4.5,<5",
3737
"django-concurrency>=2.4,<3",
38-
"django-constance[redis]>=4.3.2",
39-
"django-cors-headers>=3.13,<4",
40-
"django-countries>=7.3.2,<8",
41-
"django-csp>=3.7,<4",
42-
"django-debug-toolbar>=4.3,<5",
38+
"django-constance[redis]>=4.3.2,<5",
39+
"django-cors-headers>=3.13,<5",
40+
"django-countries>=7.3.2,<9",
41+
"django-csp>=3.7,<5",
42+
"django-debug-toolbar>=4.3,<6.1", # break triggers
4343
"django-elasticsearch-dsl>=8,<9",
4444
"django-environ>=0.10,<1",
45-
"django-extensions>=3.1.5,<4",
46-
"django-fernet-encrypted-fields>=0.3",
47-
"django-filter>=25.1",
45+
"django-extensions>=3.1.5,<5",
46+
"django-fernet-encrypted-fields>=0.3,<1",
47+
"django-filter>=25.1,<26",
4848
"django-flags>=5.0.12,<6",
4949
"django-front-door>=0.10,<1",
50-
"django-fsm>=2.8,<3",
50+
"django-fsm>=2.8,<3", # to upgrade
5151
"django-hijack>=3.2.1,<4",
52-
"django-import-export>=2.8,<3",
52+
"django-import-export>=2.8,<5",
5353
"django-import-export-celery>=1.2,<2",
5454
"django-jsoneditor>=0.2.2,<1",
5555
"django-markdownify>=0.9.2,<1",
56-
"django-model-utils>=4.2,<5",
56+
"django-model-utils>=4.2,<5", # to upgrade
5757
"django-mptt>=0.14,<1",
58-
"django-multiselectfield>=1.0.1",
59-
"django-phonenumber-field>=7,<8",
58+
"django-multiselectfield>=1.0.1,<2",
59+
"django-phonenumber-field>=7,<9",
6060
"django-querysetsequence>=0.16,<1",
61-
"django-redis>=5.2,<6",
62-
"django-rest-extensions>=0.2",
61+
"django-redis>=5.2,<7",
62+
"django-rest-extensions>=0.2,<2",
6363
"django-reversion>=5.0.2,<6",
6464
"django-silk>=5.0.1,<6",
6565
"django-smart-admin>=2,<3",
66-
"django-smart-env",
67-
"django-sql-explorer[xls]>=3,<4",
66+
"django-smart-env<2",
67+
"django-sql-explorer[xls]>=3,<6",
6868
"django-storages[azure]>=1.12.3,<2",
6969
"django-strategy-field>=3,<4",
7070
"django-sysinfo>=2.6,<3",
7171
"djangorestframework>=3.13.1,<4",
72-
"drf-extensions>=0.7.1",
72+
"drf-extensions>=0.7.1,<1",
7373
"drf-jwt>=1.19.2,<2",
74-
"drf-nested-routers~=0.94.0",
74+
"drf-nested-routers>=0.94,<1",
7575
"drf-spectacular[sidecar]>=0.27,<1",
76-
"elastic-transport>=8.13",
76+
"elastic-transport>=8.13,<9",
7777
"elasticsearch~=8.14.0",
7878
"elasticsearch-dsl~=8.14.0",
7979
"factory-boy>=3,<4",
80-
"flower>=2.0.1",
81-
"gevent",
82-
"gunicorn>=20.1,<21",
83-
"ipython>=8.4,<9",
80+
"flower>=2.0.1,<3",
81+
"gevent<26",
82+
"gunicorn>=20.1,<24",
83+
"ipython>=8.4,<10",
8484
"jedi>=0.18.1,<1",
8585
"jinja2>=3.1.3,<4",
8686
"jmespath>=1.0.1,<2",
87-
"markupsafe>=2.1.1,<3",
88-
"msoffcrypto-tool>=5.4.2",
87+
"markupsafe>=2.1.1,<4",
88+
"msoffcrypto-tool>=5.4.2,<6",
8989
"natural-keys>=2,<3",
90-
"nested-multipart-parser",
91-
"openpyxl>=3.1.5",
90+
"nested-multipart-parser<2",
91+
"openpyxl>=3.1.5,<4",
9292
"openpyxl-image-loader>=1.0.5,<2",
93-
"paramiko>=4",
94-
"phonenumbers>=8.12.49,<9",
95-
"pillow>=10.2,<11",
93+
"paramiko>=4,<5",
94+
"phonenumbers>=8.12.49,<10",
95+
"pillow>=10.2,<13",
9696
"prompt-toolkit>=3.0.29,<4",
97-
"psycopg2-binary>=2.9.3",
97+
"psycopg2-binary>=2.9.3,<3",
9898
"ptyprocess>=0.7,<1",
99-
"pycountry>=22.3,<23",
100-
"pydyf>=0.10",
99+
"pycountry>=22.3,<25",
100+
"pydyf>=0.10,<1",
101101
"pygments>=2.12,<3",
102102
"pyjwt>=2.4,<3",
103103
"pytesseract>=0.3.9,<1",
104-
"pytz>=2022.1,<2023",
104+
"pytz>=2022.1,<2026",
105105
"pyyaml>=6,<7",
106-
"pyzipper>=0.3.6",
107-
"sentry-sdk>=2.37",
108-
"setuptools>=71.1",
106+
"pyzipper>=0.3.6,<1",
107+
"sentry-sdk>=2.37,<3",
108+
"setuptools>=71.1,<81",
109109
"single-source>=0.3,<1",
110110
"social-auth-app-django>=5,<6",
111111
"social-auth-core>=4.2,<5",
112-
"sorl-thumbnail>=12.11",
112+
"sorl-thumbnail>=12.11,<13",
113113
"swapper>=1.3,<2",
114-
"tblib>=1.7,<2",
114+
"tblib>=1.7,<4",
115115
"tomli>=2.0.1,<3",
116116
"update>=0.0.1,<1",
117-
"urllib3>=1.26.9,<2",
118-
"weasyprint>=60",
119-
"xlrd>=1.2,<2",
117+
"urllib3>=1.26.9,<3",
118+
"weasyprint>=60,<67",
119+
"xlrd>=1.2,<2", # to update
120120
]
121121

122122
[dependency-groups]

src/frontend/src/containers/pages/grievances/GrievancesDashboardPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { GrievanceDashboardCard } from '@components/grievances/GrievancesDashboa
99
import { TicketsByCategorySection } from '@components/grievances/GrievancesDashboard/sections/TicketsByCategorySection/TicketsByCategorySection';
1010
import { TicketsByLocationAndCategorySection } from '@components/grievances/GrievancesDashboard/sections/TicketsByLocationAndCategorySection/TicketsByLocationAndCategorySection';
1111
import { TicketsByStatusSection } from '@components/grievances/GrievancesDashboard/sections/TicketsByStatusSection/TicketsByStatusSection';
12-
import { hasPermissions, PERMISSIONS } from '../../../config/permissions';
1312
import { usePermissions } from '@hooks/usePermissions';
1413
import { useQuery } from '@tanstack/react-query';
1514
import { RestService } from '@restgenerated/services/RestService';

src/hope/apps/account/templates/admin/account/group/change_list.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
{% extends "admin/import_export/change_list.html" %}
2-
{% load extra_buttons %}
3-
1+
{% extends "admin/change_list.html" %}
2+
{% load extra_buttons import_export_tags %}
43

54
{% block object-tools-items %}
65
{% include "admin_extra_buttons/includes/change_list_buttons.html" %}

src/hope/apps/account/templates/admin/account/role/change_list.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
{% extends "admin/import_export/change_list.html" %}
2-
{% load extra_buttons %}
3-
1+
{% extends "admin/change_list.html" %}
2+
{% load extra_buttons import_export_tags %} {# required for import_export_buttons #}
43

54
{% block object-tools-items %}
65
{% include "admin_extra_buttons/includes/change_list_buttons.html" %}

src/hope/apps/payment/services/payment_plan_services.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,10 @@ def create_payments(payment_plan: PaymentPlan) -> None:
445445
)
446446
)
447447
try:
448-
Payment.objects.bulk_create(payments_to_create)
448+
created_payments = Payment.objects.bulk_create(payments_to_create)
449+
# Explicitly refresh unicef_id for bulk created payments
450+
for payment in created_payments:
451+
payment.refresh_from_db(fields=["unicef_id"])
449452
except IntegrityError as e:
450453
raise ValidationError("Duplicated Households in provided Targeting List") from e
451454
payment_plan.refresh_from_db()

src/hope/apps/program/migrations/0009_migration.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ class Migration(migrations.Migration):
2121
END
2222
) STORED;
2323
CREATE INDEX prog_status_rank_id_idx ON program_program (status_rank, id);
24-
""",
24+
"""
25+
),
26+
migrations.RunSQL(
2527
"""
2628
DROP INDEX IF EXISTS prog_status_rank_id_idx;
2729
ALTER TABLE program_program DROP COLUMN IF EXISTS status_rank;
2830
""",
29-
)
31+
),
3032
]

src/hope/apps/steficon/templates/admin/steficon/rule/change_list.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
{% extends "admin/import_export/change_list.html" %}
2-
{% load extra_buttons %}
3-
1+
{% extends "admin/change_list.html" %}
2+
{% load extra_buttons import_export_tags %}
43

54
{% block object-tools-items %}
65
{% include "admin_extra_buttons/includes/change_list_buttons.html" %}

tests/unit/apps/payment/test_payment_plan_services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def test_create(self, get_exchange_rate_mock: Any) -> None:
326326
assert pp.total_households_count == 0
327327
assert pp.total_individuals_count == 0
328328
assert pp.payment_items.count() == 0
329-
with self.assertNumQueries(97):
329+
with self.assertNumQueries(99):
330330
prepare_payment_plan_task.delay(str(pp.id))
331331
pp.refresh_from_db()
332332
assert pp.status == PaymentPlan.Status.TP_OPEN
@@ -790,7 +790,7 @@ def test_full_rebuild(self, get_exchange_rate_mock: Any) -> None:
790790
assert pp.total_households_count == 0
791791
assert pp.total_individuals_count == 0
792792
assert pp.payment_items.count() == 0
793-
with self.assertNumQueries(70):
793+
with self.assertNumQueries(72):
794794
prepare_payment_plan_task.delay(str(pp.id))
795795
pp.refresh_from_db()
796796
assert pp.status == PaymentPlan.Status.TP_OPEN

0 commit comments

Comments
 (0)