Skip to content

Deprecate 'upload' and 'publish' CLI commands#2875

Merged
messense merged 1 commit intoPyO3:mainfrom
e-nomem:deprecate-upload
Nov 27, 2025
Merged

Deprecate 'upload' and 'publish' CLI commands#2875
messense merged 1 commit intoPyO3:mainfrom
e-nomem:deprecate-upload

Conversation

@e-nomem
Copy link
Copy Markdown
Contributor

@e-nomem e-nomem commented Nov 26, 2025

Implements half of #2334

Comment thread src/ci.rs
Comment on lines +670 to +672
run: uv publish 'wheels-*/*'
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should suggest secure defaults and add --trusted-publishing always to the default command here, removing the UV_PUBLISH_TOKEN env var

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe in next version so this version is a smooth upgrade

@messense messense merged commit fcd8da8 into PyO3:main Nov 27, 2025
45 checks passed
@e-nomem e-nomem deleted the deprecate-upload branch November 28, 2025 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants