Skip to main content

Poetry plugin to handle Azure Artifacts authentication

Project description

Poetry Azure Artifacts Plugin

Ruff pre-commit GitHub license PyPi versions PyPi downloads


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:

# Install uv
# https://docs.astral.sh/uv/getting-started/installation/
uv tool install vscode-task-runner
vtr install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry_azure_artifacts_plugin-0.1.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file poetry_azure_artifacts_plugin-0.1.3.tar.gz.

File metadata

File hashes

Hashes for poetry_azure_artifacts_plugin-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6a379e1e8dad9e927e951da1e3bb17936a20cfcedd7dacf8410ec687601e12ce
MD5 b065078377570c85885ddc24944e3f00
BLAKE2b-256 375670cdef7bf724400a27fe8760fd622b6507f2d23aaf1792226655c222fc63

See more details on using hashes here.

Provenance

The following attestation bundles were made for poetry_azure_artifacts_plugin-0.1.3.tar.gz:

Publisher: publish.yml on NathanVaughn/poetry-azure-artifacts-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file poetry_azure_artifacts_plugin-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_azure_artifacts_plugin-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0ce4dd761d1410aee1533cac77fbc556668001d7b51844705b2361236a0decc1
MD5 a887835d7397db73b5ef34e28c83c6f1
BLAKE2b-256 69b0470a66ee1ac120cc974ec90235c793e508c47d0e0320f66a1806a8f0721f

See more details on using hashes here.

Provenance

The following attestation bundles were made for poetry_azure_artifacts_plugin-0.1.3-py3-none-any.whl:

Publisher: publish.yml on NathanVaughn/poetry-azure-artifacts-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page