Use `uv publish` instead of twine in docs (#7837)

This commit is contained in:
konsti 2024-10-01 16:14:29 +02:00 committed by GitHub
parent d7feaadcbf
commit af824c17af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 8 deletions

View File

@ -102,18 +102,18 @@ export UV_EXTRA_INDEX_URL="https://aws:${AWS_CODEARTIFACT_TOKEN}@${AWS_DOMAIN}-$
### Publishing packages ### Publishing packages
If you also want to publish your own packages to AWS CodeArtifact, you can use `twine` as described If you also want to publish your own packages to AWS CodeArtifact, you can use `uv publish` as
in the [publishing guide](../publish.md). You will need to set `TWINE_REPOSITORY_URL` separately described in the [publishing guide](../publish.md). You will need to set `UV_PUBLISH_URL` separately
from the credentials: from the credentials:
```bash ```bash
# Configure twine to use AWS CodeArtifact # Configure uv to use AWS CodeArtifact
export TWINE_REPOSITORY_URL="https://${AWS_CODEARTIFACT_TOKEN}@${AWS_DOMAIN}-${AWS_ACCOUNT_ID}.d.codeartifact.${AWS_REGION}.amazonaws.com/pypi/${AWS_CODEARTIFACT_REPOSITORY}/" export UV_PUBLISH_URL="https://${AWS_CODEARTIFACT_TOKEN}@${AWS_DOMAIN}-${AWS_ACCOUNT_ID}.d.codeartifact.${AWS_REGION}.amazonaws.com/pypi/${AWS_CODEARTIFACT_REPOSITORY}/"
export TWINE_USERNAME=aws export UV_PUBLISH_USERNAME=aws
export TWINE_PASSWORD="$AWS_CODEARTIFACT_TOKEN" export UV_PUBLISH_PASSWORD="$AWS_CODEARTIFACT_TOKEN"
# Publish the package # Publish the package
uv run twine upload dist/* uv publish
``` ```
## Other indexes ## Other indexes