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_URLPIP_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_URLwill override ALL repository urls, intending to function similar topip install --index-urlPOETRY_SOURCE_SOME_REPO_URLwill override the source namedsome-repowith the specified urlPOETRY_SOURCE_PYPI_URLwill override thePyPIrepository'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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| poetry_plugin_dynamic_override_sources-0.0.6.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|