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.5.tar.gz
.
File metadata
- Download URL: poetry_plugin_dynamic_override_sources-0.0.5.tar.gz
- Upload date:
- Size: 5.0 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 | c2d011a12d6d57beb7cb40791a2ed10329960ca370d6d954d6ed70d72bc099d1 |
|
MD5 | c85a6bed38442e858120812127681178 |
|
BLAKE2b-256 | f66d5c3ad0c5d481c857b570d0558757e0352f0404b31c6b46087eaaf3e95409 |
File details
Details for the file poetry_plugin_dynamic_override_sources-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: poetry_plugin_dynamic_override_sources-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.3 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 | 1e0be1436d619c343145ba7007a192e968fe82670955b5460b08bd04f4ce48e8 |
|
MD5 | eccc0c0efb97c9cacf2cc2acc8727912 |
|
BLAKE2b-256 | df0816bb21c4e59d19bae20e2430a324b31574fae44482d1fbd9ed348c77f57e |