Skip to content

Commit 2eb0059

Browse files
authored
Update Python & Django version support (#206)
* Drop Python 3.8 (EOL) * Drop Django 3.2 LTS (EOL) * Drop Django 4.1 (EOL) * Add Django 5.1 * Add Django 5.2 LTS
1 parent 9741c5a commit 2eb0059

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ jobs:
7575
strategy:
7676
matrix:
7777
python-version:
78-
- "3.8"
7978
- "3.9"
8079
- "3.10"
8180
- "3.12"
81+
- "3.13"
8282
django-version:
83-
- "3.2" # LTS
83+
- "4.2" # LTS
8484
runs-on: ubuntu-latest
8585
steps:
8686
- uses: actions/checkout@v4
@@ -103,11 +103,11 @@ jobs:
103103
strategy:
104104
matrix:
105105
python-version:
106-
- "3.11"
106+
- "3.12"
107107
django-version:
108108
# LTS gets tested on all OS
109-
- "4.1"
110-
- "4.2"
109+
- "5.1"
110+
- "5.2"
111111
runs-on: ubuntu-latest
112112
steps:
113113
- uses: actions/checkout@v4

pictures/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def name(self) -> str:
104104
def path(self) -> Path:
105105
return Path(self.storage.path(self.name))
106106

107-
def process(self, image) -> "Image":
107+
def process(self, image) -> Image:
108108
image = ImageOps.exif_transpose(image) # crates a copy
109109
height = self.height or self.width / Fraction(*image.size)
110110
size = math.floor(self.width), math.floor(height)

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ classifiers = [
2323
"Topic :: Software Development",
2424
"Programming Language :: Python :: 3",
2525
"Programming Language :: Python :: 3 :: Only",
26-
"Programming Language :: Python :: 3.8",
2726
"Programming Language :: Python :: 3.9",
2827
"Programming Language :: Python :: 3.10",
2928
"Programming Language :: Python :: 3.11",
3029
"Programming Language :: Python :: 3.12",
30+
"Programming Language :: Python :: 3.13",
3131
"Framework :: Django",
32-
"Framework :: Django :: 3.2",
33-
"Framework :: Django :: 4.1",
3432
"Framework :: Django :: 4.2",
33+
"Framework :: Django :: 5.1",
34+
"Framework :: Django :: 5.2",
3535
]
36-
requires-python = ">=3.8"
37-
dependencies = ["django>=3.2.0", "pillow>=9.0.0"]
36+
requires-python = ">=3.9"
37+
dependencies = ["django>=4.2.0", "pillow>=9.0.0"]
3838

3939
[project.optional-dependencies]
4040
test = [

0 commit comments

Comments
 (0)