Skip to content

Commit a2d3ea6

Browse files
author
Alexander Sommer
committed
Update dependencies
1 parent cc4598e commit a2d3ea6

File tree

5 files changed

+34
-38
lines changed

5 files changed

+34
-38
lines changed

pyproject.toml

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,43 @@ version = '0.4.0'
44
description = 'Simple shift management system'
55
readme = 'README.md'
66
requires-python = '>=3.9'
7-
authors = [
8-
{ name = 'HaDiKo e.V. HaDiNet', email = 'software@hadiko.de' },
9-
]
7+
authors = [{ name = 'HaDiKo e. V. - HaDiNet', email = 'software@hadiko.de' }]
108
classifiers = [
11-
'Programming Language :: Python',
12-
'Programming Language :: Python :: 3',
13-
'Programming Language :: Python :: 3 :: Only',
14-
'Programming Language :: Python :: 3.9',
15-
'Programming Language :: Python :: 3.10',
16-
'Programming Language :: Python :: 3.11',
9+
'Programming Language :: Python',
10+
'Programming Language :: Python :: 3',
11+
'Programming Language :: Python :: 3 :: Only',
12+
'Programming Language :: Python :: 3.9',
13+
'Programming Language :: Python :: 3.10',
14+
'Programming Language :: Python :: 3.11',
1715
]
1816

1917
dependencies = [
20-
'Authlib==1.3.0',
21-
'Django==4.2.9',
22-
'django-auth-ldap==4.6.0',
23-
'django-bootstrap5==23.4',
24-
'django-colorfield==0.11.0',
25-
'django-ical==1.9.2',
26-
'django-phonenumber-field[phonenumberslite]==7.3.0',
27-
'gunicorn==21.2.0',
28-
'holidays==0.40',
29-
'icalendar==5.0.11',
30-
'Pillow==10.4.0',
31-
'psycopg2-binary==2.9.10',
32-
'python-dateutil==2.8.2',
33-
'requests==2.31.0',
18+
'Authlib==1.4.1',
19+
'Django==5.2.3',
20+
'django-auth-ldap==5.2.0',
21+
'django-bootstrap5==25.1',
22+
'django-colorfield==0.14.0',
23+
'django-ical==1.9.2',
24+
'django-phonenumber-field[phonenumberslite]==8.1.0',
25+
'gunicorn==23.0.0',
26+
'holidays==0.75',
27+
'icalendar==6.3.1',
28+
'Pillow==11.2.1',
29+
'psycopg2-binary==2.9.10',
30+
'python-dateutil==2.9.0.post0',
31+
'requests==2.32.4',
3432
]
3533

3634
[project.optional-dependencies]
3735
tests = [
38-
'django-stubs==4.2.7',
39-
'types-python-dateutil==2.8.19.14',
40-
'types-requests==2.31.0.10',
41-
'mypy==1.8.0',
42-
]
43-
docs = [
44-
'mkdocs==1.4.2',
45-
'mkdocs-material==9.0.11',
36+
'django-stubs==4.2.7',
37+
'types-python-dateutil==2.8.19.14',
38+
'types-requests==2.31.0.10',
39+
'mypy==1.8.0',
4640
]
4741

42+
docs = ['mkdocs==1.4.2', 'mkdocs-material==9.0.11']
43+
4844
[project.urls]
4945
repository = 'https://github.com/HaDiNet/shiftings'
5046

src/shiftings/events/models/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Meta:
4444
ordering = ['name', 'start_date', 'end_date', 'organization']
4545
constraints = [
4646
models.CheckConstraint(name='event_start_after_end',
47-
check=models.Q(start_date__lte=models.F('end_date')))
47+
condition=models.Q(start_date__lte=models.F('end_date')))
4848
]
4949

5050
def __str__(self) -> str:

src/shiftings/organizations/models/membership.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ class Meta:
4242
UniqueConstraint(fields=['organization', 'name'], name='name_unique_per_organization'),
4343
UniqueConstraint(fields=['organization', 'admin'], name='admin_unique_per_organization'),
4444
UniqueConstraint(fields=['organization', 'default'], name='default_unique_per_organization'),
45-
CheckConstraint(check=~Q(admin=False), name='admin_true_or_null'),
46-
CheckConstraint(check=~Q(default=False), name='default_true_or_null'),
47-
CheckConstraint(check=(Q(admin=True, default__isnull=True) | Q(admin__isnull=True)),
45+
CheckConstraint(condition=~Q(admin=False), name='admin_true_or_null'),
46+
CheckConstraint(condition=~Q(default=False), name='default_true_or_null'),
47+
CheckConstraint(condition=(Q(admin=True, default__isnull=True) | Q(admin__isnull=True)),
4848
name='admin_not_default')
4949
]
5050

@@ -76,7 +76,7 @@ class Meta:
7676
UniqueConstraint(fields=['organization', 'type', 'user'], name='unique_membership_organization_type_user'),
7777
UniqueConstraint(fields=['organization', 'type', 'group'],
7878
name='unique_membership_organization_type_group'),
79-
CheckConstraint(check=(~(Q(user__isnull=True) & Q(group__isnull=True))), name='group_or_user')
79+
CheckConstraint(condition=(~(Q(user__isnull=True) & Q(group__isnull=True))), name='group_or_user')
8080
]
8181

8282
def __str__(self) -> str:

src/shiftings/shifts/models/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ class Meta:
2727
abstract = True
2828
default_permissions = ()
2929
constraints = [
30-
models.CheckConstraint(check=Q(max_users=0) | Q(max_users__gte=F('required_users')),
30+
models.CheckConstraint(condition=Q(max_users=0) | Q(max_users__gte=F('required_users')),
3131
name='shift_max_users_gte_required_users')
3232
]

src/shiftings/shifts/models/shift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Meta:
4646
default_permissions = ()
4747
ordering = ['start', 'end', 'name', 'organization']
4848
constraints = [
49-
models.CheckConstraint(check=Q(start__lte=F('end')), name='shift_start_before_end')
49+
models.CheckConstraint(condition=Q(start__lte=F('end')), name='shift_start_before_end')
5050
]
5151

5252
def clean(self) -> None:

0 commit comments

Comments
 (0)