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.2.0.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.

poetry_azure_artifacts_plugin-0.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for poetry_azure_artifacts_plugin-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6093624ca2dbf40777785e5f8f07cdbd84af2bf2744c306224574f59d22ea159
MD5 3b31f7c2eeac3f2b029b1382e312ad9e
BLAKE2b-256 6171291408166e11d43c64c591ab7b6b328b4efc5f15838103aacb8bd558400b

See more details on using hashes here.

Provenance

The following attestation bundles were made for poetry_azure_artifacts_plugin-0.2.0.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_azure_artifacts_plugin-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77eb2eac1cc2df4c18f4732553af573326bba008baa888fca5ce1b3105de4a92
MD5 8ff50ad74f92264b665b10d46b69cf81
BLAKE2b-256 c82812b9ce5f0ebe2963784cc2404a836b5d428f17a5857cf0a7be512fcaa864

See more details on using hashes here.

Provenance

The following attestation bundles were made for poetry_azure_artifacts_plugin-0.2.0-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