Skip to content

Release process broken due to use of username/password authentication to PyPI #1154

@Stormheg

Description

@Stormheg

The rolling release automation for uploading new wheels to PyPI is failing due to its use of username/password authentication https://github.com/opencv/opencv-python/actions/runs/19187226321/job/54856865396

ERROR    HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/          
         Username/Password authentication is no longer supported. Migrate to API
         Tokens or Trusted Publishers instead. See                              
         https://pypi.org/help/#apitoken and                                    
         https://pypi.org/help/#trusted-publishers                              

The recommended way of releasing from GitHub to PyPI nowadays is to use Trusted Publishing. Using a Trusted Publisher also automatically opts you in to Digital Attestations, which is beneficial for security.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions