Skip to content

Commit 7386fe5

Browse files
authored
Merge pull request #203 from radarhere/fedora
Archived Fedora 38 and added Fedora 40
2 parents ea330d5 + fc3109a commit 7386fe5

File tree

10 files changed

+54
-2
lines changed

10 files changed

+54
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- "debian-11-bullseye-amd64"
3131
- "debian-12-bookworm-x86"
3232
- "debian-12-bookworm-amd64"
33-
- "fedora-38-amd64"
3433
- "fedora-39-amd64"
34+
- "fedora-40-amd64"
3535
- "gentoo"
3636
- "ubuntu-20.04-focal-amd64"
3737
- "ubuntu-22.04-jammy-amd64-valgrind"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ TARGETS = \
77
debian-11-bullseye-amd64 \
88
debian-12-bookworm-x86 \
99
debian-12-bookworm-amd64 \
10-
fedora-38-amd64 \
1110
fedora-39-amd64 \
11+
fedora-40-amd64 \
1212
gentoo \
1313
manylinux2014-wheel-build \
1414
manylinux_2_28-wheel-build \

fedora-40-amd64/Dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM fedora:40
2+
3+
RUN dnf install -y \
4+
freetype-devel \
5+
fribidi-devel \
6+
gcc \
7+
harfbuzz-devel \
8+
lcms2-devel \
9+
libimagequant-devel \
10+
libjpeg-devel \
11+
libraqm-devel \
12+
libtiff-devel \
13+
libwebp-devel \
14+
make \
15+
openjpeg2-devel \
16+
python3-devel \
17+
python3-tkinter \
18+
python3-virtualenv \
19+
redhat-rpm-config \
20+
tcl-devel \
21+
tk-devel \
22+
util-linux \
23+
which \
24+
xorg-x11-server-Xvfb \
25+
zlib-devel \
26+
&& dnf clean all
27+
28+
RUN useradd pillow \
29+
&& chown pillow:pillow /home/pillow
30+
31+
RUN virtualenv -p /usr/bin/python3.12 --system-site-packages /vpy3 \
32+
&& /vpy3/bin/pip install --no-cache-dir --upgrade pip \
33+
&& /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
34+
&& /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
35+
&& chown -R pillow:pillow /vpy3
36+
37+
ADD depends /depends
38+
39+
USER pillow
40+
CMD ["depends/test.sh"]
41+
42+
#docker run -v $GITHUB_WORKSPACE:/Pillow pythonpillow/fedora-40-amd64

fedora-40-amd64/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Makefile.sub

fedora-40-amd64/test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
source /vpy3/bin/activate
3+
cd /Pillow
4+
make clean
5+
make install-coverage
6+
python3 -c "from PIL import Image"
7+
/usr/bin/xvfb-run -a pytest -vx --cov PIL --cov-report term Tests

fedora-40-amd64/update.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
docker pull fedora:40

0 commit comments

Comments
 (0)