Skip to main content

devpi plugin prevent mixing packages using both private and public mirrors

Project description

devpi-private-mirrors

PyPI version shields.io PyPI pyversions PyPI download month

Plugin prevent mixing packages using both private and public mirrors at the same time.

Installation

pip install devpi-private-mirrors

There is no configuration needed as devpi-server will automatically discover the plugin through calling hooks using the setuptools entry points mechanism.

Motivation

Sometimes you need to use private mirrors, but still want access to pypi.

With base devpi only option is to specify both as private index bases, but in that case you got mix of packages and their versions between private and public mirrors.

Which leads to security and compatibility issues.

This plugin allows mark some indexes as private and hide all packages from them from public indexes.

Usage

Create local index with stage_private_base type with several mirrors

devpi index -c root/dev type=stage_private_base bases=root/private1,root/private2,root/pypi

Set private_base option for all private bases

devpi root/private1 private_base=True
devpi root/private2 private_base=True

Now private mirrors will not be mixed with public.

Note: private indexes can be mixed with each other (for example, if you have some version of package in private1 and some in private2, you will get both versions).

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

devpi-private-mirrors-0.0.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

devpi_private_mirrors-0.0.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file devpi-private-mirrors-0.0.3.tar.gz.

File metadata

  • Download URL: devpi-private-mirrors-0.0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for devpi-private-mirrors-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1d16b99b15efd7e763a5a8a264e7ec31949fbc14348f0835247b465a5d9ce750
MD5 c7ecff9d4602012a24b7c7f5afef41d8
BLAKE2b-256 7d77981ee3d0c5c47c05e346cb2d77ea1d4969e595a727cb6377cb3cb2a4aad6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devpi_private_mirrors-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3af1123abee2a4634a0931b418788a1ba668735f7775843440350ae1580f282a
MD5 0bd2ddf27881e6f7388e94dd8f529b20
BLAKE2b-256 419378a72637b4b7d6e97d33031c7d5d802f98a3a43dc76484cfcca043e9dc6d

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