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 overridePyPI
sourcePOETRY_SOURCE_FOO_URL
will override the source namedFOO
with the specified url
Usage
Installation
See plugin installation instructions.
$POETRY_HOME/bin/pip install --user git+https://github.com/burkestar/poetry-plugin-dynamic-override-sources
Configuration
Development
Setup
poetry install
Testing
poetry run pytest
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.2.tar.gz
.
File metadata
- Download URL: poetry_plugin_dynamic_override_sources-0.0.2.tar.gz
- Upload date:
- Size: 4.6 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 | 0f0e7a8c67ce4023cf6c27d14c9a27eb5be8ad316ac26f171aab66f4b766a669 |
|
MD5 | a68dade7a630705d4fe7bf937a18e569 |
|
BLAKE2b-256 | 2d5eb87e553243bf44c6e701840dbccc7ca0ef32284f7081f0ef8006fc4cd945 |
File details
Details for the file poetry_plugin_dynamic_override_sources-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: poetry_plugin_dynamic_override_sources-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.7 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 | 8b7d7f1236bda94cb34abd0d46b7153354e75557aeada6d6c9d206e472c1c71d |
|
MD5 | b00672577a268c5f11c3a0dab9d707e5 |
|
BLAKE2b-256 | 00aa6c2bfc14cff80dbf297f29fdf799067b6cab4525c4844bf65ccbf6b8106c |