Skip to content

Commit

Permalink
Merge pull request #3529 from MicrosoftDocs/repo_sync_working_branch
Browse files Browse the repository at this point in the history
Confirm merge from repo_sync_working_branch to master to sync with https://github.com/MicrosoftDocs/azure-devops-docs (branch master)
  • Loading branch information
Taojunshen authored Aug 2, 2021
2 parents 89ee297 + 231360d commit c36c5fa
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/pipelines/artifacts/pypi.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,17 @@ To use `twine` to publish Python packages, you first need to set up authenticati

# [YAML](#tab/yaml)

To authenticate with `twine`, add the following snippet to your _azure-pipelines.yml_ file.

The example below will enable you to authenticate to a list of Azure Artifacts feeds as well as a list of service connections from external organizations. If you need to authenticate to a single feed, you must replace the following arguments: `artifactFeeds` and `externalFeeds` with `artifactFeed` and `externalFeed` and specify your feed name accordingly.
To authenticate with `twine`, add the following snippet to your *azure-pipelines.yml* file.

```yaml
- task: TwineAuthenticate@1
inputs:
artifactFeeds: 'feed_name1, feed_name2'
externalFeeds: 'feed_name1, feed_name2'
artifactFeed: <ProjectName/FeedName>
pythonUploadServiceConnection: <Name_Of_Your_Service_Connection>
```
* **artifactFeeds**: a list of Azure Artifacts feeds within your organization. If you only have one Azure Artifacts feed, use **artifactFeed** (singular) instead.
* **externalFeeds**: a list of [service connections](../library/service-endpoints.md) from external organizations including PyPI or feeds in other organizations in Azure DevOps.
* **artifactFeed**: The name of your Azure Artifacts feed.
* **pythonUploadServiceConnection**: a [service connection](../library/service-endpoints.md#python-package-upload-service-connection) to authenticate with twine.
# [Classic](#tab/classic)
Expand Down

0 comments on commit c36c5fa

Please sign in to comment.