devpi-private-mirrors-0.0.3
توضیحات
devpi plugin prevent mixing packages using both private and public mirrors
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | devpi-private-mirrors-0.0.3 |
| نام | devpi-private-mirrors |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | strayge <strayge@gmail.ru> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/devpi-private-mirrors/ |
| مجوز | MIT |
# devpi-private-mirrors
[](https://pypi.python.org/pypi/devpi-private-mirrors/)
[](https://pypi.python.org/pypi/devpi-private-mirrors/)
[](https://pypi.python.org/pypi/devpi-private-mirrors/)
Plugin prevent mixing packages using both private and public mirrors at the same time.
## Installation
```sh
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).
نیازمندی
| مقدار | نام |
|---|---|
| - | devpi-server |
| xtr | flake8-pyproject; |
| xtr | flake8-commas; |
| xtr | flake8-isort!=5.0.1,!=5.0.2; |
| xtr | flake8-bugbear; |
| xtr | flake8-simplify; |
| xtr | flake8-print; |
| xtr | flake8-debugger; |
| xtr | flake8-hangover; |
| xtr | isort; |
| xtr | mypy; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl devpi-private-mirrors-0.0.3:
pip install devpi-private-mirrors-0.0.3.whl
نصب پکیج tar.gz devpi-private-mirrors-0.0.3:
pip install devpi-private-mirrors-0.0.3.tar.gz