devpi builder接受requirements.txt,并用列出的python包的轮子递增地填充devpi索引。
devpi-builder的Python项目详细描述
Brandon the devpi builder
devpi生成器brandon采用a requirements.txt 并用列出的python包的轮子递增地填充a devpi 索引。
布兰登举例
给定一个 requirements.txt ,我们可以使用以下命令将所有列出的包上载到本地devpi上的index opensource/debian_7 :
$ devpi-builder requirements.txt http://localhost:3141/opensource/Debian_7
这样的例子requirements.txt
progressbar==0.2.2 progressbar==0.2.1 PyYAML==3.11
命令行用法
usage: devpi-builder [-h] [--batch] [--user USER] [--password PASSWORD] [--blacklist BLACKLIST] [--pure-index PURE_INDEX] [--junit-xml JUNIT_XML] [--run-id RUN_ID] [--dry-run] [--client-cert CLIENT_CERT] requirements index Create wheels for all given project versions and upload them to the given index. positional arguments: requirements requirements.txt style file specifying which project versions to package. index The index to upload the packaged software to. optional arguments: -h, --help show this help message and exit --batch Batch mode. Do not prompt for credentials --user USER The user to log in as. --password PASSWORD Password of the user. --blacklist BLACKLIST Packages matched by this requirements.txt style file will never be build. --pure-index PURE_INDEX The index to use for pure packages. Any non-pure package will be uploaded to the index given as positional argument. Packages already found in the pure index will not be built, either. --junit-xml JUNIT_XML Write information about the build success / failure to a JUnit-compatible XML file. --run-id RUN_ID Add the given string to all entries in the XML output, allowing to distinguish output from multiple runs in a merged XML. --dry-run Build missing wheels, but do not modify the state of the devpi server. --client-cert CLIENT_CERT Client key to use to authenticate with the devpi server.
可以使用以下环境变量代替命令行参数:
< DL>功能
- 阅读 requirements.txt 样式输入文件。
- 从环境中读取用户/密码(使用 devpi_user 和 devpi_password )。
- 在同一文件中支持一个包的多个版本。
- 仅生成目标索引中尚未包含的包。
- 支持从未构建和上载包的黑名单(某些包(如numpy)在与其他包的相互依赖性方面是脆弱的)。
- 可以对普通python包和二进制内容的包使用单独的索引。
- 可以将生成结果记录到JUnit兼容的XML文件中,以便Jenkins可以对其进行分析。