Skip to content

Commit 01fbac7

Browse files
author
Petr Olah
committed
Fix Django 5.2.x incompatibilities
1 parent e5b02b8 commit 01fbac7

5 files changed

Lines changed: 14 additions & 16 deletions

File tree

.github/workflows/django.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
strategy:
1313
max-parallel: 4
1414
matrix:
15-
python-version: [3.11]
16-
django-version: [Django~=4.2]
15+
python-version: [3.11, 3.12]
16+
django-version: [Django~=5.2]
1717

1818
steps:
1919
- uses: actions/checkout@v2

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@master
12-
- name: Set up Python 3.11
12+
- name: Set up Python 3.12
1313
uses: actions/setup-python@v3
1414
with:
15-
python-version: "3.11"
15+
python-version: "3.12"
1616
- name: Install pypa/build
1717
run: >-
1818
python -m

gdpr/migrations/0002_auto_20180509_1518.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import datetime
66

77
from django.db import migrations, models
8-
from django.utils.timezone import utc
98

109

1110
class Migration(migrations.Migration):
@@ -22,8 +21,10 @@ class Migration(migrations.Migration):
2221
migrations.AddField(
2322
model_name='legalreason',
2423
name='issued_at',
25-
field=models.DateTimeField(default=datetime.datetime(2018, 5, 9, 13, 18, 7, 317147, tzinfo=utc),
26-
verbose_name='issued at'),
24+
field=models.DateTimeField(
25+
default=datetime.datetime(2018, 5, 9, 13, 18, 7, 317147, tzinfo=datetime.timezone.utc),
26+
verbose_name='issued at'
27+
),
2728
preserve_default=False,
2829
),
2930
migrations.AlterField(

setup.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,20 @@ def read(fname):
2424
classifiers=[
2525
'Development Status :: 3 - Alpha',
2626
'Framework :: Django',
27-
'Framework :: Django :: 1.10',
28-
'Framework :: Django :: 1.11',
29-
'Framework :: Django :: 2.0',
30-
'Framework :: Django :: 2.1',
27+
'Framework :: Django :: 5.2.x',
3128
'Intended Audience :: Developers',
3229
'License :: OSI Approved :: MIT License',
3330
'Operating System :: OS Independent',
3431
'Programming Language :: Python',
35-
'Programming Language :: Python :: 3.6',
36-
'Programming Language :: Python :: 3.7',
32+
'Programming Language :: Python :: 3.11',
33+
'Programming Language :: Python :: 3.12',
3734
'Programming Language :: Python :: 3 :: Only',
3835
'Intended Audience :: Developers',
3936
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
4037
],
4138
install_requires=[
42-
'django>=4.2',
43-
'skip-django-chamber>=0.7.2',
39+
'django>=5.2',
40+
'skip-django-chamber>=1.2.1',
4441
'tqdm>=4.28.1',
4542
'pyaes>=1.6.1',
4643
'unidecode',

test_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ python-dateutil==2.7.5
44
django-extensions
55
freezegun==0.3.12
66
Faker==1.0.1
7-
skip-django-germanium==2.4.0
7+
skip-django-germanium==2.6.0
88
django-auditlog

0 commit comments

Comments
 (0)