Configure Upstream Source in Azure Artifacts for Python Packages | Exam AZ-400 Solution

Configure Upstream Source in Azure Artifacts for Python Packages

Question

Your company uses Azure Artifacts for package management.

You need to configure an upstream source in Azure Artifacts for Python packages.

Which repository type should you use as an upstream source?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B

Get started with Python packages in Azure Artifacts

Create a feed -

1. Select Artifacts (in the left navigation of your Azure DevOps project).

2. On the Artifacts page, select Create Feed.

3. In the Create new feed dialog box:

4. In the Name field, give the feed a name.

PyPI is the default repository name for twine, which is a tool for publishing Python packages.

https://docs.microsoft.com/en-us/azure/devops/artifacts/quickstarts/python-packages

When configuring an upstream source in Azure Artifacts for Python packages, the appropriate repository type to use is PyPI.

PyPI (Python Package Index) is the official third-party software repository for the Python programming language. It contains tens of thousands of Python packages, making it an ideal choice as an upstream source for Python packages in Azure Artifacts.

Azure Artifacts is a package management tool that allows users to store, publish, and share packages with other developers. With Azure Artifacts, developers can create private, public, or upstream repositories. Upstream repositories are external sources that provide packages that can be consumed by other repositories.

To configure an upstream source in Azure Artifacts for Python packages, you should follow these steps:

  1. Go to your Azure Artifacts feed and select the upstream sources tab.
  2. Click the Add upstream source button.
  3. Select PyPI from the list of available upstream sources.
  4. Enter the URL of the PyPI repository.
  5. Enter any authentication credentials required for accessing the PyPI repository.
  6. Click Save.

After completing these steps, you can use the packages from the PyPI repository in your Azure Artifacts feed.

In summary, when configuring an upstream source in Azure Artifacts for Python packages, the appropriate repository type to use is PyPI, which is the official third-party software repository for the Python programming language.