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 e80d0ce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
strategy:
matrix:
python: ['3.10', '3.11']
django: ['3.2', '4.2']
django: ['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
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
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py310-django{32,42}
py310-django42
py311-django42
isort
black
Expand All @@ -15,7 +15,6 @@ python =

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

[testenv]
Expand All @@ -35,7 +34,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 e80d0ce

Please sign in to comment.