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

File metadata

File hashes

Hashes for poetry_plugin_dynamic_override_sources-0.0.4.tar.gz
Algorithm Hash digest
SHA256 23d9da5afbd8e99251a1980ef90d9ec77f9ac3edf0388f05038b75eea69c4152
MD5 e6ca0ea4d4a509eceefa6c5502ce4b16
BLAKE2b-256 55393f4f0fc8fd34cf1bd9e35f22dc7e1a8702c88c815feab00ef59dc1bd671e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for poetry_plugin_dynamic_override_sources-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1a71f34f94704ec2b124f0ea412c666e61170596850e5ccac08149e3effc9735
MD5 b392e518a5ebad16db3aa0f12f13bd37
BLAKE2b-256 47641721d01462cb28e755bab5caf29cfd3910f965e2a57d70eb8e967ff252c8

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