Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "Trusted Publishing" works for our PyPI releasing #41937

Open
potiuk opened this issue Sep 1, 2024 · 1 comment
Open

Make "Trusted Publishing" works for our PyPI releasing #41937

potiuk opened this issue Sep 1, 2024 · 1 comment
Labels
area:dev-env CI, pre-commit, pylint and other changes that do not change the behavior of the final code area:dev-tools

Comments

@potiuk
Copy link
Member

potiuk commented Sep 1, 2024

We already agreed with the ASF infrastrucutre that it would be great to use Trusted publishing to publish packages to PyPI. Curently we are using "twine" and local API keys by release managers - but https://docs.pypi.org/trusted-publishers/ allows to configure our PyPI organisation to accept "Github Actions" workflows publishing to PyPI via dedicated workflows - where GitHub Actions is a trusted publisher.

The documentation explains how to do it - we will need to involve INFRA to configure it for our repository.

The idea to implement is is that Github Actions workflow should not "build" the packages to publish in PyPI - but they should download them from "https://downloads.apache.org/" and "https://dist.apache.org/repos/dist/dev/airflow/" for RC/Alpha/Beta packages, verify their integrity (checksums/signatures) similarly to https://github.com/apache/airflow/blob/main/dev/README_RELEASE_AIRFLOW.md and publishing those packages.

Intead of "twine upload", release manager should just run a workflow in GitHub Actions that should download packages from apache svn/downloads and publish them in PyPI after verification.

@potiuk potiuk converted this from a draft issue Sep 1, 2024
@potiuk potiuk added the area:dev-env CI, pre-commit, pylint and other changes that do not change the behavior of the final code label Sep 5, 2024
@potiuk
Copy link
Member Author

potiuk commented Oct 27, 2024

Just to add - example changes in workflows proposed by pip pypa/pip#13048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-env CI, pre-commit, pylint and other changes that do not change the behavior of the final code area:dev-tools
Projects
Status: Ready
Development

No branches or pull requests

1 participant