一个用于私有存储库的简单setup.py帮助程序
restricted_pkg_ext的Python项目详细描述
这个python包提供了一个简单的Distribute包装来处理 私人项目。 它主要用于包的setup.py脚本中。
它提供以下功能:
- 在python setup.py install 期间获取包依赖项时使用私有包索引
- 将register和upload命令限制为私有包索引,或完全禁用它们
- 在访问索引时容易支持经过身份验证的URL。
兼容性
restricted_pkg包需要分发,并支持Python2.6及更高版本(包括python3)。
用法
在setup.py脚本中,请确保有以下行:
from setuptools import find_packages from restricted_pkg import setup setup( ..., private_repository="https://@myrepo.example.tld/path/to/repo", install_requires=[ "distribute", "restricted_pkg", ], )