Poetry plugin to handle Azure Artifacts authentication
Project description
Poetry Azure Artifacts Plugin
This is a Poetry plugin that transparently takes care of authentication with Azure Artifacts feeds. This is heavily based on semgrep/poetry-codeartifact-plugin.
Usage
This plugin requires Python 3.9+ which is a bit less lenient than Poetry itself.
Install this plugin with
poetry self add poetry-azure-artifacts-plugin
or
pipx inject poetry poetry-azure-artifacts-plugin
In your pyproject.toml
file, add your Azure Artifacts feed URL as a source.
[[tool.poetry.source]]
name = "ado"
url = "https://pkgs.dev.azure.com/{organization}/_packaging/{feed}/pypi/simple/"
priority = "primary"
Now, when running poetry install
, or poetry lock
, Poetry will automatically
fetch credentials for your Azure Artifacts feed, utilizing
artifacts-keyring.
Note: artifacts-keyring
requires dotnet
to be installed and available in your PATH.
This works by recognizing authentication failures to URLs containing
pkgs.dev.azure.com
or pkgs.visualstudio.com
. If you have an on-premises
Azure DevOps server that works with artifacts-keyring
, instead make the source name include the text azure-artifacts
:
[[tool.poetry.source]]
name = "azure-artifacts-feed"
url = "https://devops.mydomain.com/{organization}/_packaging/{feed}/pypi/simple/"
priority = "primary"
Development
Use the provided devcontainer or run the following for local development:
python -m pip install pipx --upgrade
pipx ensurepath
pipx install poetry
pipx install vscode-task-runner
# (Optionally) Add pre-commit plugin
poetry self add poetry-pre-commit-plugin
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for poetry_azure_artifacts_plugin-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b585f5917eb50d2b54723f1e1efd2b695eeb4faf7743979bccac3c04163d8a1 |
|
MD5 | 1d891bd6a6f427d6adcb40f72dba74e0 |
|
BLAKE2b-256 | 5bd755e871e627828fde438e77cd5b71259e4cc17afba0471a58e1d85b48c10d |
Hashes for poetry_azure_artifacts_plugin-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e98895cf426f8251b009f75b6613acc41525b0484b62dff42ea241ff37b12513 |
|
MD5 | 2587bfcdba7a869da936444214c1a314 |
|
BLAKE2b-256 | 17463793baa4e87b9e72c57ee71d0d681cd35eeda3dd4de83e8505bae2640757 |