Skip to content

Commit

Permalink
🔥 remove django 3.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-maykin committed Jul 25, 2024
1 parent c4c4ad0 commit 55c0af8
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 20 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ jobs:
strategy:
matrix:
python: ['3.10', '3.11']
django: ['3.2', '4.2']
exclude:
- python: '3.11'
django: '3.2'
django: ['4.2']

name: Run the test suite (Python ${{ matrix.python }}, Django ${{ matrix.django }}

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Requirements
------------

* Python 3.10 or newer
* Django 3.2 or newer
* Django 4.2 or newer


Install
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Installation
**Requirements**

* Python 3.10 or newer
* Django 3.2+
* Django 4.2+

1. Install from PyPI using ``pip``:

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ keywords = ["Django", "ZGW", "Common Ground", "VNG", "API", "OpenAPI", "OAS", "m
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"Operating System :: Unix",
Expand All @@ -27,7 +26,7 @@ classifiers = [
]
requires-python = ">=3.10"
dependencies = [
"django>=3.2",
"django>=4.2",
"django-relativedelta>=2.0.0",
"django-solo",
"django-simple-certmanager>=1.4.1",
Expand Down
8 changes: 0 additions & 8 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ def test_oas_fields_enabled(admin_client: Client, settings):

form = response.context["adminform"]

# django 3.2
if hasattr(form, "form"):
form = form.form

assert "oas" in form.fields
assert "oas_file" in form.fields

Expand All @@ -26,9 +22,5 @@ def test_oas_fields_disabled(admin_client: Client, settings):

form = response.context["adminform"]

# django 3.2
if hasattr(form, "form"):
form = form.form

assert "oas" not in form.fields
assert "oas_file" not in form.fields
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[tox]
envlist =
py310-django{32,42}
py311-django42
py3{10,11)-django42
isort
black
flake8
Expand All @@ -15,7 +14,6 @@ python =

[gh-actions:env]
DJANGO =
3.2: django32
4.2: django42

[testenv]
Expand All @@ -35,7 +33,6 @@ extras =
tests
coverage
deps =
django32: Django~=3.2.0
django42: Django~=4.2.0
commands =
pytest -s tests \
Expand Down

0 comments on commit 55c0af8

Please sign in to comment.