martin-g commented on code in PR #1610: URL: https://github.com/apache/datafusion-ballista/pull/1610#discussion_r3154566426
########## dev/release/README.md: ########## @@ -281,6 +282,166 @@ dot -Tsvg dev/release/crate-deps.dot > dev/release/crate-deps.svg (cd ballista-cli && cargo publish) ``` +### Publish Python Wheels to PyPI + +Only approved releases of the tarball should be published to PyPI, in order to +conform to Apache Software Foundation governance standards. The Python wheels +that get uploaded must be the same artifacts that the community voted on — they +are downloaded from the release candidate's CI run, not rebuilt. + +#### Prerequisites + +A DataFusion committer can publish the [`ballista` package on +PyPI](https://pypi.org/project/ballista/) after an official project release has +been made. One-time setup: + +- Create accounts on [pypi.org](https://pypi.org) and + [test.pypi.org](https://test.pypi.org) (separate accounts). +- Ask an existing maintainer of the `ballista` PyPI project — listed on the + project page — to add you as a maintainer. The request should be made on the + dev mailing list so it is publicly tracked. +- Generate project-scoped API tokens for both PyPI and TestPyPI. +- Configure `~/.pypirc`: + + ```ini + [distutils] + index-servers = + pypi + testpypi + + [pypi] + username = __token__ + password = pypi-... + + [testpypi] + repository = https://test.pypi.org/legacy/ + username = __token__ + password = pypi-... + ``` Review Comment: - Secure ~/.pypirc ```bash chmod 600 ~/.pypirc ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
