From d4918d10f9f6641c7ee25dadf40928cbf96da1ae Mon Sep 17 00:00:00 2001 From: Jeremy Reynolds Date: Fri, 23 Jul 2021 15:37:24 -0600 Subject: [PATCH 1/2] Fix inputname The externalFeed does not work, and appears to be an old argument. THe new ones appear documented [here](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/package/twine-authenticate?view=azure-devops) --- docs/pipelines/artifacts/pypi.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pipelines/artifacts/pypi.md b/docs/pipelines/artifacts/pypi.md index 8ab97e6c624..81db60e10da 100644 --- a/docs/pipelines/artifacts/pypi.md +++ b/docs/pipelines/artifacts/pypi.md @@ -60,12 +60,12 @@ The example below will enable you to authenticate to a list of Azure Artifacts f ```yaml - task: TwineAuthenticate@1 inputs: - artifactFeeds: 'feed_name1, feed_name2' - externalFeeds: 'feed_name1, feed_name2' + artifactFeed: 'feed_name1, feed_name2' + pythonUploadServiceConnection: 'feed_name1, feed_name2' ``` -* **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. +* **artifactFeeds**: an Azure Artifacts feed within your organization. If you only have one Azure Artifacts feed, use **artifactFeed** (singular) instead. +* **pythonUploadServiceConnection**: a [service connection](../library/service-endpoints.md) from external organizations including PyPI or feeds in other organizations in Azure DevOps. # [Classic](#tab/classic) From 5578071c7db32d5b816202c3601cd0eefa2db860 Mon Sep 17 00:00:00 2001 From: Rami Bououni Date: Mon, 2 Aug 2021 09:33:05 -0700 Subject: [PATCH 2/2] review --- docs/pipelines/artifacts/pypi.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/pipelines/artifacts/pypi.md b/docs/pipelines/artifacts/pypi.md index 81db60e10da..daac320b1ba 100644 --- a/docs/pipelines/artifacts/pypi.md +++ b/docs/pipelines/artifacts/pypi.md @@ -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: - artifactFeed: 'feed_name1, feed_name2' - pythonUploadServiceConnection: 'feed_name1, feed_name2' + artifactFeed: + pythonUploadServiceConnection: ``` -* **artifactFeeds**: an Azure Artifacts feed within your organization. If you only have one Azure Artifacts feed, use **artifactFeed** (singular) instead. -* **pythonUploadServiceConnection**: a [service connection](../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)