Skip to main content

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 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

See plugin installation instructions.

$POETRY_HOME/bin/pip install --user git+https://github.com/burkestar/poetry-plugin-dynamic-override-sources

Development

Setup

poetry install

Testing

poetry run pytest

Publishing

poetry publish --build

Links

Project details


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.3.tar.gz.

File metadata

File hashes

Hashes for poetry_plugin_dynamic_override_sources-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6dd640fbdb6c906146ff807bde53fe282b147c53699126b06208f0f9766060ec
MD5 372e5ccabbaaee5f86fe26b770198173
BLAKE2b-256 67c69cf5530b74a58bbfd036e6f3e2cb59157729e12a7001868ea77d5eeb05cb

See more details on using hashes here.

File details

Details for the file poetry_plugin_dynamic_override_sources-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_plugin_dynamic_override_sources-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5241530fbdc862add8ac3aa3e4dcadae8ad0a6dded24846676461e2ead275071
MD5 e7af1bdc5caeb3c61a49ca367fd122fa
BLAKE2b-256 71bbcf5c34a07da54bc065019dfe4b7fcddfb23b7aea0f019ba45cac35c31d06

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page