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
and pkgs.visualstudio.com
. If you have an on-premises
Azure DevOps server, 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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bcce2e3c6e4349479024d2378c37ff539c17ff12e1e4363d83975648df4a6fc |
|
MD5 | 512ddd4c8a376021c5d41052a94ec873 |
|
BLAKE2b-256 | 4c7e761764be23cb0f4838853324bb898b094cdc0a48586d1ccc272a85e80a64 |
Hashes for poetry_azure_artifacts_plugin-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a21a4c0cc538e1470cf1f02a0805bcd3adadd18707e6e71d6bd625328ae5a53 |
|
MD5 | a45f56eb54208e0cbffe47ec78535a37 |
|
BLAKE2b-256 | 6f76d8a3297584023c4d636a1cbaa71852d34bbab187a9c142f223141d45fec9 |