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

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

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

File metadata

File hashes

Hashes for poetry_plugin_dynamic_override_sources-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c2d011a12d6d57beb7cb40791a2ed10329960ca370d6d954d6ed70d72bc099d1
MD5 c85a6bed38442e858120812127681178
BLAKE2b-256 f66d5c3ad0c5d481c857b570d0558757e0352f0404b31c6b46087eaaf3e95409

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for poetry_plugin_dynamic_override_sources-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0be1436d619c343145ba7007a192e968fe82670955b5460b08bd04f4ce48e8
MD5 eccc0c0efb97c9cacf2cc2acc8727912
BLAKE2b-256 df0816bb21c4e59d19bae20e2430a324b31574fae44482d1fbd9ed348c77f57e

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