py-argcomplete

Details
Source
FROM stagex/pallet-python AS build
COPY --from=stagex/user-py-hatchling . /
COPY --from=stagex/user-py-hatch-vcs . /
COPY --from=stagex/user-py-pathspec . /
COPY --from=stagex/user-py-pluggy . /
COPY --from=stagex/user-py-trove-classifiers . /
ARG VERSION
ADD fetch/py-argcomplete-${VERSION}.tar.gz .
ENV SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION}
WORKDIR /argcomplete-${VERSION}
RUN --network=none <<-EOF
	set -eu
	python -m build --wheel --skip-dependency-check --no-isolation
	python -m installer --destdir=/rootfs dist/*.whl
	install -Dm0644 -t /rootfs/usr/share/licenses/py-argcomplete/ LICENSE.rst
	find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EOF

FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /