Skip to content

Commit 71fb4cb

Browse files
authored
Add Fedora 42 (#235)
1 parent caed382 commit 71fb4cb

File tree

6 files changed

+57
-0
lines changed

6 files changed

+57
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- "centos-stream-10-amd64"
3131
- "debian-12-bookworm-x86"
3232
- "debian-12-bookworm-amd64"
33+
- "fedora-42-amd64"
3334
- "gentoo"
3435
- "ubuntu-22.04-jammy-amd64"
3536
- "ubuntu-22.04-jammy-amd64-valgrind"

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ TARGETS = \
88
debian-12-bookworm-x86 \
99
debian-12-bookworm-amd64 \
1010
fedora-41-amd64 \
11+
fedora-42-amd64 \
1112
gentoo \
1213
manylinux2014-wheel-build \
1314
manylinux_2_28-wheel-build \

fedora-42-amd64/Dockerfile

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

fedora-42-amd64/Makefile

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

fedora-42-amd64/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
source /vpy3/bin/activate
3+
cd /Pillow
4+
make clean
5+
make install-coverage
6+
/usr/bin/xvfb-run -a .ci/test.sh

fedora-42-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:42

0 commit comments

Comments
 (0)