Skip to content

burkestar/poetry-plugin-dynamic-override-sources

 
 

Repository files navigation

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

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

About

Poetry plugin to dynamically override sources for private mirroring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%