简体   繁体   English

使用PyPi官方回购与pygradle

[英]Using PyPi official repo with pygradle

I'm trying to build and install my python library using new PyGradle plugin from LinkedIn. 我正在尝试使用LinkedIn的新PyGradle插件构建和安装我的python库。 I immediately run into problems because the the demo repo is very limited 我立即遇到问题,因为演示回购非常有限

repositories {
    pyGradlePyPi()
}

I would like to be able to pull dependencies from the official pypi.python.org repo but to my surprise there's no mention of it in the documentation I was able to dig out from the PyGradle's GitHub site. 我希望能够从官方的pypi.python.org repo中获取依赖关系,但令我惊讶的是,在我从PyGradle的GitHub站点中挖掘出来的文档中没有提到它。 Is it possible at all and if not what can I do? 是否有可能,如果没有,我该怎么办?

PS Based on the pygradle documentation there is no direct way of using PyPi repo since it utilizes Ivy to do the actual dependence management. PS基于pygradle文档,没有直接使用PyPi repo的方法,因为它利用Ivy进行实际的依赖管理。 It would be great to get an "official" tutorial on how to setup local and Artifactory-based repos and import needed packages 获得一个关于如何设置本地和基于Artifactory的repos并导入所需包的“官方”教程会很棒

The short answer - according to documentation direct import from PyPi is not supported. 简短的回答 - 根据文档直接从PyPi导入不受支持。 There's a pivy-importer utility that is capable of pulling packages from PiPy into the local Ivy repo but it is also pulling some default packages and needs to be extended (manually) to pull packages that you may need. 有一个关键的导入器实用程序能够将PiPy中的软件包拉到本地Ivy仓库中,但它也会提取一些默认软件包,需要扩展(手动)以提取您可能需要的软件包。 This is as I understand a work in progress and may be improved as project matures 这是我理解正在进行的工作,随着项目的成熟可能会得到改善

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM