Skip to content

Commit

Permalink
requirements: Bump various libraries
Browse files Browse the repository at this point in the history
djangorestframework, django-filter, django-debug-toolbar, sqlparse,
python-dateutil and openapi-core all have updates.

The only change here is, yet again, openapi-core related, as we swap out
a deprecated API with its replacement.

Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed Jul 12, 2024
1 parent 3e5bb7e commit 47add6b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
3 changes: 2 additions & 1 deletion patchwork/tests/api/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import re

from django.urls import resolve
import jsonschema_path
import openapi_core
from openapi_core.contrib.django import DjangoOpenAPIRequest
from openapi_core.contrib.django import DjangoOpenAPIResponse
Expand Down Expand Up @@ -88,7 +89,7 @@ def _load_spec(version):
with open(spec_path, 'r') as fh:
data = yaml.load(fh, Loader=yaml.SafeLoader)

_LOADED_SPECS[version] = openapi_core.Spec.from_dict(data)
_LOADED_SPECS[version] = jsonschema_path.SchemaPath.from_dict(data)

return _LOADED_SPECS[version]

Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Django~=5.0.0
djangorestframework~=3.14.0
django-filter~=23.5.0
django-debug-toolbar~=4.2.0
djangorestframework~=3.15.2
django-filter~=24.2.0
django-debug-toolbar~=4.4.0
django-dbbackup~=4.1.0
-r requirements-test.txt
6 changes: 3 additions & 3 deletions requirements-prod.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Django~=5.0.0
djangorestframework~=3.14.0
django-filter~=23.5.0
djangorestframework~=3.15.0
django-filter~=24.2.0
psycopg2~=2.9.0
sqlparse~=0.4.0
sqlparse~=0.5.0
7 changes: 4 additions & 3 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
mysqlclient~=2.2.0
psycopg2-binary~=2.9.0
sqlparse~=0.4.0
python-dateutil~=2.8.0
sqlparse~=0.5.0
python-dateutil~=2.9.0
tblib~=3.0.0
openapi-core~=0.18.0
openapi-core~=0.19.0
jsonschema-path~=0.3.3
termcolor~=2.4.0
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ skip_install = true
deps =
-r{toxinidir}/requirements-test.txt
django42: django~=4.2.0
django42: djangorestframework~=3.14.0
django42: django-filter~=23.5.0
django42: djangorestframework~=3.15.0
django42: django-filter~=24.2.0
django50: django~=5.0.0
django50: djangorestframework~=3.14.0
django50: django-filter~=23.5.0
django50: djangorestframework~=3.15.0
django50: django-filter~=24.2.0
setenv =
DJANGO_SETTINGS_MODULE = patchwork.settings.dev
PYTHONDONTWRITEBYTECODE = 1
Expand Down

0 comments on commit 47add6b

Please sign in to comment.