Skip to main content

poetry-plugin-dynamic-override-sources

Description

poetry-plugin-dynamic-override-sources is a plugin for poetry package manager in python.

With pip, you can override the package index URL using configuration files or environment variables such as:

  • PIP_INDEX_URL
  • PIP_PROXY

However, with poetry there is no such option. The pyproject.toml project configuration specifies one or more sources that are to be used for resolving packages from the artifact storage.

This plugin makes it possible to use environment variable overrides like:

  • PIP_INDEX_URL will override ALL repository urls, intending to function similar to pip install --index-url
  • POETRY_SOURCE_SOME_REPO_URL will override the source named some-repo with the specified url
  • POETRY_SOURCE_PYPI_URL will override the PyPI repository's URL. This is a special case.

Usage

Installation

poetry self add poetry-plugin-dynamic-override-sources

See plugin installation instructions.

Development

Setup

poetry install

Testing

poetry run pytest

Publishing

poetry publish --build

Metadata

Release files for poetry-plugin-dynamic-override-sources 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poetry-plugin-dynamic-override-sources 0.0.6
File Size Uploaded
poetry_plugin_dynamic_override_sources-0.0.6.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poetry-plugin-dynamic-override-sources 0.0.6
File Interpreter ABI Platform
poetry_plugin_dynamic_override_sources-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / poetry_plugin_dynamic_override_sources-0.0.6.tar.gz

Download URL poetry_plugin_dynamic_override_sources-0.0.6.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
37104057e659260f01a6b7e53dbd41c80d9cc8555d9bcc95c264adfe87be22db
BLAKE2b-256 checksum
How to use checksums
e154abf484a3e2376baf1fff9533005967d2c2d27e5f0bf35f846932d6c7bf56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/23.4.0

Release files / poetry_plugin_dynamic_override_sources-0.0.6-py3-none-any.whl

Download URL poetry_plugin_dynamic_override_sources-0.0.6-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65c2b84549833be421da4c1f574bd5fa46bc3fc9bebd52f1ad37b7c46b15086b
BLAKE2b-256 checksum
How to use checksums
253b9fd5bcac399195316e693c7128e28014a122b9e1e7a676fb9c8fb2f3dba0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/23.4.0

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page