Skip to content

Commit

Permalink
drop support for django2
Browse files Browse the repository at this point in the history
  • Loading branch information
OverLucker committed Jun 9, 2023
1 parent 85d6931 commit 2b779d6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
max-parallel: 4
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
django-version: ['2.2', '3.2', '4.0', '4.1']
django-version: ['3.2', '4.0', '4.1', '4.2']
exclude:
- python-version: 3.7
django-version: 4.0
- python-version: 3.7
django-version: 4.1
- python-version: 3.7
django-version: 4.2
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
11 changes: 11 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
# 1.2.0
- drop support for django2
- add django4.2 to test matrix

- `django_serializer.base_views.BaseView` deprecated. It will be removed in version 2.0
- `django_serializer.serializer.base.Serializer` deprecated. It will be removed in version 2.0


- add `django_serializer.v2.renderers.BaseRenderer` see docstrings
- add `django_serializer.v2.renderers.JsonRenderer` see docstrings
- add `SERIALIZER_DEFAULT_PARSER_CLASS` to django settings
- add `ApiViewMeta.body_parser`


- add `django_serializer.v2.parsers.BaseParser` see docstrings
- add `django_serializer.v2.parsers.JsonParser` see docstrings
- add `django_serializer.v2.exceptions.parser.ParseException`
- add `SERIALIZER_DEFAULT_RENDERER_CLASS` to django settings
- add `ApiViewMeta.renderer`


- add `ApiView.get_parser` method
- `ApiView.get_request_json` now uses `ApiView.get_parser` for parsing request.body


- `ApiView._query_form` now has positional request argument
- `ApiView.__body_form` now has positional request argument
- `ApiView.perform_response_pipelines` now has positional request argument
Expand All @@ -25,18 +32,22 @@
- add `_check_request_method` and `_check_section_permission` to `ApiView.perform_request_pipelines`
- `ApiView._json_response` renamed to `ApiView.render_response`. `ApiView.render_response` uses renderer logic


- `ApiView._handle_http_error` renamed to `ApiView.handle_http_error`
- `ApiView.handle_http_error` now has positional request argument
- `ApiView.handle_http_error` uses `ApiView.render_response`


- `SERIALIZER_FIELD_MAPPING` no longer importable from `django_serializer/v2/serializer/__init__.py`
- `FileField` moved from `django_serializer/v2/serializer/__init__.py` to `django_serializer/v2/serializer_fields.py`


## internal changes
- add `django_serializer.v2.settings.ApiSettings`
- add multiple docstrings
- reformated code with black
- fix typings
- drop django2 from test matrix

# 1.1.0
- minimum supported django>=2.2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def find_version():
keywords="django-serializer setuptools development",
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
install_requires=[
"Django>=2.2",
"Django>=3.2",
"marshmallow>=3.14.0",
"apispec>=5.1.1",
],
Expand Down

0 comments on commit 2b779d6

Please sign in to comment.