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.

1 yıl önce
12345678910111213141516
  1. A tiny Docker image to build a Python package and upload it to PyPI.
  2. Usage:
  3. docker build -t python-package-build-upload:latest .
  4. docker run -v mypkg-dist:/dist --rm -ti -e TWINE_PASSWORD=token python-package-build-upload:latest https://example.org/mypkg.git
  5. What it does:
  6. 1. Clones the repo.
  7. 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.
  8. 3. Calculates SHA-256 hashes of the dists.
  9. 4. Asks you to verify that they should be uploaded to PyPI.
  10. 5. Uploads, if confirmed.
  11. The `TWINE_PASSWORD` value must be an API token valid for the project. Username/password authentication is not supported.