Tiny Docker image to build a Python package and upload it to PyPI
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

11 satır
376 B

  1. FROM python:3-alpine
  2. RUN apk add --no-cache git
  3. RUN pip install --no-cache-dir build twine
  4. WORKDIR /src
  5. ENTRYPOINT git clone "$0" . \
  6. && python3 -m build --outdir /dist \
  7. && sha256sum /dist/* \
  8. && read -p 'Upload these files? [y/N] ' upload \
  9. && [ "${upload}" = y -o "${upload}" = Y ] \
  10. && TWINE_USERNAME=__token__ twine upload /dist/*