py-pygments
Source
FROM stagex/pallet-cython AS build
COPY --from=stagex/user-py-hatchling . /
COPY --from=stagex/user-py-pathspec . /
COPY --from=stagex/user-py-trove-classifiers . /
COPY --from=stagex/user-py-pluggy . /
ARG VERSION
ADD fetch/py-pygments-${VERSION}.tar.gz .
WORKDIR /pygments-${VERSION}
RUN gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
RUN --network=none <<-EOF
python -m installer -d /rootfs .dist/*.whl
find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /Copied to clipboard!