Skip to content

Commit 988ce82

Browse files
authored
chore!: drop long-unsupported py3.7 py3.8 django versions (#179)
Python 3.7 hasn't been supported in ages, and it's causing errors on CI actions so let's just drop it. It appears that [dropping Python 3.7 is desired anyway](https://github.com/crccheck/django-object-actions/blob/master/CHANGELOG.md#v430-2024-09-10)!
1 parent 6e92eb7 commit 988ce82

File tree

5 files changed

+136
-198
lines changed

5 files changed

+136
-198
lines changed

.github/workflows/ci.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ jobs:
1515
uses: fabiocaccamo/create-matrix-action@v3
1616
with:
1717
matrix: |
18-
python-version {3.7}, django-version {2.0,2.1,2.2,3.0,3.1}
19-
python-version {3.8}, django-version {2.2,3.0,3.1,3.2,4.0,4.1,4.2}
20-
python-version {3.9}, django-version {2.2,3.0,3.1,3.2,4.0,4.1,4.2}
21-
python-version {3.10}, django-version {3.2,4.0,4.1,4.2,5.0,5.1}
22-
python-version {3.11}, django-version {4.0,4.1,4.2,5.0,5.1}
18+
python-version {3.9}, django-version {4.2}
19+
python-version {3.10}, django-version {4.2,5.0,5.1}
20+
python-version {3.11}, django-version {4.2,5.0,5.1}
2321
python-version {3.12}, django-version {4.2,5.0,5.1}
22+
python-version {3.13}, django-version {5.1}
2423
outputs:
2524
matrix: ${{ steps.create_matrix.outputs.matrix }}
2625

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TODO upgrade once old Django versions are dropped
2-
FROM python:3.6-alpine3.7
2+
FROM python:3.9-alpine
33

44
RUN apk add --no-cache make
55

django_object_actions/tests/test_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def setUp(self):
1919
)
2020

2121
@mock.patch(
22-
"django_object_actions.utils.BaseDjangoObjectActions" ".admin_site", create=True
22+
"django_object_actions.utils.BaseDjangoObjectActions.admin_site", create=True
2323
)
2424
def test_get_action_urls_trivial_case(self, mock_site):
2525
urls = self.instance._get_action_urls()

0 commit comments

Comments
 (0)