Poetry plugin to dynamically override sources for private mirroring
Project description
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 topip install --index-url
POETRY_SOURCE_SOME_REPO_URL
will override the source namedsome-repo
with the specified urlPOETRY_SOURCE_PYPI_URL
will override thePyPI
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
Links
- poetry-plugin-use-pip-global-index-url - plugin that this was forked from
- poetry-plugin-pypi-mirror - upstream plugin that inspired
poetry-plugin-use-pip-global-index-url
. - python-poetry/poetry#1632 - poetry feature request to add support for global repository URL replacement
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
File details
Details for the file poetry_plugin_dynamic_override_sources-0.0.6.tar.gz
.
File metadata
- Download URL: poetry_plugin_dynamic_override_sources-0.0.6.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37104057e659260f01a6b7e53dbd41c80d9cc8555d9bcc95c264adfe87be22db |
|
MD5 | 81ca3af2c1be47d1824f8723cc67a6e1 |
|
BLAKE2b-256 | e154abf484a3e2376baf1fff9533005967d2c2d27e5f0bf35f846932d6c7bf56 |
File details
Details for the file poetry_plugin_dynamic_override_sources-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: poetry_plugin_dynamic_override_sources-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65c2b84549833be421da4c1f574bd5fa46bc3fc9bebd52f1ad37b7c46b15086b |
|
MD5 | 71251c75549fdf2ab532fc5b98d12cbe |
|
BLAKE2b-256 | 253b9fd5bcac399195316e693c7128e28014a122b9e1e7a676fb9c8fb2f3dba0 |