Tiny Docker image to build a Python package and upload it to PyPI
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- FROM python:3-alpine
- RUN apk add --no-cache git
- RUN pip install --no-cache-dir build twine
- WORKDIR /src
- ENTRYPOINT git clone "$0" . \
- && python3 -m build --outdir /dist \
- && sha256sum /dist/* \
- && read -p 'Upload these files? [y/N] ' upload \
- && [ "${upload}" = y -o "${upload}" = Y ] \
- && TWINE_USERNAME=__token__ twine upload /dist/*
|