devpi builder接受requirements.txt,并用列出的python包的轮子递增地填充devpi索引。

devpi-builder的Python项目详细描述


Brandon the devpi builder

构建状态coverage status最新版本

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>
devpi_用户
如果未指定用户,则将使用此环境变量的值。
devpi_密码
如果未指定密码,则将使用此环境变量的值。

功能

  • 阅读 requirements.txt 样式输入文件。
  • 从环境中读取用户/密码(使用 devpi_user devpi_password )。
  • 在同一文件中支持一个包的多个版本。
  • 仅生成目标索引中尚未包含的包。
  • 支持从未构建和上载包的黑名单(某些包(如numpy)在与其他包的相互依赖性方面是脆弱的)。
  • 可以对普通python包和二进制内容的包使用单独的索引。
  • 可以将生成结果记录到JUnit兼容的XML文件中,以便Jenkins可以对其进行分析。

许可证

新的BSD

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
字符串Java字母替换无效   java Spring Roo JPA MS SQL Server无法打开JPA EntityManager组织。冬眠例外GenericJDBCException:无法打开连接   在scala中使用JavaWS对大型数据文件进行java流式处理   Java编译器是否将字节和短字符识别为文本?   java无法查找符号错误,空指针   mongodb在Java中重用数据库连接   java将多个StringArray从字符串文件获取到活动中   java是一个变量,它只保存最后一次鼠标单击的坐标   c#尺寸有限;添加、删除和洗牌   java如何在Android中显示来自资产文件夹的文本文件中的文本   Android应用程序中的java Tensorflow Lite自定义对象检测模型错误   java如何在foreachloop中使用scanner将来自命令行的输入存储到数组中   java如何定义一个好的存储库接口   Android中的java解析动态json对象