包:Python Twine Upload身份验证版本 0.*
Azure DevOps Services
为 twine 生成范围 PYPIRC_PATH 的环境变量提供凭据。 这使你可以从生成中将 Python 包 twine 发布到 源。
YAML 代码片段
# Python twine upload authenticate
# Authenticate for uploading Python distributions using twine. Add '-r FeedName/EndpointName --config-file $(PYPIRC_PATH)' to your twine upload command. For feeds present in this organization, use the feed name as the repository (-r). Otherwise, use the endpoint name defined in the service connection.
- task: TwineAuthenticate@0
inputs:
artifactFeeds:
#externalFeeds: # Optional
#publishPackageMetadata: true # Optional
参数
| 参数 | 说明 |
|---|---|
| artifactFeeds | 要Azure Artifacts的源列表twine。 |
| externalFeeds | 来自外部组织以使用 进行身份验证的服务连接列表 twine。 存储在终结点中的凭据必须具有包上传权限。 |
任务控制选项 |
开源
此任务开放源代码上GitHub。 欢迎提供反馈和建议。