Skip to content

Commit

Permalink
Added Fedora 41
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Nov 2, 2024
1 parent 6aa6b8b commit 45457bd
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- "debian-12-bookworm-x86"
- "debian-12-bookworm-amd64"
- "fedora-40-amd64"
- "fedora-41-amd64"
- "gentoo"
- "ubuntu-22.04-jammy-amd64"
- "ubuntu-22.04-jammy-amd64-valgrind"
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ TARGETS = \
debian-12-bookworm-x86 \
debian-12-bookworm-amd64 \
fedora-40-amd64 \
fedora-41-amd64 \
gentoo \
manylinux2014-wheel-build \
manylinux_2_28-wheel-build \
Expand Down
45 changes: 45 additions & 0 deletions fedora-41-amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
FROM fedora:41

RUN dnf install -y \
freetype-devel \
fribidi-devel \
gcc \
harfbuzz-devel \
lcms2-devel \
libimagequant-devel \
libjpeg-devel \
libraqm-devel \
libtiff-devel \
libwebp-devel \
make \
openjpeg2-devel \
python3-devel \
python3-tkinter \
python3-virtualenv \
redhat-rpm-config \
tcl-devel \
tk-devel \
util-linux \
which \
xorg-x11-server-Xvfb \
zlib-devel \
&& dnf clean all

RUN useradd --uid 1001 pillow \
&& chown pillow:pillow /home/pillow

ARG PIP_DISABLE_PIP_VERSION_CHECK=1
ARG PIP_NO_CACHE_DIR=1

RUN virtualenv -p /usr/bin/python3.13 --system-site-packages /vpy3 \
&& /vpy3/bin/pip install --upgrade pip \
&& /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout \
&& /vpy3/bin/pip install numpy --only-binary=:all: || true \
&& chown -R pillow:pillow /vpy3

ADD depends /depends

USER pillow
CMD ["depends/test.sh"]

#docker run -v $GITHUB_WORKSPACE:/Pillow pythonpillow/fedora-41-amd64
1 change: 1 addition & 0 deletions fedora-41-amd64/Makefile
6 changes: 6 additions & 0 deletions fedora-41-amd64/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
source /vpy3/bin/activate
cd /Pillow
make clean
make install-coverage
/usr/bin/xvfb-run -a .ci/test.sh
2 changes: 2 additions & 0 deletions fedora-41-amd64/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
docker pull fedora:41

0 comments on commit 45457bd

Please # to comment.