aio-libs / aiomysql

aiomysql is a library for accessing a MySQL database from the asyncio
https://aiomysql.rtfd.io
MIT License
1.73k stars 253 forks source link

Implement Trusted Publishing for prod PyPI #924

Closed Nothing4You closed 1 year ago

Nothing4You commented 1 year ago

What do these changes do?

Implement OIDC-based publishing to PyPI: https://docs.pypi.org/trusted-publishers/

This avoids having to use long lived secrets by replacing them with GitHub-issued OIDC tokens generated on demand.

Publishing for Test PyPI has been implemented in #929 already.

codecov[bot] commented 1 year ago

Codecov Report

Merging #924 (18d238a) into master (e40caac) will not change coverage. The diff coverage is n/a.

:exclamation: Current head 18d238a differs from pull request most recent head e4979f5. Consider uploading reports for the commit e4979f5 to get more accurate results

@@           Coverage Diff           @@
##           master     #924   +/-   ##
=======================================
  Coverage   93.64%   93.64%           
=======================================
  Files          36       36           
  Lines        5538     5538           
  Branches      895      895           
=======================================
  Hits         5186     5186           
  Misses        262      262           
  Partials       90       90           
Flag Coverage Δ
CI-GHA 93.24% <ø> (ø)
DB-mariadb-10.10 ?
DB-mariadb-10.11 ?
DB-mariadb-10.3 90.30% <ø> (?)
DB-mariadb-10.4 90.30% <ø> (ø)
DB-mariadb-10.5 90.28% <ø> (ø)
DB-mariadb-10.6 90.28% <ø> (ø)
DB-mariadb-10.7 90.28% <ø> (?)
DB-mariadb-10.8 90.28% <ø> (?)
DB-mariadb-10.9 ?
DB-mysql-5.7 90.98% <ø> (ø)
DB-mysql-8.0 92.37% <ø> (ø)
OS-Linux 93.24% <ø> (ø)
Py-3.10.11 93.15% <ø> (ø)
Py-3.11.3 93.15% <ø> (ø)
Py-3.7.16 92.78% <ø> (ø)
Py-3.8.16 93.18% <ø> (ø)
Py-3.9.16 93.02% <ø> (ø)
VM-ubuntu-latest 93.24% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.10 ?
ubuntu-latest_3.10_mariadb-10.11 ?
ubuntu-latest_3.10_mariadb-10.3 90.21% <ø> (?)
ubuntu-latest_3.10_mariadb-10.4 90.21% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.5 90.19% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.6 90.19% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.7 90.19% <ø> (?)
ubuntu-latest_3.10_mariadb-10.8 90.19% <ø> (?)
ubuntu-latest_3.10_mariadb-10.9 ?
ubuntu-latest_3.10_mysql-5.7 90.89% <ø> (ø)
ubuntu-latest_3.10_mysql-8.0 92.28% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.10 ?
ubuntu-latest_3.11_mariadb-10.11 ?
ubuntu-latest_3.11_mariadb-10.3 90.21% <ø> (?)
ubuntu-latest_3.11_mariadb-10.4 90.21% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.5 90.19% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.6 90.19% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.7 90.19% <ø> (?)
ubuntu-latest_3.11_mariadb-10.8 90.19% <ø> (?)
ubuntu-latest_3.11_mariadb-10.9 ?
ubuntu-latest_3.11_mysql-5.7 90.89% <ø> (ø)
ubuntu-latest_3.11_mysql-8.0 92.28% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.10 ?
ubuntu-latest_3.7_mariadb-10.11 ?
ubuntu-latest_3.7_mariadb-10.3 89.66% <ø> (?)
ubuntu-latest_3.7_mariadb-10.4 89.66% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.5 89.64% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.6 89.64% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.7 89.64% <ø> (?)
ubuntu-latest_3.7_mariadb-10.8 89.64% <ø> (?)
ubuntu-latest_3.7_mariadb-10.9 ?
ubuntu-latest_3.7_mysql-5.7 90.39% <ø> (ø)
ubuntu-latest_3.7_mysql-8.0 91.86% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.10 ?
ubuntu-latest_3.8_mariadb-10.11 ?
ubuntu-latest_3.8_mariadb-10.3 90.25% <ø> (?)
ubuntu-latest_3.8_mariadb-10.4 90.25% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.5 90.23% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.6 90.23% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.7 90.23% <ø> (?)
ubuntu-latest_3.8_mariadb-10.8 90.23% <ø> (?)
ubuntu-latest_3.8_mariadb-10.9 ?
ubuntu-latest_3.8_mysql-5.7 90.94% <ø> (ø)
ubuntu-latest_3.8_mysql-8.0 92.31% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.10 ?
ubuntu-latest_3.9_mariadb-10.11 ?
ubuntu-latest_3.9_mariadb-10.3 90.09% <ø> (?)
ubuntu-latest_3.9_mariadb-10.4 90.09% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.5 90.07% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.6 90.07% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.7 90.07% <ø> (?)
ubuntu-latest_3.9_mariadb-10.8 90.07% <ø> (?)
ubuntu-latest_3.9_mariadb-10.9 ?
ubuntu-latest_3.9_mysql-5.7 90.77% <ø> (ø)
ubuntu-latest_3.9_mysql-8.0 92.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Nothing4You commented 1 year ago

for prod pypi blocked by @jettify being the only owner. can be implemented for testpypi for now but for prod we'll need to get in touch with @jettify to either implement it directly or share owner privileges with @webknjaz and/or me.

webknjaz commented 1 year ago

pre-commit.ci run