piprepo创建符合pep-503的包存储库。
piprepo的Python项目详细描述
管道回购
piprepo是一个用于构建和同步PEP-503兼容包存储库的工具。
它目前支持与本地目录以及aws s3的同步。
安装
pip install piprepo
使用量
生成:
usage: piprepo build [-h] directory positional arguments: directory Local directory to build optional arguments: -h, --help show this help message and exit
同步:
usage: piprepo sync [-h] source destination positional arguments: source Repository source destination Repository destination optional arguments: -h, --help show this help message and exit
建立本地一揽子回购协议
piprepo build命令构建一个简单的包索引 来自指定目录中包含的包。
下载一些源tarballs或wheels:
pip download -d /tmp/localrepo pyyaml pip wheel -w /tmp/localrepo pip
从下载的包构建一个简单的包存储库:
piprepo build /tmp/localrepo
生成并同步到目标回购
piprepo sync命令从 包含在本地源目录中的包,并同步 包和索引文件到指定的目标。
下载一些源tarballs或wheels:
pip download -d /tmp/syncrepo pyyaml pip wheel -w /tmp/syncrepo pip
同步到本地目录:
piprepo sync /tmp/syncrepo /tmp/newrepo
同步到S3存储桶:
piprepo sync /tmp/syncrepo s3://my-bucket/piprepo
发展
安装开发要求:
pip install -e .[dev]