"Automatically retrieve credentials for Azure Artifacts."
Actively maintained. Last release 3 weeks ago, commits in 6 of the last 26 weeks. A safe choice.
pip install artifacts-keyringNOTE
'artifacts-keyring' is a relatively thin wrapper around artifacts-credprovider. Make sure to also look at that repository for more information about different scenarios. For example:
artifacts-keyring
The artifacts-keyring package provides authentication for publishing or consuming Python packages to or from Azure Artifacts feeds within Azure DevOps.
This package is an extension to keyring, which will automatically find and use it once installed.
Both pip and twine will use keyring to
find credentials.
Installation
To install this package, run the following pip command:
pip install artifacts-keyring
Usage
Requirements
To use artifacts-keyring to set up authentication between pip/twine and Azure
Artifacts, the following requirements must be met:
-
pip version 19.2 or higher
-
twine version 1.13.0 or higher
-
python version 3.9 or higher
If no matching platform specific .whl is found when running pip install and the sdist is fetched instead, the .NET runtime 8.0.X or later is required. Refer to [here](https:// learn.microsoft.com/dotnet/core/install/) for installation guideline.
Publishing packages to an Azure Artifacts feed
Once artifacts-keyring is installed, to publish a package, use the following twine
command, replacing <org_name> and <feed_name> with your own:
twine upload --repository-url https://pkgs.dev.azure.com/<org_name>/_packaging/<feed_name>/pypi/upload <package_wheel_or_other_dist_format>