Tiny Docker image to build a Python package and upload it to PyPI
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
JustAnotherArchivist 8810b35fc0 Initial commit há 1 ano
Dockerfile Initial commit há 1 ano
README.md Initial commit há 1 ano

README.md

A tiny Docker image to build a Python package and upload it to PyPI.

Usage:

docker build -t python-package-build-upload:latest .
docker run -v mypkg-dist:/dist --rm -ti -e TWINE_PASSWORD=token python-package-build-upload:latest https://example.org/mypkg.git

What it does:

  1. Clones the repo.
  2. Runs python3 -m build --outdir /dist on it. Mounting a volume to /dist is optional but recommended if you’d like to keep the original files.
  3. Calculates SHA-256 hashes of the dists.
  4. Asks you to verify that they should be uploaded to PyPI.
  5. Uploads, if confirmed.

The TWINE_PASSWORD value must be an API token valid for the project. Username/password authentication is not supported.